Announcements
Welcome to the Revit Ideas Board! Before posting, please read the helpful tips here. Thank you for your Ideas!
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Enumeration for Repeating Detail Layout values (API)

Enumeration for Repeating Detail Layout values (API)

I was recently creating another Repeating Detail (RD)-related tool, and found myself wondering if there's an Enumeration in the API for the layout values for this parameter:

 

elementType.get_Parameter(BuiltInParameter.REPEATING_DETAIL_LAYOUT);

 

Google showed my previous post (finding and modifying Repeating Detail type), LOL, which gives the integer values:

 

// 1=Fixed Distance, 2=Fixed Number, 3=Maximum Spacing, 4=Fill Available Space

 

But I was hoping for something a little more robust/official. Searching the API gave: SpacingRuleLayout Enumeration

with the same names/values except for 4 (MinimumSpacing vs FillAvailableSpace), though that has a similar meaning in this context.

 

Member name Description

NoneNo points or lines will be created.
FixedDistancePoints or lines are separated by a fixed distance.
FixedNumberFixed number of points or lines with uniform distance between them.
MaximumSpacingPoints or lines are separated by at most the max distance.
MinimumSpacingPoints or lines are separated by at least the minimum distance.

 

Also, that Enumeration seems to be for a DividedPath, whatever that's used for, so I don't think using it over hard-coded integers would give me any real benefit (and would introduce an issue if that were to change).

Can't find what you're looking for? Ask the community or share your knowledge.

Submit Idea