I am able to get the location point of doors from linked model. I would like to now get elements within a certain distance of the XYZ point of the door.
Get Door Location from Linked model (done)
How do I get the elements surrounding that point (unsure)ClosestToDoor.dyn (21.3 KB)
Not sure I am using the Tool.GetSurroundingElements and Geometry.DistanceTo correctly.
Any help in the correct direction is greatly appreciated…attached my attempts so far.
Hi Gavin,
Thank you for the feedback. I tried the script and modified it somewhat. It created a cuboid around the point of the door…which i extended into the z-axis to intersect with the Security Devices. Is there a way to flatten it all?
Works good. gets me the door location and devices within distance of the door
Ah that changes a lot. In that case I’d ignore the Z component and use surfaces and run a full intersection set over each door’s circular generated surface.