.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Newbie question n.2

2 REPLIES 2
Reply
Message 1 of 3
cabbi
258 Views, 2 Replies

Newbie question n.2

Hi all again,

Can I add a custom property to an AutoCad object?
I will assign to an object a name/value pair, something like:

void AddObjectProperty(AcadObject obj, string propName, object propValue)
{
???
}

TIA,
Cabbi
2 REPLIES 2
Message 2 of 3
Anonymous
in reply to: cabbi

look into xdata and xrecords.

there are samples in the SDK

pat
Message 3 of 3
Anonymous
in reply to: cabbi

If it's plain autoCAD, then xdata or xrecords your best option.

If you have Autodesk Map, you can link to object data tables, but I don't
think the C# API for map is functionally complete yet.


wrote in message news:5520657@discussion.autodesk.com...
Hi all again,

Can I add a custom property to an AutoCad object?
I will assign to an object a name/value pair, something like:

void AddObjectProperty(AcadObject obj, string propName, object propValue)
{
???
}

TIA,
Cabbi

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost