Welcome, Guest. Please login or register.
May 16, 2012, 04:15:03 pm
Home Help Search Login Register
News: Remember to do a search before you ask a question!!!

+  TurboCAD Forums
|-+  SDK Corner
| |-+  SDK General Discussion
| | |-+  Open a file
« previous next »
Pages: [1] Go Down Print
Author Topic: Open a file  (Read 335 times)
samski
Newbie
*
Posts: 1


« on: August 30, 2011, 05: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
mikek
Newbie
*
Posts: 11


« Reply #1 on: August 30, 2011, 10:00:03 am »

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
Pages: [1] Go Up Print 
« previous next »
Jump to:  


Login with username, password and session length

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 0.085 seconds with 17 queries.