Talk About Network

Google





Computer Aided Design - CAD > Programming with Microstation > Re: How to run ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 3 Topic 389 of 479
Post > Topic >>

Re: How to run a macro by clicking a customized tool button

by Teresa Zager <tjzager@[EMAIL PROTECTED] > Mar 29, 2006 at 02:47 PM

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
 




 3 Posts in Topic:
How to run a macro by clicking a customized tool button
"magoo" <xda  2006-03-29 05:56:50 
Re: How to run a macro by clicking a customized tool button
Teresa Zager <tjzager@  2006-03-29 14:47:07 
Re: How to run a macro by clicking a customized tool button
"magoo" <xda  2006-03-29 23:53:51 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
localhost-V2008-12-19 Fri Jan 9 13:29:07 PST 2009.