NX View scale label show a decimal rather than integer value for custom view scale

2021-10-06T23:27:35Z
NX for Design

Summary


Details

Have created a non-standard scale drawing view in NX drafting. In the base view menu, Scale group, the Scale drop-down menu is set to Ratio and 1:60 is entered in the associated fields.


In the base view settings menu "Show View Scale" is turned on.


The view scale label produced on the drawing is 0.017:1.0 instead if the expected integer output 1:60


How can I get the view scale label to be expressed as an integer value?



Solution

To get an integer value in your view label when using custom view scale through the view scale Ratio input you need to define a list of valid integer values and make NX read this list.

The steps to accomplish this is:
- Store in a file named "view_scale_denominator.txt" containing valid integer values.
For example the content of such a file could look like:
---------------------------
1
2
3
4
5
6
8
9
12
15
16
20
32
40
50
60
100
200
500
1000
---------------------------
- Define the variable NX_VIEW_SCALE_DENOMINATOR_DIR in for instance "ugii_env.dat", pointing at the folder where "view_scale_denominator.txt" is stored. The entry in "ugii_env.dat" could for instance look like:
        NX_VIEW_SCALE_DENOMINATOR_DIR = N:\Apps\splm\custom\nx1899

After these definitions have been made NX need to be restarted.
Now when you create a new view with custom view scale label, it will state the scale with integer values.



PLEASE NOTE the following CAVEATS:
==============================
1) This file will be read once per NX session.
2) The denominator scales will only apply when using Ratio input, Expression input is not covered.
3) This list will not be saved with the part file.
4) If NX session is started without the text file, or if the environment variable is not set, and a part containing a view scale that was defined using the file is opened, then the scale label may change when the view label is edited.
5) If the drawing is to be shared outside of your organization, steps must be taken to ensure that other sites opening these drawing files, is setup with the same integer definition. If this cannot be ensured, this solution should not be used.



Notes and References

Earlier FAQ's 001-2187475 and 002-7001807

Hardware/Software Configuration

Platform: INTEL
OS: windows
OS Version: 10_1709
Product: NX
Application: DRAFTING
Version: V1899
Function: DRAWING/VIEW

Ref: 001-9672663

KB Article ID# PL8016898

Contents

SummaryDetails

Associated Components

Drafting