2D Overlap Finding

2D Overlap Finding

sahin.ikbal
Advocate Advocate
529 Views
2 Replies
Message 1 of 3

2D Overlap Finding

sahin.ikbal
Advocate
Advocate

I'm trying to find out clashes of tag elements(Texts) with other elements in the view, 

By BoundingBox, I am getting some approximation for now but for elements whose BoundingBox far exceeds the actual elements its giving me much difficulty.

Any thoughts on how to do this more effectively?

 

 

Image.png

 

0 Likes
530 Views
2 Replies
Replies (2)
Message 2 of 3

jeremy_tammik
Alumni
Alumni

You could try to calculate the exact text width and extents instead of using the bounding box, e.g., like this:

 

https://thebuildingcoder.typepad.com/blog/2014/10/new-text-note-and-text-width-calculation.html

 

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open
Message 3 of 3

Omar_Amen
Advocate
Advocate

If u want to process it using clashing concept,  try this:
- create a lightweight 3d parametric family (cubic shape)
-by knowing the tag center point and its width & height u can place the 3d family on the tag center point and justify its parameters (W , H)
-using ElementIntersectsElementFilter  to get the clashed elements with you family 

-delete the 3d instances that you created for the test

 I think this isn't the best way you can use but it's ok if it does the mission