.NET

Reply
Active Contributor
tcuneio
Posts: 39
Registered: ‎08-22-2007
Message 1 of 4 (285 Views)
Accepted Solution

Adding Custom Classes to the DWG file

285 Views, 3 Replies
10-04-2013 02:33 PM

I'm new to .NET and am creating custom classes that I need to save to the DWG file.  I assume this is straightforward but have not found a way to do it.  I'm using VB.NET but can work with C++ examples as well.  Do I have to inherit from a DBObject class and override or is it possible to declare my own custom classes and somehow register them to DBObject?

I'm now exploring ways to store the properties of objects in my classes in DBDictionaries and exect that will accomplish my purpose.  Thanks for the replies!

Distinguished Mentor
gasty1001
Posts: 582
Registered: ‎04-11-2010
Message 2 of 4 (275 Views)

Re: Adding Custom Classes to the DWG file

10-04-2013 03:44 PM in reply to: tcuneio

Hi,

 

No sure what do you mean by custom classes, but if you are trying custom entities, the answer is NO, you can't do custom entities with .NET API, only C++ API.

 

Gaston Nunez

*Expert Elite*
dgorsman
Posts: 5,698
Registered: ‎10-12-2006
Message 3 of 4 (204 Views)

Re: Adding Custom Classes to the DWG file

10-07-2013 11:24 AM in reply to: gasty1001

On the other hand, if this is simply about storing data there are all sorts of ways-and-means to getting that done.

----------------------------------
If you are going to fly by the seat of your pants, expect friction burns.
Adopt. Adapt. Overcome. Or be overcome.
A good question will be halfway to a good answer.


Active Contributor
tcuneio
Posts: 39
Registered: ‎08-22-2007
Message 4 of 4 (202 Views)

Re: Adding Custom Classes to the DWG file

10-07-2013 11:30 AM in reply to: dgorsman

I'm now exploring ways to store the properties of objects in my classes in DBDictionaries and exect that will accomplish my purpose.  Thanks for the replies!

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.