.NET

.NET

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

AutoCAD MEP: How to set a property definition display order

260 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,236
Registered: ‎03-13-2008
Message 2 of 2 (250 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
Announcements
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.