JayEnn1
Automotive
- Sep 29, 2015
- 50
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