Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Catia Macro 1

Status
Not open for further replies.

Parge

Automotive
Apr 21, 2017
2
IN
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.
 
Replies continue below

Recommended for you

You are doing it the hard way. What if you have hundreds of versions (lines in excel) for that part ? You do realize you are going to change manually and cycle through every part, then save as ?

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.
Capture_aswn77.png


Best regards,
Costin Ruja
 
Thanks, ferdo.

Anyway, this approach varies from case to case.

Not having the piping module, I devised a methodology which works nice with pipes.

Capture_uupzho.png


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
 
Hi Costin Ruja thank you for your answer. I have tried with the catalog but the thing is when it saved from catalog it will no longer having link to the design table, it will have parameters but without link.

Please suggest me if you have any other method or macro

Thank you.
 
@ferdo
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top