| Author |
Message |
Chris Shoemaker
Guest
|
Posted:
Mon Mar 28, 2005 7:43 pm Post subject:
Loading/Lauching a macro from a toolbar button |
|
|
I have a macro that i've been launching from a toolbar button. As of right
now I have the project file loaded in the startup suite, and call the macro
using something like this:
^C^C-VBARUN backgroundcleaner
I would however like to create a toolbar button that provides a fully
qualified path to the project/macro such that it can be loaded on demand
without being in the startup suite. Using the -vbarun command and then
copying in the whole thing on the command line works, but when i try to use
the full path in the macro portion of the toolbutton like so:
^C^C-VBARUN "S:\PreProject
Activity\ABS\Scripts\leaexpresstools.dvb!backgroundcleaner"
it only gets as far as this:
Command: -VBARUN
Macro name: "S:
Macro not found.
Any ideas on how i could launch this macro from a toolbar button without
first having the project loaded? Thanks in advance.
-Chris
|
|
| Back to top |
|
 |
juno
Guest
|
Posted:
Mon Mar 28, 2005 8:58 pm Post subject:
Re: Loading/Lauching a macro from a toolbar button |
|
|
Try:
^c^c(defun c:runMe()(command "-vbarun""S:/PreProject
Activity/ABS\Scripts/leaexpresstools.dvb!backgroundcleaner")(princ)) |
|
| Back to top |
|
 |
Laurie Comerford
Guest
|
Posted:
Tue Mar 29, 2005 1:04 am Post subject:
Re: Loading/Lauching a macro from a toolbar button |
|
|
Hi,
A slightly better approach is to use (VL-VBARUN
As Juno suggested you have to use forward slashes either way. Also put a
semi-colon at the end to ensure a carriage return. Spaces are not obvious.
^c^c(defun c:runMe()(vl-vbarun "S:/PreProject
Activity/ABS\Scripts/leaexpresstools.dvb!backgroundcleaner")(princ));
--
Laurie Comerford
CADApps
www.cadapps.com.au
"juno" <nospam@address.withheld> wrote in message
news:28242453.1112025545851.JavaMail.jive@jiveforum2.autodesk.com...
| Quote: | Try:
^c^c(defun c:runMe()(command "-vbarun""S:/PreProject
Activity/ABS\Scripts/leaexpresstools.dvb!backgroundcleaner")(princ)) |
|
|
| Back to top |
|
 |
Tony Tanzillo
Guest
|
Posted:
Tue Mar 29, 2005 1:51 am Post subject:
Re: Loading/Lauching a macro from a toolbar button |
|
|
Excuse this, but I don't really follow what you're
attempting to illustrate here.
The menu macro you show, defines a command
when the user clicks on the button/menu item
that executes the macro. I fail to see the purpose.
--
http://www.caddzone.com
AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005
http://www.acadxtabs.com
"Laurie Comerford" <laurie@DeleteThiscadapps.com.au> wrote in message news:42486226_3@newsprd01...
| Quote: | Hi,
A slightly better approach is to use (VL-VBARUN
As Juno suggested you have to use forward slashes either way. Also put a
semi-colon at the end to ensure a carriage return. Spaces are not obvious.
^c^c(defun c:runMe()(vl-vbarun "S:/PreProject
Activity/ABS\Scripts/leaexpresstools.dvb!backgroundcleaner")(princ));
--
Laurie Comerford
CADApps
www.cadapps.com.au
"juno" <nospam@address.withheld> wrote in message
news:28242453.1112025545851.JavaMail.jive@jiveforum2.autodesk.com...
Try:
^c^c(defun c:runMe()(command "-vbarun""S:/PreProject
Activity/ABS\Scripts/leaexpresstools.dvb!backgroundcleaner")(princ))
|
|
|
| Back to top |
|
 |
|
|
|
|