.NET

Reply
Active Contributor
pva75
Posts: 48
Registered: ‎07-22-2012
Message 1 of 5 (987 Views)

Is it possible to add custom properties for object (for example Line) with .NET?

987 Views, 4 Replies
08-07-2012 10:05 AM

I saw that I can add Fields or store data in dictionaty, but those data are not showed in Properties Windows.

 

In not Acad-application (but .net application) I can create property description and add "virtual" properties with the help of designer. In Aced it doesn't work.

 

Is it possible to add custom properties from .NET?

 

Pavel.

ADN Support Specialist
Balaji_Ram
Posts: 715
Registered: ‎03-21-2011
Message 2 of 5 (947 Views)

Re: Is it possible to add custom properties for object (for example Line) with .

08-10-2012 03:00 AM in reply to: pva75

Hello,

 

Yes, It is possible. Although the Property Palette exposes COM interfaces that we will need to use, there is also a .Net wrapper for it. Here is the link :

http://through-the-interface.typepad.com/through_the_interface/2009/03/exposing-autocads-properties-...



Balaji
Developer Technical Services
Autodesk Developer Network

Active Contributor
pva75
Posts: 48
Registered: ‎07-22-2012
Message 3 of 5 (940 Views)

Re: Is it possible to add custom properties for object (for example Line) with .

08-10-2012 05:57 AM in reply to: Balaji_Ram

Thanks!!

 

I'll try it.

 

Pavel.

Valued Mentor
DiningPhilosopher
Posts: 370
Registered: ‎05-06-2012
Message 4 of 5 (926 Views)

Re: Is it possible to add custom properties for object (for example Line) with .

08-10-2012 11:06 PM in reply to: Balaji_Ram

Balaji_Ram wrote:

Hello,

 

Yes, It is possible. Although the Property Palette exposes COM interfaces that we will need to use, there is also a .Net wrapper for it. Here is the link :

http://through-the-interface.typepad.com/through_the_interface/2009/03/exposing-autocads-properties-...


I don't believe any of that material at the link you posted is of any use, as of AutoCAD 2013, which uses a different set of APIs for OPM properties, that has no dependence on COM or Windows

ADN Support Specialist
Balaji_Ram
Posts: 715
Registered: ‎03-21-2011
Message 5 of 5 (889 Views)

Re: Is it possible to add custom properties for object (for example Line) with .

08-12-2012 09:03 PM in reply to: DiningPhilosopher

Hi,

 

AutoCAD 2013 did introduce the Non-COM property system, which is now only accessible using ObjectARX.

But this does not stop us from using the earlier COM based property APIs. Those will still work.

 

If you want to work with the OPM using the AutoCAD .Net API, then we have to rely on the COM based property system (the wrapper for it for which I posted the link) since there is no wrapper available for the new Non-COM property system.

 

Edited :

 

Here is the link for the DevTV on the new Non-COM property system, just in case you need it :

http://adndevblog.typepad.com/autocad/2012/04/devtv-non-com-property-system.html

 



Balaji
Developer Technical Services
Autodesk Developer Network

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Need installation help?

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