v5 -> v4 batch
v5 -> v4 batch
(OP)
anyone got a v5 (.catpart) to v4(.model) batch converter?
strange request
thanks,
-nadz
strange request
thanks,
-nadz
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS Come Join Us!Are you an
Engineering professional? Join Eng-Tips Forums!
*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail. Posting GuidelinesJobs |
|
RE: v5 -> v4 batch
Over at the CATBlog, Ferdo wrote a batch convert script to output to PDF. Probably, with a minimum of effort, it could be overhauled to meet the task.
---
CAD design engineering services - Catia V4, Catia V5, and CAD Translation. Catia V5 resources - CATBlog.
RE: v5 -> v4 batch
Yes, solid7 has right. And yes, strange request because you will lose any history (but you probably know that)
Regards
Fernando
RE: v5 -> v4 batch
Did you modify that macro? If not, here is another one.You have to create two folders. Look at the macro.
Language="VBSCRIPT"
Sub CATMain()
folderinput = InputBox ("Take your files from here","Input","C:\tempin\",2000,4000)
folderoutput = InputBox ("Put your files here","Output","C:\tempout\",2000,4000)
Dim fs, f, f1, fc, s
Set fs = CreateObject("Scripting.FileSystemObject")
Set f = fs.GetFolder(folderinput)
Set fc = f.Files
For Each f1 in fc
Dim PartDocument1 'As Document
Set documents1 = CATIA.Documents
Dim document1 'As Document
INTRARE = folderinput & f1.name
Set PartDocument1 = CATIA.Documents.Open(INTRARE)
IESIRE = folderoutput & f1.name & ".model"
PartDocument1.ExportData IESIRE, "model"
s = s & f1.name
s = s & vbCrLf
CATIA.ActiveDocument.Close
Next
End Sub
Regards
Fernando