Académique Documents
Professionnel Documents
Culture Documents
com/cadcamcaemagazine/cad-magazine/the-second-
number.html
Script to create
PDF and DWG
on Catia
http://www.vietnam-cadcamcae.com/cadcamcaemagazine/cad-magazine/the-second-
number.html
Language="VBSCRIPT"
Sub CATMain()
Dim oFSO
Set oFSO= CreateObject("Scripting.FileSystemObject")
strComputer = "."
Set objWMIService = GetObject("winmgmts:" &
"{impersonationLevel=impersonate}!\\" & strComputer &
"\root\cimv2")
If Not oFSO.FolderExists(PathToCATFiles& "\PDF") Then
oFSO.CreateFolder(PathToCATFiles& "\PDF")
End If
If Not oFSO.FolderExists(PathToCATFiles& "\DWG") Then
oFSO.CreateFolder(PathToCATFiles& "\DWG")
End If
On Catia, run this macro. The macro create both PDF and
DWG at the same time.