TurboCAD Forums

The Ultimate Resource for TurboCAD Knowledge

Register
 
Remember to do a search before you ask a question!!!

Open a file
Read 2056 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