×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

v5 -> v4 batch

v5 -> v4 batch

v5 -> v4 batch

(OP)
anyone got a v5 (.catpart) to v4(.model) batch converter?


strange request



thanks,


-nadz

RE: v5 -> v4 batch

Other than the mouse hand?

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

Hi,

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

Hi,

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

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources