<Code Lib>
2025.3 Method
Changes 0
M

ItemFactoryBase.NewFamilyInstances2

Description:
Creates Family instances within the document.
Remarks:

Note: ForbiddenForDynamicUpdateException might be thrown during a dynamic update if the inserted instance establishes a mutual dependency with another structure.

Note: if the created family instance includes nested instances, the API framework will automatically regenerate the document during this method call.

public ICollection<ElementId> NewFamilyInstances2(
	List<FamilyInstanceCreationData> dataList
)

  • dataList
    A list of FamilyInstanceCreationData which wraps the creation arguments of the families to be created.
Return Value ICollection<ElementId> ICollection ElementId

Loading…