Skip to main content
14-Alexandrite
June 18, 2020
Question

Rename step files with the same name

  • June 18, 2020
  • 9 replies
  • 5023 views

Hello,

 

So I have an assembly and i want to export to step file, but all my files has to come with this name: MX_Revision_A_18_06_2020.step. How can I do that? Any thoughts?

Thank you in advance 🙂

 

Mariana Sousa

 

9 replies

24-Ruby III
June 18, 2020

@MarianaSousa wrote:

Hello,

 

So I have an assembly and i want to export to step file, but all my files has to come with this name: MX_Revision_A_18_06_2020.step. How can I do that? Any thoughts?

Thank you in advance 🙂

 

Mariana Sousa

 


Hi,

1.] you have to explain procedure for name generation (in detail)

2.] you have to create macro for STEP export

m.sousa14-AlexandriteAuthor
14-Alexandrite
June 22, 2020

Hi,

 

Example of data: main assembly "Molde_10.asm" with 3 parts "100.prt"; "200 .prt"and "101.prt". I want to export to STEP file, and yes I already have a mapkey to export to step. But i want to export all my files with the name "Molde_10_today_date_rev_A.stp", "100_today_date_rev_A.stp", "200_today_date_rev_A.stp", and "101_today_date_rev_A.stp". 

The sufix "_today_date_rev_X.stp "will change all at once "X_today_date_rev_X.stp". 

With my mapkey files are generated with this name "Molde_10_top.stp", "100_prt.stp", "100_prt.stp" and "101_prt.stp".

If I do "Save as" i know that i can choose the name file, but it takes lot of time if i have many subassemblies or parts. 

 

 

24-Ruby III
June 22, 2020

@MarianaSousa wrote:

Hi,

 

Example of data: main assembly "Molde_10.asm" with 3 parts "100.prt"; "200 .prt"and "101.prt". I want to export to STEP file, and yes I already have a mapkey to export to step. But i want to export all my files with the name "Molde_10_today_date_rev_A.stp", "100_today_date_rev_A.stp", "200_today_date_rev_A.stp", and "101_today_date_rev_A.stp". 

The sufix "_today_date_rev_X.stp "will change all at once "X_today_date_rev_X.stp". 

With my mapkey files are generated with this name "Molde_10_top.stp", "100_prt.stp", "100_prt.stp" and "101_prt.stp".

If I do "Save as" i know that i can choose the name file, but it takes lot of time if i have many subassemblies or parts. 

 

 


Hi,

my first idea ...

1.] open Molde_10.asm

2.] change working directory to empty auxiliary directory

3.] Save As assembly into auxiliary directory ... you can modify model names according you needs in Save As dialog box

4.] erase Molde_10.asm from memory

5.] open Molde_10_today_date_rev_A.asm

6.] export Molde_10_today_date_rev_A.asm assembly into STEP

7.] delete files from auxiliary directory

 

18-Opal
June 18, 2020

A simple rename insession of your models using CRESON (Open Source Automation for Creo) would be fast and effective - with a final export of the STEP.

 

basically:

 

file : open <asyname>

for each parts/assembly....

file : rename <curname> <newfilename> -onlysession true

with a final....

interface : export <newasyname>

 

With a bit more work you could extract information from the models (parameters/values) and have the entire process automated.

 

Dave

 

 

m.sousa14-AlexandriteAuthor
14-Alexandrite
June 22, 2020

What is that? an application for Creo? Free?