Attach item information to placed items using Civil3D SDK

muaslam
Enthusiast

Attach item information to placed items using Civil3D SDK

muaslam
Enthusiast
Enthusiast

I am working on an addin for Civil3D. Using this addin, users can place DWG into Civil3D project. I need to store some information (like file directory) along with the placed items. Is it possible to store such information along with each placed item in Civil3D. If there's some metadata along with items placed. Any help would be appreciated in this regard.

0 Likes
Reply
316 Views
2 Replies
Replies (2)

TimYarris
Autodesk
Autodesk

 Hi @muaslam ,

 

Have you tried experimenting with Property Sets to accomplish this goal? Property sets enable you to place any ad-hoc metadata on any object. This functionality was originally developed for AutoCAD Architecture, but during the past several releases, we've been expanding our use of it in Civil 3D. 

muaslam
Enthusiast
Enthusiast

Hi TimYaris,

 

Thanks for the response. I have explored PropertySets and yes it fulfills my requirement. I have created new style in Property Set Definitions and I have created Definition from there. It worked perfectly for me. I was able to add information from Properties\Extended Data.

Now, I need to create PropertySet in a design document using Civil 3D C# SDK, I could not find a way to create this PropertySet through API. I have found a sample AutoCAD MEP forum but that doesn't work for Civil3D, I am unable to find a reference to,
DictionaryPropertyDataFormat

PropertySetDefinition

PropertyDefinition

 

Do you have any idea about where these classes are declared OR what are the alternative for these constructs in Civil3D APIs?

 

Many thanks in advance.

0 Likes