.NET

.NET

Reply
Active Contributor
39 Posts
0 Kudos
Registered: ‎08-22-2007
Post 1 of 4
Accepted Solution

Adding Custom Classes to the DWG file

288 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
582 Posts
91 Kudos
Registered: ‎04-11-2010
Post 2 of 4

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*
5,761 Posts
503 Kudos
Registered: ‎10-12-2006
Post 3 of 4

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
39 Posts
0 Kudos
Registered: ‎08-22-2007
Post 4 of 4

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
Are you interested in helping shape the future of the Autodesk Community? To participate in this brief usability study, please click here. Your time and input is greatly appreciated!