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?
This post suggests that get_BoundingBox(null) does include symbolic lines:
Cheers,
Jeremy
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.
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").
I am also attaching a file with the doors in them. Perhaps it will help.
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
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
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.