Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > VB How-To
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
VB How-To Ask your "How do I do this with VB?" questions in this forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old November 2nd, 2004, 06:13 AM
Registered User
 
Join Date: Aug 2004
Location: pune, maharashtra, India.
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to belzicool
Default 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.
thanx,
nikhil
Reply With Quote
  #2 (permalink)  
Old November 2nd, 2004, 06:37 AM
Authorized User
 
Join Date: Jun 2003
Location: Lisbon, , Portugal.
Posts: 52
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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

Elisa Resina
Reply With Quote
  #3 (permalink)  
Old November 2nd, 2004, 07:10 AM
Registered User
 
Join Date: Aug 2004
Location: pune, maharashtra, India.
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to belzicool
Default

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?
Reply With Quote
  #4 (permalink)  
Old December 2nd, 2004, 10:46 PM
Authorized User
 
Join Date: Nov 2004
Location: North Ryde, NSW, Australia.
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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.

Thanks


Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Call VB exe in another vb program Swati Chari BOOK: ASP.NET Website Programming Problem-Design-Solution 1 March 14th, 2008 11:43 AM
Reading material attributes from an autocad file kesakiran C# 0 December 1st, 2006 01:24 AM
Call VB Exe from VB Program jmss66 VB How-To 5 December 12th, 2004 11:17 AM
connecting to Autocad oni VB.NET 2002/2003 Basics 4 April 19th, 2004 10:47 AM
Autocad oni Pro VB.NET 2002/2003 1 April 19th, 2004 09:57 AM



All times are GMT -4. The time now is 07:52 AM.


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