Hi All,
I am Finding Difference of Dynamo Bounding Box Minimum point and maximum Point from RevitAPI Bounding box minimum and maximum point. what I have done wrong. Any solutions for these Thanks.
Hi All,
I am Finding Difference of Dynamo Bounding Box Minimum point and maximum Point from RevitAPI Bounding box minimum and maximum point. what I have done wrong. Any solutions for these Thanks.
Are you asking for the Element’s bounding box, or the geometry’s on the Dynamo side? These are two different things and as such may return different results depending on the geometry in question, as Revit’s API works with geometry differently than Dynamo’s. Element.BoundingBox should match though.
If that isn’t the issue in order for the community to help you will need to provide a reproducible dataset including a rvt with just one the failing element in it (delete all model elements except the failing one, delete all materials and views, purge unused 3x) and a dyn with your element binding boxes misaligning.
Sure @jacob.small . I got the bounding box of the Revit solid created from section crop shape and from that trying to find the minimum and maximum point. In that i was getting difference of values when computed through revtiapi and dynamo. I am preparing the files i will be attaching it. Thanks
Looks like you have a transform applied to the bounding box, and so when it’s translated to a Dynamo bounding box with the ToProtoType that transform is being applied to get the box into position. Until that is applied it’s in the view’s coordinate system if memory serves.
@jacob.small May be, but found another method to find the bounding box not from solid directly but from curveloop to avoid these issues & got the points somehow at same bounds which serves my purpose for now. but still not convinced with the transform of that, since I am creating a new solid and taking that new solid boundingbox and from that only I am computing these. Thank you so much for the info.
From what I saw digging into the base content it made sense - querying the properties of the transform associated to the Revit bounding box is what made it clear to me.
Converting the solid into Dynamo instead of the BB may provide more insight.
For what it’s worth it’s usually not a good idea to focus too much on BB conversion - you’ll get much better results staying entirely inside Revit.
Yes, got it, but I made a Revit to dynamo conversion is because the Revit bounding box throwed different bounding points as of the solid which is generated, so to visualize that I went to the dynamo types to check whether it is giving me the same results.
Yep - the Bounding Box associated to a view is altered to show the ‘depth’ of the view as the Z axis, so the min/max point comparison won’t necessarily be comprehendible until you pass it though the transform.