magoo wrote:
> hello all,
>
> I have created a custom tool bar which im hoping to run a print macro
> that i have created. the macro prints out 4 copies of my selected cad
> drawings. i need to know how to run the .bas files in the keyin part of
> the toolbar.
>
> so far ive got mdl silentload MACRODLG ( this runs the macro
> directory screen) i now need to run the print.bas file. Im i able to
> bypass that command and try running the program from the hard drive e.g
> mdl silentload C:\Program
> Files\Bentley\Workspace\standards\macros\print_chris.ba ( doing this
> doesnt seem to work)
>
> Any ideas??
>
Yes, you can bypass the macro directory screen. The keyin command is:
MACRO print_chris
MicroStation will look for print_chris.ba in the directories listed in
the MS_MACRO configuration variable. Based on the directory shown above,
this is likely to be case.
If the macro file isn't in one of the MS_MACRO directories then the
command is
MACRO "c:\Program
Files\Bentley\Workspace\standards\macros\print_chris.ba"
The double quotes are needed when there are spaces in the file
specification. (And if the command is on two lines, blame it on word
wrapping.)
HTH,
Teresa Zager
Bentley


|