Difference between revisions of "Dealing with Incorrect STEP Linear Unit Scale"

From ATTWiki
Jump to: navigation, search
(Created page with "* Back to VTube-STEP or VTube-LASER ==How Wrong Scales Are Represented in STEP Files== If you attempt to calculate a centerline and find that the calculation takes mu...")
 
(How Wrong Scales in STEP Files Affect VTube)
 
(5 intermediate revisions by one user not shown)
Line 1: Line 1:
 
* Back to [[VTube-STEP]] or [[VTube-LASER]]
 
* Back to [[VTube-STEP]] or [[VTube-LASER]]
  
==How Wrong Scales Are Represented in STEP Files==
+
==How Wrong Scales in STEP Files Affect VTube==
If you attempt to calculate a centerline and find that the calculation takes much longer than usual, and the resulting values are extremely large, then there is probably a problem in the original STEP file setup.
+
After an import of a STEP model of a tube. if you attempt to calculate a centerline and find that the calculation takes much longer than usual, and the resulting values are extremely large, then there is probably a problem in the original STEP file setup.
 
<br><br>
 
<br><br>
 
For example, this STEP file imported the following values:<br><br>
 
For example, this STEP file imported the following values:<br><br>
  
[[image:VTube-STEP_LargeScale.png|400px]]
+
[[image:VTube-STEP_LargeScale.png|600px]]
  
 
<br><br>
 
<br><br>
 +
 +
The import required 28,539 loops which is much higher than normal.
 +
 +
==How to Fix the STEP File in a Text Editor==
 +
Open the STEP file in a text editor and search for SI_UNIT.
 +
 +
In the import shown above the line with LENGTH_UNIT shows this:
 +
 +
<pre>
 +
#815=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT($,.METRE.));
 +
</pre>
 +
 +
In this line, we can change the "$" character like this:
 +
 +
<pre>
 +
#815=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
 +
</pre>
 +
 +
Then save the file, then re-import the STEP file.
 +
 +
==Import After Fix==
 +
 +
This is how the imported part shows now:
 +
 +
[[image:VTube-STEP_FixedScale.png|600px]]
 +
 +
<br><br>
 +
 +
=Other Pages=
 +
*

Latest revision as of 18:27, 12 July 2016

Contents

How Wrong Scales in STEP Files Affect VTube

After an import of a STEP model of a tube. if you attempt to calculate a centerline and find that the calculation takes much longer than usual, and the resulting values are extremely large, then there is probably a problem in the original STEP file setup.

For example, this STEP file imported the following values:

VTube-STEP LargeScale.png



The import required 28,539 loops which is much higher than normal.

How to Fix the STEP File in a Text Editor

Open the STEP file in a text editor and search for SI_UNIT.

In the import shown above the line with LENGTH_UNIT shows this:

#815=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT($,.METRE.));

In this line, we can change the "$" character like this:

#815=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));

Then save the file, then re-import the STEP file.

Import After Fix

This is how the imported part shows now:

VTube-STEP FixedScale.png



Other Pages