Looking to create a custom tag to locate the content to the closes column lines,

The tag I am looking to create will have the following information:

  • Building number
  • Distance to nearest column (North by Feet & Inches)
  • Distance to nearest column (East by Feet & Inches)
  • Elevation above the closest Floor Level

I am wondering if anyone has encountered retrieving this kind of locating data before, as I am having a hard time figuring out where to begin.

The column comparisons can be pulled from the Geometry.DistanceTo and Geometry.ClosestPointTo nodes.

The workflow is roughly:
Get all of the location information for the columns and tagged elements.
Use DistanceTo, crosslaced, and figure out which column is closest.
Use ClosestPointTo to get the X,Y of the column.
Use the vector from the column to the tagged element and break out the X/Y components.
Clean up presentation of data
Plug into tag-associated parameters.

The closest floor level works similarly except you would just look for the shortest downwards-pointing vector.

1 Like