I need to figure out a batch process for many files to rotate a border 180 degrees (which is a cell), rotate the view 180 degrees, fit view then save settings but I cannot figure out the commands. Any help would be appreciated.
Chuck,
These keyins will select the cell…
MDL SILENTLOAD SELECTBY DIALOGSELECT TYPE NONESELECTBY TYPE CELLSELECTBY CELLNAME <cellname>SELECTBY EXECUTE
Determining the point to rotate about may be difficult If all the border cells have been placed with different origins. This example shows rotating about the element center/origin. Depending on the origin, this may or may not get you what you’re looking for. (XY=0,0 is simply issuing a data point to accept the rotation)
AA=180ROTATESET ITEM TOOLSETTINGS ROTATEABOUTORIGINTOGGLE=1XY=0,0
If you don’t want to rotate about the center or origin, and know the point you to rotate about you could do something like this, where XY= the point to rotate about.
AA=180ROTATEXY=17,11
These will rotate the view, fit, and save settings.
ROTATE VIEW RELATIVE 180SELVIEW 1FIT ALLSELVIEW 1FILEDESIGN
Hope that points you in the right direction.
Matt
Answer Verified By: Chuck K.
Thanks Matt! That got me 99% there. The border does rotate but not in place which isn't that big of deal. You should present a webinar with GLBUG
I don't think you need to rotate your border , just rotate view 2 points to the lower longest edge of your border will rotate so the boreder looks right in the view with view rotated.... if they are all in same place then easy.. otherwise make keyin to rotate view 2 points and do the two points by hand?
Lorys
Started msnt work 1990 - Retired Nov 2022 ( oh boy am I old )
But was long time user V8iss10 (8.11.09.919) dabbler CE update 16 (10.16.00.80)
MicroStation user since 1990 Melbourne Australia.click link to PM me