p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   VB How-To (http://p2p.wrox.com/forumdisplay.php?f=78)
-   -   how do i call autocad through VB 6 (http://p2p.wrox.com/showthread.php?t=20717)

belzicool November 2nd, 2004 06:13 AM

how do i call autocad through VB 6
I am working on a project in which i have to use some autocad functions, however the coding is in VB and i don't know how to call autocad from VB 6, so that i can use autocad functions. the autocad part is very small, where we manipulate some drawings using autocad vba functions we have written. the client wants the whole consolidated application in VB. can any one help me out on this one.

eresina November 2nd, 2004 06:37 AM

You need to load a component to call the functions. what is the ocx/dll you are using? Don't forget you may need to register it.


Elisa Resina

belzicool November 2nd, 2004 07:10 AM

Thanks for your reply Elisa. I have not yet decided any specific approach for the project. I am still trying to figure out all the options available to do this autocad call in my project. once i decide on the approach i will be able to design a interface and sketch a frame for the whole project. But does VB have a ocx/dll support for autocad calling, because i think that there is support only to read autocad drawings in VB environment. will i be able to call autocad functions through them?

Zaff December 2nd, 2004 10:46 PM

I am working on a Project Management Program for Engineering Design Comany, and AutoCAD 2004 is in use, this program is MS-ACCESS with SQL Database, I did CALL Autocad from Access by adding its lib. ACAD to the program references, then using VBA ACCESS can do the followings:
1- Create a new drawing using a template
2- Get Projetc data from the database such as Title, Name, Drawing No, ...
3- Format data (Line, font, Color, ...)
4- Insert the Data into the new drawing
5- save it into specific directory
6- quit
7- Update the database

Therefore I think that would work with VB in the same way.


All times are GMT -4. The time now is 12:38 AM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.