Hey All,
I have experience with retrieving info from items collected in the project environment, but I’m not sure where to start if I wanted to retrieve a list of all the parameters in the family that I’m currently editing (i.e. the active document). Any suggestions about where to start (what API class/methods I should be looking at)?
Thanks,
You want to be looking at the FamilyManager class in the revit api docs…
https://www.revitapidocs.com/2020/1cc4fe6c-0e9f-7439-0021-32d2e06f4c33.htm
You can get the FamilyManager object from the Document class…
ActiveDocument.FamilyManager
This gives you access to the parameters where you can get/set parameters within the context of an open and editable family. Please ensure you check if the open document is a Family Document first though as per the following…
ActiveDocument.IsFamilyDocument
Cheers,
Dan
1 Like
Dan,
You’ve always got an answer for me - love it! Looks like there’s some handy methods in there - I’ll have a go and let you know what I can figure out. Thanks for steering me in the right direction!
1 Like
Anytime mate! Let us know if you hit another roadblock! 