简体   繁体   中英

How to check if an ElementType is placed in revit model?

I have collected element types using following code in Ironpython:

typeelements =  DB.FilteredElementCollector(revit.doc)\
                    .OfClass(DB.ElementType)\
                    .ToElements()

How to know whether an element collected in typeelements is present in Revit model space?

Implement another filtered element collector filtering for all family instances of the given type. More efficiently, just retrieve all family instances in one single go. From that list, you can determine all the types being used in the model.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM