Move all Script

Hey all I have never used a script in Bentley before. Can someone point me to a good how to.

I am looking at creating a script to move data, raster image, survey data, line work... that has been sent to me from a client that has their own coordinate system and move it to the DOT coordinate system. My surveyor is just starting to use Bentley software so doesn't know its power and abilities. He has created an awesome script in Civil3d that he can open the clients file drag and drop a script file into civil3d and it grabs everything and it moves, rotates and scales everything in the file. It would be nice to eliminate the step of opening Civil3d, yuck, and applying a script in ORD to do it.  How do I do this in ORD? Here is his script for Civil3d. 

move


all

d
140061.275625,363728.0935,4.51825000000008
rotate all 205235.102125,405861.2315 -0.00208155092375
scale all 205235.102125,405861.2315 0.999983593541831

Parents
  • I had a fellow user send me this script to use, thanks Mary B. It doesn't seem to work any no idea why any suggestions?

    CHOOSE ALL
    MOVE ICON
    XY = 0,0
    DX = 140061.275625,363728.0935,4.51825000000008
    ACTIVE ANGLE -0.00208155092375
    ROTATE ICON
    XY = 205235.102125,405861.2315
    ACTIVE SCALE 0.999983593541831
    SCALE ICON
    XY = 205235.102125,405861.2315
    CHOOSE NONE









  • This script also only works on data active in the file, so if your information is referenced in, it won't be affected. MicroStation references aren't "elements" in the same way that AutoCAD Xrefs are. They can only be affected by the REFERENCE MOVE, REFERENCE SCALE, and REFERENCE ROTATE commands. It is also complicated in that you need to provide either the reference file name or logical name; I don't believe there is an option for "all".

    There is a setting for "Treat Attachment as Element for Manipulation" that could be turned on for reference files, but I can't recall if that setting respects the CHOOSE ALL key-in.

    In a similar fashion, there are key-ins specifically for manipulating raster references. Georeferenced rasters cannot be manipulated at all.

    Mr. Rheault is also correct that OpenRoads data often has rules that prevent manipulation of data

    MaryB

    Power GeoPak 08.11.09.918
    Power InRoads 08.11.09.918
    OpenRoads Designer 2021 R2

        

Reply
  • This script also only works on data active in the file, so if your information is referenced in, it won't be affected. MicroStation references aren't "elements" in the same way that AutoCAD Xrefs are. They can only be affected by the REFERENCE MOVE, REFERENCE SCALE, and REFERENCE ROTATE commands. It is also complicated in that you need to provide either the reference file name or logical name; I don't believe there is an option for "all".

    There is a setting for "Treat Attachment as Element for Manipulation" that could be turned on for reference files, but I can't recall if that setting respects the CHOOSE ALL key-in.

    In a similar fashion, there are key-ins specifically for manipulating raster references. Georeferenced rasters cannot be manipulated at all.

    Mr. Rheault is also correct that OpenRoads data often has rules that prevent manipulation of data

    MaryB

    Power GeoPak 08.11.09.918
    Power InRoads 08.11.09.918
    OpenRoads Designer 2021 R2

        

Children
No Data