.NET

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

Adding Custom Classes to the DWG file

275 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!

Valued Mentor
gasty1001
Posts: 478
Registered: ‎04-11-2010
Message 2 of 4 (265 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,367
Registered: ‎10-12-2006
Message 3 of 4 (194 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 (192 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!

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.