NX Open C++ Reference Guide
|
Represents the set of sketch preferences applicable on Sketch object
To obtain an instance of this class, refer to Sketch
Created in NX3.0.0.
More...
Public Types | |
enum | DimensionLabelType { DimensionLabelTypeExpression, DimensionLabelTypeName, DimensionLabelTypeValue } |
Describes the available dimension labels. More... | |
Public Member Functions | |
void | ApplySketchPreferences (int dimDisplayFlag) |
Applies sketch preferences set by user. | |
bool | ContinuousAutoDimensioningSetting () |
Returns the state of continuous auto dimensioning in a sketch. | |
bool | CreateInferredConstraints () |
Returns the create inferred constraints. | |
double | DecimalPlaces () |
Returns the decimal places. | |
NXOpen::Preferences::SketchPreferences::DimensionLabelType | DimensionLabel () |
Returns the dimension label. | |
bool | DisplayObjectColor () |
Returns the toggle that controls whether objects are displayed in their actual color in sketch Created in NX4.0.0. | |
double | FixedTextSize () |
Returns the fixed text size. | |
void | SetContinuousAutoDimensioningSetting (bool autoDim) |
Sets the state of continuous auto dimensioning in a sketch. | |
void | SetCreateInferredConstraints (bool createInferredConstraints) |
Sets the create inferred constraints. | |
void | SetDecimalPlaces (double decimalPlaces) |
Sets the decimal places. | |
void | SetDimensionLabel (NXOpen::Preferences::SketchPreferences::DimensionLabelType dimensionLabel) |
Sets the dimension label. | |
void | SetDisplayObjectColor (bool displayObjectColor) |
Sets the toggle that controls whether objects are displayed in their actual color in sketch Created in NX4.0.0. | |
void | SetFixedTextSize (double fixedTextSize) |
Sets the fixed text size. | |
void | SetTextHeight (double textHeight) |
Sets the text height. | |
void | SetTextSizeFixed (bool textSizeFixed) |
Sets the text size fixed. | |
tag_t | Tag () const |
Returns the tag of this object. | |
double | TextHeight () |
Returns the text height. | |
bool | TextSizeFixed () |
Returns the text size fixed. |
Represents the set of sketch preferences applicable on Sketch object
To obtain an instance of this class, refer to Sketch
Created in NX3.0.0.
void NXOpen::Preferences::SketchPreferences::ApplySketchPreferences | ( | int | dimDisplayFlag | ) |
Applies sketch preferences set by user.
Created in NX3.0.0.
License requirements : None
dimDisplayFlag | dim display flag |
Returns the state of continuous auto dimensioning in a sketch.
If it is ON then auto dimensioner will be automatically ran right after individual curve was created.
Created in NX7.5.0.
License requirements : None
Returns the create inferred constraints.
Controls whether to create inferred constraints
Created in NX6.0.0.
License requirements : None
Returns the decimal places.
Defines the number of digits to display after the decimal point on sketch dimensions (dimensional constraints). The default value is three. NX6 - The decimal places preference has been removed from sketches. Each sketch dimension's decimal places will be controlled via its own annotation preferences. get function - will always return the annotation preferences- dimension- decimal places. set function - will apply the preference to each dimension in the sketch. The annotation preference can be asked or set by Preferences::AnnotationPreferences::SetDimensionPreferences and Preferences::AnnotationPreferences::GetDimensionPreferences
Created in NX3.0.0.
License requirements : None
NXOpen::Preferences::SketchPreferences::DimensionLabelType NXOpen::Preferences::SketchPreferences::DimensionLabel | ( | ) |
Returns the dimension label.
Controls how expressions in sketch dimensions are displayed
Created in NX3.0.0.
License requirements : None
Returns the toggle that controls whether objects are displayed in their actual color in sketch
Created in NX4.0.0.
License requirements : None
Returns the fixed text size.
It is the visible dimension size when text size fixed is enabled.
Created in NX6.0.0.
License requirements : None
void NXOpen::Preferences::SketchPreferences::SetContinuousAutoDimensioningSetting | ( | bool | autoDim | ) |
Sets the state of continuous auto dimensioning in a sketch.
If it is ON then auto dimensioner will be automatically ran right after individual curve was created.
Created in NX7.5.0.
License requirements : solid_modeling ("SOLIDS MODELING") OR drafting ("DRAFTING")
autoDim | auto dim |
void NXOpen::Preferences::SketchPreferences::SetCreateInferredConstraints | ( | bool | createInferredConstraints | ) |
Sets the create inferred constraints.
Controls whether to create inferred constraints
Created in NX6.0.0.
License requirements : solid_modeling ("SOLIDS MODELING") OR drafting ("DRAFTING")
createInferredConstraints | create inferred constraints |
void NXOpen::Preferences::SketchPreferences::SetDecimalPlaces | ( | double | decimalPlaces | ) |
Sets the decimal places.
Defines the number of digits to display after the decimal point on sketch dimensions (dimensional constraints). The default value is three. NX6 - The decimal places preference has been removed from sketches. Each sketch dimension's decimal places will be controlled via its own annotation preferences. get function - will always return the annotation preferences- dimension- decimal places. set function - will apply the preference to each dimension in the sketch. The annotation preference can be asked or set by Preferences::AnnotationPreferences::SetDimensionPreferences and Preferences::AnnotationPreferences::GetDimensionPreferences
Created in NX3.0.0.
License requirements : None
decimalPlaces | decimal places |
void NXOpen::Preferences::SketchPreferences::SetDimensionLabel | ( | NXOpen::Preferences::SketchPreferences::DimensionLabelType | dimensionLabel | ) |
Sets the dimension label.
Controls how expressions in sketch dimensions are displayed
Created in NX3.0.0.
License requirements : None
dimensionLabel | dimension label |
void NXOpen::Preferences::SketchPreferences::SetDisplayObjectColor | ( | bool | displayObjectColor | ) |
Sets the toggle that controls whether objects are displayed in their actual color in sketch
Created in NX4.0.0.
License requirements : solid_modeling ("SOLIDS MODELING") OR drafting ("DRAFTING")
displayObjectColor | display object color |
void NXOpen::Preferences::SketchPreferences::SetFixedTextSize | ( | double | fixedTextSize | ) |
Sets the fixed text size.
It is the visible dimension size when text size fixed is enabled.
Created in NX6.0.0.
License requirements : solid_modeling ("SOLIDS MODELING") OR drafting ("DRAFTING")
fixedTextSize | fixed text size |
void NXOpen::Preferences::SketchPreferences::SetTextHeight | ( | double | textHeight | ) |
Sets the text height.
It is size of text displayed in sketch dimensions. The default is 0.125 NX6 - The text height preference has been removed from sketches. Each sketch dimension's text height will be controlled via its own annotation preferences. get function - will always return the annotation preferences- letter prefs- dimension- text height. set function - will apply the preference to each dimension in the sketch. The annotation preference can be asked or set by Preferences::AnnotationPreferences::SetLetteringPreferences and Preferences::AnnotationPreferences::GetLetteringPreferences
Created in NX3.0.0.
License requirements : None
textHeight | text height |
void NXOpen::Preferences::SketchPreferences::SetTextSizeFixed | ( | bool | textSizeFixed | ) |
Sets the text size fixed.
Controls whether to fix text size
Created in NX6.0.0.
License requirements : solid_modeling ("SOLIDS MODELING") OR drafting ("DRAFTING")
textSizeFixed | text size fixed |
tag_t NXOpen::Preferences::SketchPreferences::Tag | ( | ) | const |
Returns the tag of this object.
Returns the text height.
It is size of text displayed in sketch dimensions. The default is 0.125 NX6 - The text height preference has been removed from sketches. Each sketch dimension's text height will be controlled via its own annotation preferences. get function - will always return the annotation preferences- letter prefs- dimension- text height. set function - will apply the preference to each dimension in the sketch. The annotation preference can be asked or set by Preferences::AnnotationPreferences::SetLetteringPreferences and Preferences::AnnotationPreferences::GetLetteringPreferences
Created in NX3.0.0.
License requirements : None
Returns the text size fixed.
Controls whether to fix text size
Created in NX6.0.0.
License requirements : None