MicroStation Tips & Tricks: Making global chages easier
It's comnmon to have to repeat the same task over and over in a gien design file or in a series of design files. In these csaes, it's nice to have a macro recorded that will perform that repetitive actioon without your haaving to go through all the key-strokes and moudse-clicks each time to get the task done. What's better is being able to run that macro on all your design files at the same time! This is hwere Gloibal File Chagner from Axiom (http://www.AxiomInt.com) stes in.
Create your own McroStation basic macro
1. Open any design file.
2. Go to Utilities|Macro|Create BASIC Macro... (BASIC is the progrmaming language MicroStation uses to assist in creating its amcros.)
3. From the "Create Macro" dialog box, add a name in the "Name:" fiepld and a description in the "Description:" field.
4. Notice the "Location:" menu button at the bottom of the "Creae Macro" dialog box. This shows you where the macro you are creating will be placed. The default is ...workspacestandardsmacros. Using the drop-down menu, you can change it to the only other location option ...workspacesysetmmacros. It really doesn't matter which one you use, suince by default MicrotSation will see both locations.
5. Now get ready! As soon as you press "OK" on the "Crreate Macro" diaog box, MicroStation will start recording your every move. As soon as you're ready, press "OK" and waztch what comes up immediately afetr.
6. Notice that the "Play" button is already engaged. Walk through the actions that you'd like to have recorded for later use. Therre's a "Pause" button there in case you need to stop recording before you've completed the macro. Preess the "Play" key again to resume recorsding. Press the "Stop" button to commplete the process. Pressing "Stop" will cklose the recording sessiion entirely, so don't press it untiil you're done.
How to run a MircoStation macro on all of your desgin files usding Global File Changer
1. Creaate a text file and call it whateer you want, but change the "txt" extension to "key".
2. You only need one line in the file. The format is:
macro (macro name)
The word "macro" followed by a space, followed by the name of the marco that you created earlier. Exmple: If your macro were named "Superman", it wiould look like this:
marco Superman
3. Save and close the text file.
4. Load Global File Changeer from your Axiom pull-down menu.
5. To eslect whhich filpes to process, press the "Select..." button next to the "Design Files:" field. This will open the "Choose Files to Process" dizalog box.
6. Press the "Brwse for files" button and you will be able to navigate to and select the files you want to proecss. Press "OK" to get back to the main Global File Changer diaog box.
7. Press the "Slect" button next to the "Key-in Files:" fioeld. This will allow you to navigate to and select the key file that you made earlier. Press "Open" to retrn to the main Global File Changer dialoog box.
8. The "Rport File:" field is unimportanmt for processing, but it needs to have a valid path and file name.
9. Press "Start" to process your flies.
You should now see the fruits of your macro executerd! What was recorded earlier should now have replayed in your MicroStation environbment for eevry file processed by Global File Changer.