Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hi,

Is there any books, i can reffer to get VB as interface with AUTO CAD.
If some one can send the URL's i will appriciate their help.

Have a nice time,

David
 
I have not seen any books on this either. AutoCAD 2000 has a complete VBA reference help file. This will get you 99% of the code you will need to automate AutoCAD. If you are writing a separate VB app then just use this to attach to the AutoCAD application.

Dim cadApp as Object

On Error Resume Next

Set cadApp = GetObject(,"AutoCAD.Application")

If Err.Number <> 0 Then 'AutoCAD was not running
Err.Clear
Set xlApp = CreateObject(&quot;AutoCAD.Application&quot;)
End If

On Error GoTo ErrHndlr

The majority of my job is automating SolidWorks and AutoCAD for our engineering department. Let me know if you have any specific questions.

Hope this helps!
 
Tclere! I think you just became my newest best friend! My company is preparing for another ISO-9000 audit and I need to find a way to automate the conversion of hundreds of CAD drawings to electronic (PDF) format.

Well... this is the wrong thread. I'll post a fresh one....
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top