Add Attribute data from feature to dwg as xdata

424
0
09-15-2021 05:29 AM
DennisBalster
New Contributor

Hello everybody,

I'm trying to add attribute data as Xdata on a line feature and export it to AutoCAD.

I have used the Add CAD fields conversion tool to add the cadfields and put the following xml string in the field Xdlist;

<CADXData>
<CADRegApp CADRegApp='Test'>
<ADE>False</ADE>
<DXFCode>1000</DXFCode>
<ColName>FLCode</ColName>
<Value>Beton</Value>
</CADRegApp>
</CADXData>

This will add one * Registered Application Name, on the line in AutoCAD.

Enter application name <*>:
* Registered Application Name: Test
* Code 1000, ASCII string: 411

But we are using multiple Application Name's,like the code bellow;

* Registered Application Name: FEATURECODE
* Code 1002, Starting or ending brace: {
* Code 1000, ASCII string: 700
* Code 1002, Starting or ending brace: }
* Registered Application Name: LEIDMATERIAAL
* Code 1002, Starting or ending brace: {
* Code 1000, ASCII string: AC
* Code 1002, Starting or ending brace: }
* Registered Application Name: LEIDVORM
* Code 1002, Starting or ending brace: {
* Code 1000, ASCII string: rond
* Code 1002, Starting or ending brace: }
* Registered Application Name: LEIDDIAM
* Code 1002, Starting or ending brace: {
* Code 1000, ASCII string: 80
* Code 1002, Starting or ending brace: }

So i tried to use the following code;

<CADXData>
<CADRegApp CADRegApp='Test'>
<ADE>false</ADE>
<DXFCode>1000</DXFCode>
<ColName>FLCode</ColName>
<Value>500</Value>
</CADRegApp>
<CADRegApp CADRegApp='Test2'>
<ADE>false</ADE>
<DXFCode>1000</DXFCode>
<ColName>FLCode</ColName>
<Value>411</Value>
</CADRegApp>
</CADXData>

But this is not working.

Does anyone know theXML-schema

0 Kudos
0 Replies