Executing AutoCAD commands from VBA
CADForums.net Forum Index CADForums.net
Discussion of AutoCAD and other CAD software.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web cadforums.net
Executing AutoCAD commands from VBA

 
Post new topic   Reply to topic    CADForums.net Forum Index -> VBA
Author Message
JFord
Guest





Posted: Tue Dec 07, 2004 11:32 pm    Post subject: Executing AutoCAD commands from VBA Reply with quote

How do I execute AutoCAD commands from VBA. Currently I'm wanting to write a routine in VBA which will execute the "Change Space" command (Under Express menu, Layout tools).
Thanks

Back to top
Peterg
Guest





Posted: Tue Dec 07, 2004 11:47 pm    Post subject: Re: Executing AutoCAD commands from VBA Reply with quote

ThisDrawing.SendCommand "chspace" & vbCr


Peter
Back to top
Laurie Comerford
Guest





Posted: Wed Dec 08, 2004 12:56 am    Post subject: Re: Executing AutoCAD commands from VBA Reply with quote

Hi,

Just be careful that you do not continue your code as the Sendcommand does
not necessarily complete before your code continues running.

--


Laurie Comerford
CADApps
www.cadapps.com.au

"Peterg" <nospam@address.withheld> wrote in message
news:27081566.1102445260611.JavaMail.jive@jiveforum1.autodesk.com...
Quote:
ThisDrawing.SendCommand "chspace" & vbCr


Peter


Back to top
JFord
Guest





Posted: Wed Dec 08, 2004 11:31 pm    Post subject: Re: Executing AutoCAD commands from VBA Reply with quote

Thanks everybody for the help. You gave me just what I needed.
Back to top
 
Post new topic   Reply to topic    CADForums.net Forum Index -> VBA All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




Windows Server DSP VoIP Electronics New Topics
Powered by phpBB