- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Greetings.
I have done quite a bit of searching and can not determine how to do this. I would like to open a family file (*.rfa) with the API, loading it into a Document object, and generate a report about the parameters in the family in the order in which they are presented in the UI (in the "Family Types" dialog).
The only promising method I can find in the API is the GetOrderedParameters method, but this method exists on the Element class, and I cannot determine which "Element" in the family editor API (family document) to use for calling this method.
For example, the document object itself does not cast to an Element, the Document.FamilyManager object does not cast to an Element and the Document.FamilyManager.CurrentType object does not cast to an Element. I was hoping maybe the Document.FamilyManager.Parameters object would cast to an Element, but it does not.
The FamilyParameter object does not seem to have a property like DisplayOrderIndex, nor does the FamilyParameter.Definition object.
How does one get a list of FamilyParameter objects in the same order in which they are presented to the user in the "Family Types" dialog? Is there some other method (not Element.GetOrderedParameters) that I should be using?
There are methods on the FamilyManger object for setting the order of the parameters, but I cannot determine the proper method or methods/workflow for reading back the order of the FamilyParameters in the family as the user sees them.
Thank you very much for any assistance!
Solved! Go to Solution.