.NET

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

Adding Custom Classes to the DWG file

231 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
Posts: 370
Registered: ‎04-11-2010
Message 2 of 4 (221 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: 4,698
Registered: ‎10-12-2006
Message 3 of 4 (150 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
Posts: 31
Registered: ‎08-22-2007
Message 4 of 4 (148 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
Welcome to the new Autodesk Community!
If this is your first visit, click here to get started and make the most of the Community. Let us know what you think of the new experience in the Community Feedback Forum.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community