Hi
I have to create DXF file which must have some extdata/xdata strings assigned to objects (polyline, polygon and region). I have tried to use SetExtData, but it doesn't seems to work as I expected.
Could you give some example how to do this?
I'am using CAD VCL Enterprise 14.0
-- Timo Kervinen
Creating new dxf with xdata
Moderators: SDS, support, admin
Re: Creating new dxf with xdata
Hello Timo,Timo wrote: ↑19 Dec 2022, 13:12Hi
I have to create DXF file which must have some extdata/xdata strings assigned to objects (polyline, polygon and region). I have tried to use SetExtData, but it doesn't seems to work as I expected.
Could you give some example how to do this?
I'am using CAD VCL Enterprise 14.0
-- Timo Kervinen
First you should add the ExtData unit to the Uses section, then create an object:
Code: Select all
vData:= TsgCADExtendedData.Create(acR14);
Code: Select all
vData.AddString(1000, 'my entity');
Code: Select all
vLine.SetExtData(vData); // setting vData
Code: Select all
vData:= TsgCADExtendedData.Create(acR14); // acR14 -- TsgDWGVersion
vData.AddString(1000, 'my entity'); // adding a String type exData
vLine.SetExtData(vData); // setting vData
Catherine,
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support
Chat support on Skype: cadsofttools.support