VBA
Discuss AutoCAD ActiveX and VBA (Visual Basic for Applications) questions here.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

all AutoCad COMMANDS

4 REPLIES 4
Reply
Message 1 of 5
Anonymous
380 Views, 4 Replies

all AutoCad COMMANDS

I was just wondering if someone has a list that shows all BASIC AutoCad commands for VBCODE? Example:

Thisdrawing.ZOOMEXTENTS
Thisdrawing.LINE
Thisdrawing.ERASE
Thisdrawing.Circle

I am just guessing on the above. But I feel like there should be a list someone. Please post.
4 REPLIES 4
Message 2 of 5
cadger
in reply to: Anonymous

In the VBA IDE if your IDE is set to autolist members (Tools, Options, and check Auto List Members) you can see a list.
Message 3 of 5
Anonymous
in reply to: Anonymous

There are no basic AutoCAD commands for VB code.

You can only execute commands using the SendCommand() method of the AcadDocument.

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2008
Supporting AutoCAD 2000 through 2008
http://www.acadxtabs.com

wrote in message news:5870422@discussion.autodesk.com...
I was just wondering if someone has a list that shows all BASIC AutoCad commands for VBCODE? Example:

Thisdrawing.ZOOMEXTENTS
Thisdrawing.LINE
Thisdrawing.ERASE
Thisdrawing.Circle

I am just guessing on the above. But I feel like there should be a list someone. Please post.
Message 4 of 5
dgorsman
in reply to: Anonymous

Help file lists both method and property members for the various objects. You need to adjust your direction of thinking away from command-line intput and into the programmatic methods.
----------------------------------
If you are going to fly by the seat of your pants, expect friction burns.
"I don't know" is the beginning of knowledge, not the end.


Message 5 of 5
Anonymous
in reply to: Anonymous

Hi,

While what Tony advised is true and sending AutoCAD commands is an
inefficient way of programming the basic Zoom commands are available in VBA
and can be run directly without have to reference the Object they refer to
in the code.

ZoomAll

ZoomCenter

ZoomExtents

ZoomPickWindow

ZoomPrevious

ZoomScaled

ZoomWindow


--


Regards

Laurie Comerford
"Tony Tanzillo" wrote in message
news:5870435@discussion.autodesk.com...
There are no basic AutoCAD commands for VB code.

You can only execute commands using the SendCommand() method of the
AcadDocument.

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2008
Supporting AutoCAD 2000 through 2008
http://www.acadxtabs.com

wrote in message
news:5870422@discussion.autodesk.com...
I was just wondering if someone has a list that shows all BASIC AutoCad
commands for VBCODE? Example:

Thisdrawing.ZOOMEXTENTS
Thisdrawing.LINE
Thisdrawing.ERASE
Thisdrawing.Circle

I am just guessing on the above. But I feel like there should be a list
someone. Please post.

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

Post to forums  

Autodesk Design & Make Report

”Boost