VBA
Discuss AutoCAD ActiveX and VBA (Visual Basic for Applications) questions here.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Reply
Message 1 of 4
Anonymous
145 Views, 3 Replies

Start up

I forget how to run the start-up portion of my
vba.  I while ago I got a CAP-LOCK un-lock for when in CAD and out of
CAD.  And I have to just open vbaide and it then runs but I know it can
start automatically.  So how do I do it?


--
Thanks,
 
Dave Gardner
(remove na. to reply)
"It's never too late to be what you might have
been."
George Eliot
3 REPLIES 3
Message 2 of 4
Anonymous
in reply to: Anonymous



If I undestand you correctly, create a text file called "ACAD.RX" and place
it in one of your AutoCAD support paths.  Open the file and add one
of the following lines, depending on which version of AutoCAD you have:

AutoCAD 2000/2000i/2002:

    acadvba.arx

AutoCAD 2004:

    acvba.arx

You should then see "Initializing VBA System..." when AutoCAD starts
up.

Hope that helps,

Mark Sanchez

David Gardner wrote:

 I forget how
to run the start-up portion of my vba.  I while ago I got a CAP-LOCK
un-lock for when in CAD and out of CAD.  And I have to just open vbaide
and it then runs but I know it can start automatically.  So how do
I do it?
 

--

Thanks,

Dave Gardner (remove na. to reply)

"It's never too late to be what you
might have been."


George Eliot


Message 3 of 4
Anonymous
in reply to: Anonymous

Thanks. That is a start.  Now how do I run the
"Sub ACADStartup()"?  When AutoCAD loads.  This only does
this

 

Initializing VBA System...
Loading VBA startup
file...


--
Thanks,
 
Dave Gardner (remove na. to reply)
"It's
never too late to be what you might have been."
George Eliot


style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
If
I undestand you correctly, create a text file called "ACAD.RX" and place it in
one of your AutoCAD support paths.  Open the file and add one of the
following lines, depending on which version of AutoCAD you have:

AutoCAD 2000/2000i/2002:
    acadvba.arx

AutoCAD 2004:
    acvba.arx

You should then see "Initializing VBA System..." when AutoCAD starts up.

Hope that helps,

Mark Sanchez

David Gardner wrote:

 I forget how to
run the start-up portion of my vba.  I while ago I got a CAP-LOCK
un-lock for when in CAD and out of CAD.  And I have to just open vbaide
and it then runs but I know it can start automatically.  So how do I do
it?
 
--

Thanks,

Dave Gardner (remove na. to
reply)

"It's never too late
to be what you might have been."


size=-1>George Eliot

Message 4 of 4
Anonymous
in reply to: Anonymous

The sub has to be in a public module in acad.dvb,
which you create and is located in your support path.


--
--
Ed
--


style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">

Thanks. That is a start.  Now how do I run
the "Sub ACADStartup()"?  When AutoCAD loads.  This only does
this

 

Initializing VBA System...
Loading VBA startup
file...


--
Thanks,
 
Dave Gardner (remove na. to
reply)
"It's never too late to be what you might have been."
George
Eliot


style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
If
I undestand you correctly, create a text file called "ACAD.RX" and place it
in one of your AutoCAD support paths.  Open the file and add one of the
following lines, depending on which version of AutoCAD you have:

AutoCAD 2000/2000i/2002:
    acadvba.arx

AutoCAD 2004:
    acvba.arx

You should then see "Initializing VBA System..." when AutoCAD starts up.

Hope that helps,

Mark Sanchez

David Gardner wrote:

 I forget how
to run the start-up portion of my vba.  I while ago I got a CAP-LOCK
un-lock for when in CAD and out of CAD.  And I have to just open
vbaide and it then runs but I know it can start automatically.  So
how do I do it?
 

size=-1>--


size=-1>Thanks,

Dave Gardner (remove na. to
reply)

"It's never too
late to be what you might have been."


face=Arial>George
Eliot

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost