Is there a macro that will rotate a cell to align with another cell? We used to be able to do this by using the JNC code in Survey with InRoads.

We would like to have a macro that will locate the GPG Cell (Gate Post Gate) and then search within a given distance for a GP Cell (Gate Post). Then calculate the rotation angle between the cells and apply the rotation angle to the GPG Cell. The image below shows a non existent yellow line, included for clarity.

The SmartObjects.mvba that is delivered with OpenRoads performs a similar function that rotates a cell to a linear element. Mostly used for rotating sign cells and telephone posts.