Visual Basic Customization

Visual Basic Customization

Reply
Valued Contributor
drkellog
Posts: 68
Registered: ‎02-16-2008
Message 1 of 5 (89 Views)

all AutoCad COMMANDS

89 Views, 4 Replies
03-08-2008 07:16 AM
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.
Distinguished Contributor
cadger
Posts: 378
Registered: ‎03-28-2007
Message 2 of 5 (89 Views)

Re: all AutoCad COMMANDS

03-08-2008 08:21 AM in reply to: drkellog
In the VBA IDE if your IDE is set to autolist members (Tools, Options, and check Auto List Members) you can see a list.
*Tony Tanzillo
Message 3 of 5 (89 Views)

Re: all AutoCad COMMANDS

03-08-2008 09:26 AM in reply to: drkellog
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.
*Expert Elite*
dgorsman
Posts: 5,698
Registered: ‎10-12-2006
Message 4 of 5 (89 Views)

Re: all AutoCad COMMANDS

03-08-2008 11:03 AM in reply to: drkellog
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.
Adopt. Adapt. Overcome. Or be overcome.
A good question will be halfway to a good answer.


*Laurie Comerford
Message 5 of 5 (89 Views)

Re: all AutoCad COMMANDS

03-09-2008 01:45 PM in reply to: drkellog
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.
Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.