[ORD 2019 R3] Survey Point Rotating to Linear Segments via SmartObjects VBA - Inconsistent Results

We are using a customized version of the SmartObjects VBA Project and it is working as expected for some features but not others. The tool cannot rotate cells upon initial import as the lines are not created until all the points are displayed. So the project requires a manual redraw of the survey fieldbook before the cells will rotate. 

We are using it for two types of cells. The ones that work are pavement marking symbols, like turn arrows and word appliques (ONLY, LEFT, SCHOOL, etc.). The only caveat is that sometimes the direction of the nearby lines (road striping) results in the symbol being out by 180 degrees. The ones that are not working are our Guy Wire Anchor Cells. These are usually draw using a JPT code, unlike the road striping. Since that seems to be the only difference between the two, I wonder if the rotate code just cannot work on JPT lines. Of if the fact that the segment shares a coincident point with the cell is the problem.

I welcome any suggestions.

BYW, this is a sort of update to an older thread, but it is a newer version and more information. If anyone has managed to get a Guy Anchor cell to rotate, I would love to find out how.

Parents
  • I revisited our code. It seemed like the easiest solution was to make two different cell rotation macros. The delivered version is great for aligning to nearby linear elements. The new one I created is expressly for aligning cells with a linear element that shares a common point.

    Once I've cleaned it up I will see about sharing it. It will end up in our CAD Standards. but the web versions are always behind the PW Managed Workspace and internal versions.


    Charles (Chuck) Rheault
    CADD Manager

    MDOT State Highway Administration

    • MicroStation user since IGDS, InRoads user since TDP.
    • AutoCAD, Land Desktop and Civil 3D, off and on since 1996
  • Hi Chuck,

    I'm currently wrestling with these different scenarios. Rotating pavement markings, guy wire cells, signs, light fixtures, gate posts, etc. It looks like we were able to rotate some cells to linear elements in the file by modifying the SmartObjects macro. Would you be up to sharing the code that you have created? Maybe we could massage it to work with our cells. I do have some code that allows the rotation of a cell to another cell and it works fine as long as there are not other same named cells within the search area, it gets confused and is not reliable. Bentley removed the JNC code that allowed us to join one point to another and this would rotate a cell in the file to its mate cell. I know this may sound rather confusing to others who have not tried to resolve these issues but figured you might understand since you have a lot of history with this.

Reply
  • Hi Chuck,

    I'm currently wrestling with these different scenarios. Rotating pavement markings, guy wire cells, signs, light fixtures, gate posts, etc. It looks like we were able to rotate some cells to linear elements in the file by modifying the SmartObjects macro. Would you be up to sharing the code that you have created? Maybe we could massage it to work with our cells. I do have some code that allows the rotation of a cell to another cell and it works fine as long as there are not other same named cells within the search area, it gets confused and is not reliable. Bentley removed the JNC code that allowed us to join one point to another and this would rotate a cell in the file to its mate cell. I know this may sound rather confusing to others who have not tried to resolve these issues but figured you might understand since you have a lot of history with this.

Children