Documentation AutoCAD API for VBasic?

Documentation AutoCAD API for VBasic?

Anonymous
Not applicable
558 Views
1 Reply
Message 1 of 2

Documentation AutoCAD API for VBasic?

Anonymous
Not applicable

Hi,

 

Where can I find the VBasic API documentation of AutoCAD 3D? The help I get from within the VBasic environment of AutoCAD includes only the general VBasic language reference, and not specifics of AutoCAD stuff...

 

I am good at programming in VBasic (from Excel, for instance), but very new to AutoCAD Civil 3D. I would like to write my code directly under the VBasic environment on AutoCAD.

 

So far, I've been using Excel / VBasic programs and doing tricks like: (1) creating, copying and pasting AutoCAD commands to the command area, (2) creating/importing and exporting/reading PENZ files, and (3) exporting/reading obect data.

 

For instance, I want:

.- to draw lines, polylines, points, etc. on especific layers

.- to create COGO points

.- to use commands like "Elevations form surface" on those COGO points.

.- execute AutoCAD commands in general...

 

Thanks.

 

0 Likes
559 Views
1 Reply
Reply (1)
Message 2 of 2

dgorsman
Consultant
Consultant

Programming for Civil3D and AutoCAD 3D objects is very different.  Look for CHM files in the installation; somewhere in there, if you are lucky, there will be an object model which maps out the various objects and provides the various COM/ActiveX methods, properties, and events.  I know there is one for AutoCAD.  You should ask over in the Civil3D board if somebody knows where theirs is.  Of course, all that assumes you are talking VBA, and not VB.NET - two different creatures.

----------------------------------
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.


0 Likes