Revit API Forum
Welcome to Autodesk’s Revit API Forums. Share your knowledge, ask questions, and explore popular Revit API topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Get blends from model to retrieve window opening

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
lothar.kolbeck
505 Views, 2 Replies

Get blends from model to retrieve window opening

lothar.kolbeck
Explorer
Explorer

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

0 Likes

Get blends from model to retrieve window opening

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

2 REPLIES 2
Message 2 of 3

jeremytammik
Autodesk
Autodesk
Accepted 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

  



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

0 Likes

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

  



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

Message 3 of 3

lothar.kolbeck
Explorer
Explorer

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

0 Likes

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.

Post to forums  

Autodesk Design & Make Report