.NET

Reply
*Expert Elite*
Keith.Brown
Posts: 1,180
Registered: ‎03-13-2008
Message 1 of 2 (253 Views)
Accepted Solution

AutoCAD MEP: How to set a property definition display order

253 Views, 1 Replies
11-13-2013 10:10 AM

I am programmatically creating several property defintions inside of a property set definition.  I would like to be able to set the display order of the property definitions but the property is read only.  Has someone been able to accomplish this using the API?


Keith Brown AutoCAD MEP BLOG | RSS Feed
AutoCAD MEP 2014 | Revit 2014 | EastCoast CAD/CAM V6.1 | Visual Studio 2013
────────────────────────────────────
⁞|⁞ Please use Mark Solutions!.Accept as Solution and Give Kudos!Give Kudos as appropriate. Thank you!

I figured out how to do it.

 

After creating the property defintion you can set the order using something like this.

 

propertySetDefinition.SetDisplayOrder(formulaPropertyDefinition, 3);

 

i was trying to set the order using the property definition instead of the property set definition.

*Expert Elite*
Keith.Brown
Posts: 1,180
Registered: ‎03-13-2008
Message 2 of 2 (243 Views)

Re: AutoCAD MEP: How to set a property definition display order

11-13-2013 11:30 AM in reply to: Keith.Brown

I figured out how to do it.

 

After creating the property defintion you can set the order using something like this.

 

propertySetDefinition.SetDisplayOrder(formulaPropertyDefinition, 3);

 

i was trying to set the order using the property definition instead of the property set definition.


Keith Brown AutoCAD MEP BLOG | RSS Feed
AutoCAD MEP 2014 | Revit 2014 | EastCoast CAD/CAM V6.1 | Visual Studio 2013
────────────────────────────────────
⁞|⁞ Please use Mark Solutions!.Accept as Solution and Give Kudos!Give Kudos as appropriate. Thank you!
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.