AutoXChange 2007 XML Reference Tailor Made Software  
Add Database Information to Insert

Users can add textual database information to any existing Block Reference. One or more sets of information, known as Object Nodes, can be added to the Block Reference. The information is displayed in the Properties field in the DWF Viewer.

The following syntax allows the user to add a hyperlink (URL) for the given Block Reference. All entities in the Block Reference will be part of the hyperlink (including any text added using the XML file).

The user can define a second string, the Hyperlink Commnet, that will be displayed instead of the actual Hyperlink when the drawing is viewed.

XML Syntax

One item only:

<BlockRef>
    <Name>lote</Name>
    <Handle>DD</Handle>
    <ObjectNode Data1="Desk" Data2="Oak - 3x6" />
</BlockRef>

More than one item:

<BlockRef>
    <Name>lote</Name>
    <Handle>DD</Handle>
    <ObjectNodes>
        <ObjectNode Data1="Desk" Data2="Oak - 3x6" />
        <ObjectNode Data1="Chair" Data2="Swivel - XLarge" />
    </ObjectNodes>
</BlockRef>

Alternate syntax:

<BlockRef>
    <Name>lote</Name>
    <Handle>DD</Handle>
    <ObjectNodes>
        <ObjectNode>
            <Data1>Desk</Data1>
            <Data2>Oak - 3x6</Data2>
        </ObjectNode>
        <ObjectNode>
            <Data1>Chair</Data1>
            <Data2>Swivel - XLarge</Data2>
        </ObjectNode>
    </ObjectNodes>
</BlockRef>

XML Specifics

 Name This is the name of the Block Definition. This is actually optional, but makes the file easier to read.
 Handle This is the AutoCAD Entity Handle. It defines the specific Block Reference (Insert) being modified.
 Data1 Text field that is displayed first. Usually the data type.
 Data2 Text field that is displayed second. Usually used for type specific data.



 
Copyright © 2006 Tailor Made Software, Ltd