Support for ExtendedData
Moderators: SDS, support, admin
-
- Posts: 19
- Joined: 31 Aug 2017, 09:47
Support for ExtendedData
I wanted to know id CAD.NET support Extended Data for an Entity. If so please let me know how i can access it.
IvanCAD (http://www.ivancad.com/) has that functionality.
Thanks
Thangaraj N
IvanCAD (http://www.ivancad.com/) has that functionality.
Code: Select all
foreach (Ivan.DrawingEntity drawingEntity in objEntities)
{
if (drawingEntity.HasXData == true)
{
try
{
objXData = drawingEntity.ExtendedData[REGISTEREDAPPNAME];
}
catch (Exception)
{
continue;
}
ProcessLightweightPolyline((Ivan.LightweightPolyline)drawingEntity, objXData);
}
}
private void ProcessLightweightPolyline(Ivan.LightweightPolyline polyline, Ivan.RegAppExtendedData xdata)
{
string strXDataValue;
//
// extract the xdata
//
if (xdata.DataItems[0].DataType == STRINGTYPE)
{
strXDataValue = (string)xdata.DataItems[0].Value;
}
else
{
strXDataValue = "Error: wrong xdata data type";
}
m_objWriter.WriteLine("xdata: " + strXDataValue);
}
Thangaraj N
Re: Support for ExtendedData
Hello,
At the moment CAD .NET doesn't support Extended Data for an entity, this feature will be available in a new version of the library.
Mikhail
At the moment CAD .NET doesn't support Extended Data for an entity, this feature will be available in a new version of the library.
Mikhail
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support
Chat support on Skype: cadsofttools.support
-
- Posts: 19
- Joined: 31 Aug 2017, 09:47
Re: Support for ExtendedData
Can you please let us know when can we expect this functionality? Any Tentative date.
Thanks,
Thangaraj N
Thanks,
Thangaraj N
Re: Support for ExtendedData
Hello,
The new version release was initially planned for April 2018, but was postponed until the end of May or possibly June. Please follow our updates on the news section.
Mikhail
The new version release was initially planned for April 2018, but was postponed until the end of May or possibly June. Please follow our updates on the news section.
Mikhail
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support
Chat support on Skype: cadsofttools.support
-
- Posts: 19
- Joined: 31 Aug 2017, 09:47
Re: Support for ExtendedData
is this scheduled to get release in June?
Thanks
Thangaraj N
Thanks
Thangaraj N
Re: Support for ExtendedData
Hello,
The new version is still at the development stage, so for now we cannot give you any information about the release date.
Mikhail
The new version is still at the development stage, so for now we cannot give you any information about the release date.
Mikhail
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support
Chat support on Skype: cadsofttools.support
-
- Posts: 19
- Joined: 31 Aug 2017, 09:47
Re: Support for ExtendedData
Do you have any update on this?
Thanks
Thangaraj N
Thanks
Thangaraj N
Re: Support for ExtendedData
Hello,
Development of the new version is not finished yet, so we had to postpone the release date again. Please follow our updates on the news section.
Mikhail
Development of the new version is not finished yet, so we had to postpone the release date again. Please follow our updates on the news section.
Mikhail
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support
Chat support on Skype: cadsofttools.support
Re: Support for ExtendedData
Hello,
A new CAD .NET version which supports Extended Data has been released. You can find more information in our News section.
Mikhail
A new CAD .NET version which supports Extended Data has been released. You can find more information in our News section.
Mikhail
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support
Chat support on Skype: cadsofttools.support
-
- Posts: 5
- Joined: 19 Sep 2016, 19:51
Re: Support for ExtendedData
Does the Editor support ExtendedData? I'd like to attach a name to an entity, such as a polyline.
Re: Support for ExtendedData
Hi,dredgehqdev wrote: ↑10 Jan 2023, 18:39Does the Editor support ExtendedData? I'd like to attach a name to an entity, such as a polyline.
CAD .NET supports adding ExtendedData. Please, have a look at the code example below:
Code: Select all
private void menuItem10_Click(object sender, EventArgs e)
{
if (cadImage == null) return;
var poly = cadImage.SelectedEntities[0] as CADPolyLine;
poly.ExtendedData.Add(new Xtome("testExtData"));
poly.ExtendedData[0].Records.Add(Xdata.CreateRecord(1000, "PolyLineName"));
poly.Loaded(cadImage.Converter);
}
Catherine.
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support
Chat support on Skype: cadsofttools.support
Re: Support for ExtendedData
Hi,
CAD .NET supports reading ExtendedData from DWG.
I use this code, but no extended data found.
I can see the extended data in AutoCAD.
string filename = "c:\\test.dwg";
CADImage image = CADImage.CreateImageByExtension(filename);
image.LoadFromFile(filename);
foreach( var entity in image.Converter.Entities )
{
foreach( var data in entity.ExtendedData )
{
}
}
THX
CAD .NET supports reading ExtendedData from DWG.
I use this code, but no extended data found.
I can see the extended data in AutoCAD.
string filename = "c:\\test.dwg";
CADImage image = CADImage.CreateImageByExtension(filename);
image.LoadFromFile(filename);
foreach( var entity in image.Converter.Entities )
{
foreach( var data in entity.ExtendedData )
{
}
}
THX
Re: Support for ExtendedData
Hi,GeoLaci wrote: ↑03 Feb 2023, 16:20Hi,
CAD .NET supports reading ExtendedData from DWG.
I use this code, but no extended data found.
I can see the extended data in AutoCAD.
string filename = "c:\\test.dwg";
CADImage image = CADImage.CreateImageByExtension(filename);
image.LoadFromFile(filename);
foreach( var entity in image.Converter.Entities )
{
foreach( var data in entity.ExtendedData )
{
}
}
THX
well, CAD .NET supports ExtendedData, so it should be read. Anyway, could you send me your file where you don't find extended data at support@cadsofttools.com, so I could examine the file?
Catherine.
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support
Chat support on Skype: cadsofttools.support
Re: Support for ExtendedData
support wrote: ↑06 Feb 2023, 14:49Hi,GeoLaci wrote: ↑03 Feb 2023, 16:20Hi,
CAD .NET supports reading ExtendedData from DWG.
I use this code, but no extended data found.
I can see the extended data in AutoCAD.
string filename = "c:\\test.dwg";
CADImage image = CADImage.CreateImageByExtension(filename);
image.LoadFromFile(filename);
foreach( var entity in image.Converter.Entities )
{
foreach( var data in entity.ExtendedData )
{
}
}
THX
well, CAD .NET supports ExtendedData, so it should be read. Anyway, could you send me your file where you don't find extended data at support@cadsofttools.com, so I could examine the file?
Catherine.
Hi,
Thank you for the sent file.
Our libraries support AutoCAD files, but they may not read all the information from the files generated from other third-party programs, e.g. AutoCAD Map 3D.
Catherine.
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support
Chat support on Skype: cadsofttools.support