.NET

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

Adding Custom Classes to the DWG file

265 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?

Valued Mentor
gasty1001
Posts: 450
Registered: ‎04-11-2010
Message 2 of 4 (255 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,134
Registered: ‎10-12-2006
Message 3 of 4 (184 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 (182 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!

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

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 to get help installing your software.

Ask the Community