how to run autocad using exe file?
how to run autocad using exe file?
(OP)
Hi!
I want to make group of macro commands, and all that
macro commands link with new (my) toolbar. Problem is:
How to make some exe file using VBA, which I can run from desktop, for lunching autocad.exe?
Thanks in advance!!!
I want to make group of macro commands, and all that
macro commands link with new (my) toolbar. Problem is:
How to make some exe file using VBA, which I can run from desktop, for lunching autocad.exe?
Thanks in advance!!!





RE: how to run autocad using exe file?
RE: how to run autocad using exe file?
You can't make an EXE with VBA, you need VB6 or VB.NET to do that.
Good Luck
johnwm
________________________________________________________
To get the best from these forums read FAQ731-376 before posting
UK steam enthusiasts: www.essexsteam.co.uk
RE: how to run autocad using exe file?
RE: how to run autocad using exe file?
RE: how to run autocad using exe file?
CODE
Set CadApp = GetObject(, "AutoCAD.Application")
If Err.Number <> 0 Then 'Not Running
Set CadApp = CreateObject("AutoCAD.Application")
Err.Clear
'AutoCAD may open a new drawing upon opening - close it
CadApp.ActiveDocument.Close False
If Err.Number <> 0 Then
Err.Clear 'No Drawings are Open
End If
End If
On Error GoTo 0
I used to use similar code to connect to AutoCAD 2000. As long as AutoCAD's object model hasn't changed significantly it should work for later versions.