I met a nested family object built in the Revit structure, which consists of several lamps.
I want to change the illumination and color of these lamps by the Revit API, how can I do it?
Solved! Go to Solution.
Solved by RPTHOMAS108. Go to Solution.
Call EditFamily to open the family definition as a separate document.
Modify the family definition, and then reload it.
https://thebuildingcoder.typepad.com/blog/about-the-author.html#5.23.3
There are two types of nested family i.e. shared and non-shared:
A shared nested family exists in it's own right in the project document even though it is nested into another family. I believe also this is independent of nesting level.
This mainly means:
When a non-shared family is nested it can't be accessed the ways above directly in the project. The instance geometry of the host also contains the geometry of the nested family.
If you can tab into the family from the project then it is shared.
You may need to edit the family in either circumstance depending on the authored behaviour of the family. Items such as colours (materials) often need to be selected from a predefined list. The obvious choice for a family author would have been to add material parameters to the family and change such things in the project.
I found your another topic about modifying and saving family.
Your mean to modify the family file (.rfa) directly from API ?
Can't find what you're looking for? Ask the community or share your knowledge.