Hi All,
I have a drawing with blocks representing structures. I also have structures near the blocks (not exact coordinates). The structures shouldn’t be at the exact coordinates so this is fine however I need to have the structure at the same rotation as the block.
The workflow I have followed is:
- Get all block insertion points
- Get all structure insertion points
- Create a dummy circle at the block insertion point for bounding box contains
- Filter by boolean mask with the blockreference as the list
- Find the rotation of the blocks passing through the true index
- Assign those rotations to the structures.
I have replicated this as a dynamo script and structures are being rotated however - the structures now have the picked up their rotation values from the wrong blocks.
Please assist.
ROTATION FILTER BASED ON EXISTING BLOCK NEARBY.dyn (60.5 KB)
StructureRotationTest.dwg (1.0 MB)