Get Structure(pipestructure) rotation from block rotation "nearby"

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:

  1. Get all block insertion points
  2. Get all structure insertion points
  3. Create a dummy circle at the block insertion point for bounding box contains
  4. Filter by boolean mask with the blockreference as the list
  5. Find the rotation of the blocks passing through the true index
  6. 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)

hi
see this

Hi,

I believe that the post you reference is intended to extract the rotation value of an existing blockref.

I have done this, the issue I have is assigning the rotation value of the structure according the the nearest block.

look at