I'm not seeing any examples of creating repeating details. Can this be done via the api? Got example code?
![]() |
|
![]() |
|
![]() |
|
![]() |
I'm not seeing any examples of creating repeating details. Can this be done via the api? Got example code?
I'll just reply to myself over here. Nothing yet? Am I right? or am I missing it?
What do you mean by "repeating details". An array? There is the LinearArray class for this (methods Create, ArrayElementsWithoutAssociation and ArrayElementWithoutAssociation.
In the regular interface you go to Annotate>(detail section) Component (drop that down), Repeating Detail Component.
LinearArray I believe is just the regular old Array command.
When you look at it with Revit Lookup, you see that it is a DetailLine with an ElementType assigned. I've tried to transform a standard DetailLine with ChangeTypeId, but it does not work. You should post your question on the official forum: http://forums.autodesk.com/t5/revit-api/bd-p/160
Note that the question has already been asked here: http://forums.autodesk.com/t5/revit-...ght/true#M2549 and there is no answer for the moment.