Thoughts on an idea for a CatiaV5 save file macro?
Thoughts on an idea for a CatiaV5 save file macro?
(OP)
Hello!
I would like some feed back on an idea for a CatiaV5 save file macro. I will try my best to explain..
Typically, a designer would save file(s) locally on their computer while working on a design. Then the designer would provide an Adobe 3DPDF to the customer for review/approval. After design has been approved and changes ( if any ) have been completed we run an existing Catia macro that loops thru a tree renaming the "Part Number" property to a company standard format ( plus fills out other user attributes ). A big time saver. Then the designer has to go thru each CatProduct & CatPart and perform a Save As using the new part number as the new file name. That way the filename and the part number match. The designer has to do this one at a time and can be time consuming.
Would it be okay to write a script that would first create an empty temporary folder, loop thru the tree, obtaining the newly assigned part number property value, perform a Save as, saving the current object in loop to the new temporary folder using the part number as the new file name. Then..... The designer would within Catia perform a Save management and propagate the design to its final destination folder. Lastly delete the temporary folder after propagation.
Mainly looking for feedback on the idea. I'll tackle the script myself if I feel the task is okay to try and if there are any Warnings I should take into consideration.
Thank you!
Tom
I would like some feed back on an idea for a CatiaV5 save file macro. I will try my best to explain..
Typically, a designer would save file(s) locally on their computer while working on a design. Then the designer would provide an Adobe 3DPDF to the customer for review/approval. After design has been approved and changes ( if any ) have been completed we run an existing Catia macro that loops thru a tree renaming the "Part Number" property to a company standard format ( plus fills out other user attributes ). A big time saver. Then the designer has to go thru each CatProduct & CatPart and perform a Save As using the new part number as the new file name. That way the filename and the part number match. The designer has to do this one at a time and can be time consuming.
Would it be okay to write a script that would first create an empty temporary folder, loop thru the tree, obtaining the newly assigned part number property value, perform a Save as, saving the current object in loop to the new temporary folder using the part number as the new file name. Then..... The designer would within Catia perform a Save management and propagate the design to its final destination folder. Lastly delete the temporary folder after propagation.
Mainly looking for feedback on the idea. I'll tackle the script myself if I feel the task is okay to try and if there are any Warnings I should take into consideration.
Thank you!
Tom





RE: Thoughts on an idea for a CatiaV5 save file macro?
This macro has been in the company for a while, so I don't know the specifics. I can look into the code later on today to see if I can explain better.
RE: Thoughts on an idea for a CatiaV5 save file macro?
RE: Thoughts on an idea for a CatiaV5 save file macro?
Thank you! I would appreciate any thoughtful advice. I will write the script, just need some advice on the idea, warnings, link issues, etc..
Jenial,
We could rename parts & products in the beginning but the problem is things change throughout the course of a design. Customers review and propose new changes, build shop may introduce changes, and management may introduce changes. If we rename in the beginning then we will most likely have to rename again and possibly rename again. Because of potential changes, we save renaming towards the end of the design.
Our company naming policy has a numerical/alphabetical sequence. An organized list of details helps build shop to fabricate.
Thanks!
Tom
RE: Thoughts on an idea for a CatiaV5 save file macro?
RE: Thoughts on an idea for a CatiaV5 save file macro?
RE: Thoughts on an idea for a CatiaV5 save file macro?
Do not forget how UUID is created and take in consideration the impact on other CATIA files (like updating drawings for example). See FAQ about UUID.
Regards
Fernando
https://picasaweb.google.com/102257836106335725208 - Romania
https://picasaweb.google.com/103462806772634246699... - EU
RE: Thoughts on an idea for a CatiaV5 save file macro?
Typically we create drawings after 3D is 100% & approved, otherwise we will need to perform the updates like you mentioned.
With tight budgets, we try not to do things twice.
Tom