TurboCAD Forums

The Ultimate Resource for TurboCAD Knowledge

Register
 
The purpose of these forums is to discuss TurboCAD.  Please keep the discussion of other products to compatibility issues or how the other software’s can be used with TurboCAD.


Open a file
Read 2534 times
* August 30, 2011, 06:25:41 AM
So I'm just trying to open a file with a specified path, but the most recent file is opened instead. Here is my code:

Option Explicit
Dim tcApp
Dim tcDwg

Set tcApp = CreateObject("TurboCAD.Application")
dim myStr
myStr = "C:/Drawing2.tcw"
tcApp.Drawings.Open(myStr)



I have looked at the open method in an Object browser and it claims the only required argument is a string filename. as far as I can see that is what I am sending

Logged


* August 30, 2011, 11:00:03 AM
#1
Hi Samski

try this one:

Option Explicit
Dim tcApp
Dim tcDwg

Set tcApp = CreateObject("TurboCAD.Application")
dim myStr
myStr = "C:/test.tcw"tr)

Set tcDwg = tcapp.Drawings.Open(mystr)

mike

Logged