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

  • 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









  • There are often rules attached to Open Roads data that prevent commands like moving, scaling and rotating of the data. Often these rules must be removed, or you need to use the transform tools within the software.

    I have never tried this with Open Roads Survey, so I can't offer any other thoughts.


    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
  • 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

        

  • If the surveyor is using the same custom coordinate system from project to project, wouldn't it just be easier to define a custom GCS for that particular surveyor, reference a seed file which has the DOT coordinate system applied, and then just "Merge to Master"? I don't think we've ever had to do this, because the deliverable GCS is called for in the scope of work, so I'd be curious to know if it worked how I think it should work.

    e: Also a link to the Wiki Keyin Script post. Basically, you just create a text file with the Keyin commands line-by-line (I keep mine in c:\Scripts), and then call for them using the keyin browser with "@"(filelocation)

    communities.bentley.com/.../how-to-string-keyins-together-or-create-keyin-scripts