[mapguide-users] Modifying SymbolDefinition programmatically

Jackie Ng jumpinjackie at gmail.com
Wed May 13 08:59:30 EDT 2009


I don't know much about Symbol Definitions, but all resources in mapguide
(including Symbol Definitions) are XML data.

So you could use the Resource Service APIs to get the resource content, edit
the xml content (with your XML access library/api of choice) and save back
the changes. This can be done with any resource.

- Jackie


psciga wrote:
> 
> Hello,
> 
> can you tell me please, how to modify the symbol definition with php?
> 
> Following background:
> 
> In AutoCAD I have several hundred blocks. The import into MGOS 2 via MG
> Studio 2009 works fine. The once problem is, that the parameter for
> ROTATION
> have a DefaultValue = 0. This default value I want to replace with a field
> name "winkel" from the MySQL database. It is easy to do this by hand for
> some symbols, but with for 657 symbol definitions I become crazy  ;-) .
> 
> How can I replace this default value using php?
> 
> Thanks in advance.
> 
> Regards - Peter
> 

-- 
View this message in context: http://n2.nabble.com/Modifying-SymbolDefinition-programmatically-tp2879871p2883580.html
Sent from the MapGuide Users mailing list archive at Nabble.com.



More information about the mapguide-users mailing list