Hi all,
I'm trying to create an Assembly using the following method:
public static AssemblyInstance Create(Document document, ICollection<ElementId> assemblyMemberIds, ElementId namingCategoryId)
And I got the following error message:
Autodesk.Revit.Exceptions.ArgumentException: 'One or more element ids was not permitted for membership in the assembly instance. Elements should be of a valid category and should not be a member of an existing assembly.
Parameter name: assemblyMemberIds'
Is there any way to find from the list of elements that are not allowed to be added to the assembly?
For example, I have 3 elements and I want to find out which of them cannot be added to the assembly.
Thanks ๐