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: 

Bounding box of Symbolic lines

7 REPLIES 7
Reply
Message 1 of 8
Anonymous
880 Views, 7 Replies

Bounding box of Symbolic lines

I am trying to get the bounding box of a door, including the symbolic swing.  I found posts on getting the bounding box of geometry, however I do not see how to iterate over symbolic curves. 

 

When I call (some_family_instance).get_BoundingBox(view) I get something that includes reference planes, but is otherwise correct.  I need to get rid of reference geometry, but keep symbolic lines.

 

I am also confused on the role of view in get_Boundingbox.  I thought it would calculate the bounding box based on what is visible in the view, but clearly this is not the case, as reference planes look invisible to me on my view.  It would be great if I could simply create a new view that filters reference geometry, but I suspect this does not work?

7 REPLIES 7
Message 2 of 8
jeremytammik
in reply to: Anonymous

This post suggests that get_BoundingBox(null) does include symbolic lines:

 

https://forums.autodesk.com/t5/revit-api-forum/get-boundingbox-null-includes-also-symbolic-lines/m-p...

 

Cheers,

 

Jeremy

 



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

Message 3 of 8
Anonymous
in reply to: jeremytammik

null does indeed include symbolic lines.  However it also includes other things.  I do not know what those other things are as they are invisible.  For most doors, the bounding box is alright.  However I copied some elevator doors from a public .rvt file, and I get oversized boxes.  I attached a screenshot of what I mean.

Message 4 of 8
Anonymous
in reply to: Anonymous

Perhaps @RPTHOMAS108 can help?  He's given excellent clarifications to my questions regarding model lines (which are perhaps similar to the door's "symbolic lines").

Message 5 of 8
Anonymous
in reply to: Anonymous

I am also attaching a file with the doors in them.  Perhaps it will help.

Tags (2)
Message 6 of 8
jeremytammik
in reply to: Anonymous

Dear Josh,

 

Thank you for your update.

 

A bounding box is a bounding box.

 

A bounding box is not per se guaranteed to be minimal.

 

Therefore, if, as you say, 'null does indeed include symbolic lines', then the question raised in your title description is already successfully answered.

 

Do you want to expand the question?

 

Is it important for you to obtain a minimal bounding box?

 

Why?

 

How exactly minimal does it have to be?

 

I can imagine that there must be ways and means of achieving this, but I am not aware of any better approach off-hand.

 

I did hear just yesterday, though, that the development team is working on an internal project that will in fact provide all you need to retrieve a minimal bounding box in a future version.

 

I hope this helps.

 

Best regards,

 

Jeremy

 



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

Message 7 of 8
jeremytammik
in reply to: Anonymous

Dear Josh and Garrett, @Anonymous, @Anonymous,

Thank you for your email notification about your ADN membership.

As Mikako pointed out, you can have Josh flagged as an ADN member by your company's site admin.

Meanwhile, awaiting answers to the questions in the last answer.

Best regards,

Jeremy



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

Message 8 of 8
Anonymous
in reply to: jeremytammik

Thanks!  Yes, I'm looking into the ADN membership to make sure everything's in order.  I think Josh might be working on something else now, but I will ping him to see if he's still stuck on this.

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

Post to forums  

Forma Design Contest


Rail Community