Catia Macro
Catia Macro
(OP)
Dear all,
I am looking for a catia macro to save the file with the name same as part number.
For example if I have a part name in tree structure A567892200 and this part I need to save as with same filename A567892200.Catpart... without manually entering in save as window ..Please help me.. (Scenario is I have created part with design table and want to save all its variants with different name which already entered in design table)..
Thank you in advance.
I am looking for a catia macro to save the file with the name same as part number.
For example if I have a part name in tree structure A567892200 and this part I need to save as with same filename A567892200.Catpart... without manually entering in save as window ..Please help me.. (Scenario is I have created part with design table and want to save all its variants with different name which already entered in design table)..
Thank you in advance.





RE: Catia Macro
The correct way is to make a catalog from the original part.This part is linked with the excel file.When you resolve the catalog, all files (Catparts) will be created automatically with the specified name from the excel.
Check out the image below.
In my case there is a concatenation made in excel which defines the part name.
Best regards,
Costin Ruja
RE: Catia Macro
Regards
Fernando
https://picasaweb.google.com/102257836106335725208 - Romania
https://picasaweb.google.com/103462806772634246699... - EU
RE: Catia Macro
Anyway, this approach varies from case to case.
Not having the piping module, I devised a methodology which works nice with pipes.
I made a pipe part template which is linked to an excel design table. When I need a new pipe, I just click new from, I rename it and then i can select which DN I need. I just make the pipes, route them, and at a later stage if I need another DN, in 3-4 clicks it gets done. The excel doesn't get renamed or saved. In this way I can add new lines to the file whenever I need to.
@Parge, this seems closer to the case which you described
Best regards,
Costin Ruja
RE: Catia Macro
Regards
Fernando
https://picasaweb.google.com/102257836106335725208 - Romania
https://picasaweb.google.com/103462806772634246699... - EU
RE: Catia Macro
Please suggest me if you have any other method or macro
Thank you.
RE: Catia Macro
I.m just using some skeleton helping part with points and vertexes (from sketches).I connect these ones with polylines and in the pipe part i just use these polylines as external references. I know it's not the best appproach but for simple models it works fine.
@Parge
I know, the generated parts do not link to the excel. Personally, for STANDARD parts (that no other user can or should modify), i would prefer not being able to interact with the geometry at all. These kind of parts must be modified or regenerated only by the CAD administrator of the company.
I don't know any other method to accomplish what you asked.
Best regards,
Costin Ruja