Welcome to the COE Discussion Forum! 

 

To participate in the discussion forum, you must be logged in to the website.  If you forget your login information, please contact COE Headquarters at coe@coe.org or (800) 263-2255.

If you are new to the COE Discussion Forum and would like to participate, please register.


Register Today
COE 2009 Annual PLM Conference & TechniFair

COE DISCUSSION FORUM
Subject: How to create folder via catvbs

You are not authorized to post a reply.   
Author Messages
ASETH18

12 Nov 2008 06:50 AM

Hello,

I am facing an API problem in CATIA VBA : i am trying to create folder at any specified location in catvbs script.

But, when i use VBA/catvba scrpit it runs well . For eg:

MkDir "C:\IGESDATA" ..runs well in catvba script.But the same give error message: "Type Mismatch MkDir " when I runs it on catvbs. As per Catia help if i use different objects . For eg:

Dim FileSys1 As CATIAFileSystem
FileSys1.createFolder ("C:\Fold1"

still catvbs script gives the error: expected end of statement.

Please if anybody can help me , i would be really thankful.

Warm Regards

Ankur Seth

CLIFFJOHNSON


12 Nov 2008 07:08 AM
This is working OK for me as a catvbs

Sub CATMain
Dim fs
Set fs = CATIA.FileSystem
Dim theFolder
Set theFolder = fs.CreateFolder("C:\AAAA123" )
End Sub
ASETH18

13 Nov 2008 12:21 AM

hey ,

Thanks a lot . Its working now.

Regards

Ankur

You are not authorized to post a reply.
Forums > COE Forums > CATIA V5 Programming > How to create folder via catvbs



ActiveForums 3.6

    

401 North Michigan Avenue, Chicago, IL 60611-4267 | (312) 321-5153 | (800) COE-CALL (U.S.)