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: 

How to Find the rooms geometry adjacent to walls in Revit API

5 REPLIES 5
Reply
Message 1 of 6
Pravin_Lande
1334 Views, 5 Replies

How to Find the rooms geometry adjacent to walls in Revit API

Hi,

 

We want to know the room numbers and geometry details which are present adjacent to walls. means if one wall is common to two rooms we want to know the room number and geometry details for that room, if any one room is present in linked document and wall is present in active document.

 

Kindly suggest the way out to find such a room details from linked room adjacent to wall in active document in Revit API.

 

Thank you.

 

Regards,

Pravin

5 REPLIES 5
Message 2 of 6
jeremytammik
in reply to: Pravin_Lande

Dear Pravin,

 

Thank you for your query.

 

The Building Coder has discussed various approaches to achieve this in some depth.

 

Please refer to the topic groups on 2D Booleans, adjacent areas, spatial adjacency and thermal energy analysis model:

 

 

I hope this helps.

 

Please always perform your own search before submitting a new question here.

 

It will save time and effort for yourself and the rest of the world.

 

You will also learn more and become a better programmer.

 

Thank you!

 

Best regards,

 

Jeremy

 



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

Message 3 of 6
Anonymous
in reply to: jeremytammik

Hi Jeremy,

 

Thanks for the response.

Is there any known issue for using GetBoundarySegments function for a room in  a linked file? 

The function is returning an array of 0 segments though the room bounding option is enabled. Plz advise. 

 

 

Message 4 of 6
jeremytammik
in reply to: Anonymous

Dear Mona,

 

I repeat the same message to you as well:

 

Please always perform your own search before submitting a new question here.

 

It will save time and effort for yourself and the rest of the world.

 

You will also learn more and become a better programmer.

 

I searched the Internet for 'Revit GetBoundarySegments room linked' and immediately see a number of promising results:

 

https://duckduckgo.com/?q=revit+GetBoundarySegments+room+linked

 

Why don't you try that yourself as well?

 

Does it help to specify the linked model as room-bounding?

 

https://knowledge.autodesk.com/support/revit-products/learn-explore/caas/CloudHelp/cloudhelp/2016/EN...

 

Apparently, there are (or were?) some problems in this area. They are discussed and several workarounds are suggested in the Revit API discussion thread on 'GetBoundarySegments With Linked Models':

 

https://forums.autodesk.com/t5/revit-api-forum/getboundarysegments-with-linked-models/td-p/7399357

 

Here is a description of the full algorithm with an accompanying Dynamo node implementation to achieve the task:

 

http://lubim.co/2019/05/10/room-boundaries-from-linked-documents/

 

This research took me a handful of minutes.

 

Surely it would have been more efficient for you to perform it yourself rather than to wait for my answer?

 

Good luck resolving your task and even more so practicing effective Internet searching in future cases!

 

Best regards,

 

Jeremy

 



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

Message 5 of 6
mikako_harada
in reply to: Anonymous

Dear Mona,

 

I looked up the engineering database.  

Unfortunately, the issue reported earlier (REVIT-120488  in here) is till open.  The new change request ID is: 

REVIT-120608:   API | GetBoundarySegments omits edge from linked model

 

I have added your name to the the above ID.  Feel free to provide me with the business case if you me to add to it.  You can give through the private message (if you hover over my name profile, you should be able to send a private message.  Or use DevHelp Online with the above ID.  

 

In a mean time, you will need to workaround described here.  

  

Sorry for the unfavorable result.  

 

 


Mikako Harada
Developer Technical Services
Message 6 of 6
jeremytammik
in reply to: Anonymous

Dear Mona,

 

Please excuse the wording in my previous answer above.

 

I must have run into a couple of less professionally researched questions just prior to answering yours, and some sentiment overflowed into the wrong answer.

 

I really am doing my very best to help both you and the rest of the community.

 

That includes encouragement to others to research well before asking a question. Sometimes it is hard to tell.

 

I meant absolutely no offense to you or anybody else.

 

Thank you for your understanding.

 

Best regards,

 

Jeremy

 



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

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Customer Advisory Groups


Rail Community