- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have a family of a window with nested families of type Generic Model in it. One of the nested family type has an ElementId of 12461857 for example. I also created a new parameter of type Family Type: Generic Model named "Panel" and set another nested entity in it.
Now I loaded this family in a project, and placed a window using this family type. I tried to snoop at the new window's properties and went deeper to its Family Symbol and checked if the ElementId value of the parameter "Panel". I found out that the ElementId of this type is 12298607, but the nested family type set in this parameter is just the same as what it is in the family itself.
I created a test program that will change the value of this nested element parameter from its default to this family type's ElementId, but it would just ask me to delete them afterwards because it is unable to create the type. I did not use the SetValueString to set the value of the "Panel" parameter because it will just do nothing.
The questions are:
1.) Is there any basis of changing of the ElementIds at the Family level and at the parameter level?
2.) Is this ElementId value changing necessary?
3.) Where can I get the ElementIds of the all the nested elements of this family type that the parameter "Panel" is reporting (that means, without accessing the window's family document)? I tried to snoop at what's available in the Family Symbol level, but I couldn't find any. If only I could find the all the ElementIds reported by the parameter, my test program should have been successful.
By the way, I am using Revit 2015.
Solved! Go to Solution.