Message 1 of 3
Revit API Assembly members validation
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I encountered some strange behavior when adding elements to an assembly.
In Revit when I try to add an element to an existing Assembly which has Phase 'Created', and the element which I try to add has a different Phase I get a message:
Selected Element(s) cannot be added to the assembly. Elements must have the same phases as the assembly to be included in the assembly.
However when I am updating the same AssemblyInstance with new members using AddMemberIds method on the AssemblyInstance it works:
assemblyInstance.AddMemberIds(elementIdsToAddToAssembly);
When I am selecting the elements in the UI I see different phases for elements in the same assembly.
This shouldn't be possible I think?
Greetz,