The XML structure is a tree view of objects found in the drawing database. To get the XML API structure it is necessary to execute XML API command GET.
The <get> command returns either the whole drawing XML structure or the selected object of drawing data and all its child objects. The result of the <get> command is convenient to use as parameters of the <add> XML API command, where it is necessary to specify the XML structure from the SECTION, to which the object belongs, to the table or block, where the object will be added via the <add> XML API command.
It is necessary to know that there isn’t an ENTITY section in the XML structure. This section is replaced by the *MODEL_SPACE block that is always presents in the drawing database. The entities, unless otherwise stated with the XML structure, are always added to the BLOCKS section into the block named *MODEL_SPACE. That’s why if you add the entities using the <add> command, you shouldn’t specify the BLOCKS section and the *MODEL_SPACE block. All entities are added there by default.
The objects in the drawing database are created by the class name. The list of all supported objects, which can be created by the class name, you can find in this help file in the part Entities.
The XML API commands allow changing the object properties in the drawing. For this purpose it’s necessary to change the object attribute via the XML command. All attributes, except the read-only attributes, can be changed with the XML API commands.
The complete list of attributes related to the certain object class you can find in the description of the particular object.
For example,the class object cstLine has the following attributes.
Go to ABViewer