.NET

.NET

Reply
Member
markus.keller
Posts: 3
Registered: ‎05-25-2013
Message 1 of 4 (381 Views)

How to implement Drop-down list (based on IDynamicEnumProperty) in OPM?

381 Views, 3 Replies
05-25-2013 12:20 PM

Hi!

Is there somone who can explain/show a sample of how a custom drop-down list in OPM can be implemented? Based on some articels by Kean Walmsley, I have successfully implemented categorized properties in the OPM using a .NET wrapper and C#. I have a class imlementing the members of the IDynamicEnumProperty, ICategorizeProperties and IDynamicProperty2 interfaces (based on ObjectARX 2013).

 

However, I do not really understand how to code custom drop-down list using .NET wrapper and OPM. I am using AutoCAD 2013 and 2014. I have read a lot of posts regarding OPM but there was no helpful information in regards to create custom drop-down lists. I will greatly appreciate any help showing how to achieve that or giving a link to more details.

 

Regards,
Markus
ADN Support Specialist
Balaji_Ram
Posts: 693
Registered: ‎03-21-2011
Message 2 of 4 (300 Views)

Re: How to implement Drop-down list (based on IDynamicEnumProperty) in OPM?

06-06-2013 10:17 AM in reply to: markus.keller

Hi Markus,

 

Sorry for the delay.

 

I have attached a sample project that my colleague Philippe Leefsma had created some time back to demonstrate this.

 

Hope this helps.



Balaji
Developer Technical Services
Autodesk Developer Network

Member
markus.keller
Posts: 3
Registered: ‎05-25-2013
Message 3 of 4 (281 Views)

Re: How to implement Drop-down list (based on IDynamicEnumProperty) in OPM?

06-09-2013 11:24 AM in reply to: Balaji_Ram
Hi Balaji,

Thank you for the response and the example code which works perfect in my case. Cool stuff. I had to tweak the C++ project to make it compile in my environment, but it finally worked well for me.
You also solved another issue by showing how to use a CustomProperty constructor to initialize field data overriding some of the implemented interface members in the DynamicProperty class. This was actually a minor issue I was still working on ... so, thank you for solving this also :smileywink:

Regards,
Markus
Regards,
Markus
ADN Support Specialist
Balaji_Ram
Posts: 693
Registered: ‎03-21-2011
Message 4 of 4 (269 Views)

Re: How to implement Drop-down list (based on IDynamicEnumProperty) in OPM?

06-09-2013 09:22 PM in reply to: markus.keller

Hi Markus,

 

Glad to hear that the sample project was helpful.

 

I have communicated your appreciation to Philippe who is author of that sample project.

 

 



Balaji
Developer Technical Services
Autodesk Developer Network

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.