I want to open a dwg file from code in my program. I have a string variable containing the full path and file name. I want to open the dwg file in an instance of Autocad that is already running, I don't want to open Autocad. The program is written in VB 6.0. Is this possible?
yes, is possible, use COM/ActiveX to get access to the running AutoCAD instance and start controlling it.
Dim tAcadApp as AcadApplication 'or as Object if you use latebinding
Set tAcadApp = getObject(,"AutoCAD.Application")
- alfred -
Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register