Dear community,
i am facing problems to retrieve the blend object of the window in the simple model attached.
I tried already with the filteredElementCollector in many ways (https://forums.autodesk.com/t5/revit-api-forum/how-to-extract-a-list-of-all-solids-from-a-family/m-p...) and looked for Blends in the elementIds of the wall and the window deleted with the temporary transaction trick.
The task i am trying to achieve with it is a quantity takeoff for a operational energy demand calculation. Thereby, i also extract the geometry of the windows and doors to visualize the thermal model to a user. So far, i put a bounding box around every window or door placed with a blend. Unfortunately, some windows (like the one in the model) have linked some element that makes the bounding box much wider than the clear width. So i would prefer to access the blend geometry. As i have all the windows and doors in my internal data structure, a reference from the window to the blend it is using would be the ideal solution. In Revit Lookup, i didnt find any link between the objects so far...
Thanks a lot,
Kind Regards
Lothar
Solved! Go to Solution.
Dear community,
i am facing problems to retrieve the blend object of the window in the simple model attached.
I tried already with the filteredElementCollector in many ways (https://forums.autodesk.com/t5/revit-api-forum/how-to-extract-a-list-of-all-solids-from-a-family/m-p...) and looked for Blends in the elementIds of the wall and the window deleted with the temporary transaction trick.
The task i am trying to achieve with it is a quantity takeoff for a operational energy demand calculation. Thereby, i also extract the geometry of the windows and doors to visualize the thermal model to a user. So far, i put a bounding box around every window or door placed with a blend. Unfortunately, some windows (like the one in the model) have linked some element that makes the bounding box much wider than the clear width. So i would prefer to access the blend geometry. As i have all the windows and doors in my internal data structure, a reference from the window to the blend it is using would be the ideal solution. In Revit Lookup, i didnt find any link between the objects so far...
Thanks a lot,
Kind Regards
Lothar
Solved! Go to Solution.
Solved by jeremytammik. Go to Solution.
The blend is part of the family definition. That lives in the RFA file, which can be optionally opened as a separate document. Your current document is (probably, not necessarily) the RVT project file hosting the family instance. To retrieve the bled element using a filtered element collector, you will have to open the family definition in a separate document:
https://thebuildingcoder.typepad.com/blog/about-the-author.html#5.25.3
The blend is part of the family definition. That lives in the RFA file, which can be optionally opened as a separate document. Your current document is (probably, not necessarily) the RVT project file hosting the family instance. To retrieve the bled element using a filtered element collector, you will have to open the family definition in a separate document:
https://thebuildingcoder.typepad.com/blog/about-the-author.html#5.25.3
Hello Jeremy,
thank you very much! As i want to keep my application robust for users i think it is better not to load the families, as shipped somewhere i probably won't have access to the family files.
So i will do the bounding box approach and crop the bounding box to meet the clearance width..
Kind Regards
Lothar
Hello Jeremy,
thank you very much! As i want to keep my application robust for users i think it is better not to load the families, as shipped somewhere i probably won't have access to the family files.
So i will do the bounding box approach and crop the bounding box to meet the clearance width..
Kind Regards
Lothar
Can't find what you're looking for? Ask the community or share your knowledge.