Unit of a Step export, how to set them up?

Is it possible to set up the output units of a STEP file when exporting?

When we edit this type of file via a PDM task, our parts in mm change to Inch in the STEP (without changing the size of the part, fortunately).

And I don't see any option, neither in SW nor in the PDM to set this up before the export.

Hello

Open your step file in a text editor such as notepad, in DATA #1 you will be able to read the model unit. From there you will know if you should look on the export side, on the import side, or simply on the display side (unit, in PDM in particular).

Hello

Thank you for your answer. I looked, and I have this:

DATA;
#1 = LINE ( 'NONE', #90604, #81164 ) ;

Not being familiar with coding, I don't really know what to conclude :-)

 

Hello
How do you see that the unit of your files is in inches?

1 Like

Hello @lmoreau 

Scroll through the lines a bit until you see something related to the units, such as:

#1 =( LENGTH_UNIT ( ) NAMED_UNIT ( * ) SI_UNIT ( . MILLI.. METER. ) );

1 Like

@Stefbeno, I see it when I click on an entity (a diameter for example), its value appears at the bottom of the SW window on the right, and on a WWTP it is an Inch, while the source part is in mm. This can also be seen by the "Evaluate" tool.

 

@Sylk, when I searched on 'UNIT', I found this kind of line, which appears a large number of times:

#4032 =( LENGTH_UNIT ( ) NAMED_UNIT ( * ) SI_UNIT ( . MILLI.. METER. ) );

It would tend to prove that it doesn't come from export. Would it be SW that opens the step in inch automatically?

By searching a little, I went through the options that SW offers when opening a STEP (when you open it via SW, and not via the browser). It suggests the unit of the file or the unit of a document template.

With the first option, the step goes to Inch (strange since in the STEP code there is indicated mm),

With the second, it remains in mm.

Even more surprising, since I once clicked on the "unity from the document template" option, the steps that you open by dragging them from the browser remain in mm...... whereas they opened in Inch before.

 

so it seems to have solved the PB, without really knowing what happened, or why they switch to Inch at some point....


2022_05_11_14_44_19_options_du_systeme_step_iges_acis.png

Did you switch back to "file-specific import unit"?

1 Like

Yes, and it goes back to Inch.

it follows the option I choose, which I open from SW or drag and drop from the explorer.

Really strange...

Weird... I don't have this problem.

What is your version of SW?

2021 SP5.1

That's kind of what I thought:  it's not the step file that is badly configured, it's during the import that the file is converted.

In SW, you have 2 possibilities for the use of a template when importing a file (whatever it is: step, iges, etc)  either use the template indicated in System Options/Default Templates or the system asks which template to use.

If you haven't specified anything, SW uses its default template, which is probably set to inch.


modele_par_defaut.jpg

Yes, this is indeed the option I found and tested successfully yesterday. I passed the information yesterday to the guys in my department, who confirmed that it worked.

Pb solved then.

 

In any case, thank you all for your help!