NX Open C++ Reference Guide
Public Types | Public Member Functions
NXOpen::Preferences::PartModeling Class Reference

Represents the set of Modeling preferences applicable to part
To obtain an instance of this class, refer to Preferences::PartPreferences

Created in NX3.0.0. More...

List of all members.

Public Types

enum  CurveCurvatureDisplayType { CurveCurvatureDisplayTypeComb, CurveCurvatureDisplayTypeRadiusOfComb }
 Describes whether the curve curvature display is Curvature Comb or radius of Curvature Comb. More...
enum  DensityUnitType { DensityUnitTypeLbPerCuInch, DensityUnitTypeLbPerCuFeet, DensityUnitTypeGmPerCuCm, DensityUnitTypeKgPerCuMeter }
 Describes the units available for representing density. More...
enum  GridKnotLineFontType {
  GridKnotLineFontTypeSolid = 1, GridKnotLineFontTypeDashed, GridKnotLineFontTypePhantom, GridKnotLineFontTypeCenterline,
  GridKnotLineFontTypeDotted, GridKnotLineFontTypeLongDashed, GridKnotLineFontTypeDottedDashed
}
 the available font for grid/knot line More...
enum  GridResolutionType {
  GridResolutionTypeNone, GridResolutionTypeCoarse, GridResolutionTypeStandard, GridResolutionTypeFine,
  GridResolutionTypeExtraFine, GridResolutionTypeUltraFine
}
 Describes all available grid resolutions for selection. More...

Public Member Functions

double AngleToleranceData ()
 Returns the angle tolerance data.
int C0KnotLineColor ()
 Returns the C0 knot line color
Created in NX5.0.0.
NXOpen::Preferences::PartModeling::GridKnotLineFontType C0KnotLineFont ()
 Returns the C0 knot line font
Created in NX5.0.0.
bool C0KnotUseBodyColor ()
 Returns whether c0 knot line use body color
Created in NX5.0.0.
bool C0KnotUseBodyFont ()
 Returns whether C0_knot use body font
Created in NX5.0.0.
int C1KnotLineColor ()
 Returns the C1 knot line color
Created in NX5.0.0.
NXOpen::Preferences::PartModeling::GridKnotLineFontType C1KnotLineFont ()
 Returns the C1 knot line font
Created in NX5.0.0.
bool C1KnotUseBodyColor ()
 Returns whether c1 knot line use body color
Created in NX5.0.0.
bool C1KnotUseBodyFont ()
 Returns whether C1_knot use body font
Created in NX5.0.0.
int C2KnotLineColor ()
 Returns the C2 knot line color
Created in NX5.0.0.
NXOpen::Preferences::PartModeling::GridKnotLineFontType C2KnotLineFont ()
 Returns the C2 knot line font
Created in NX5.0.0.
bool C2KnotUseBodyColor ()
 Returns whether c2 knot line use body color
Created in NX5.0.0.
bool C2KnotUseBodyFont ()
 Returns whether C2_knot use body font
Created in NX5.0.0.
NXOpen::Preferences::PartModeling::CurveCurvatureDisplayType CurveCurvatureDisplay ()
 Returns the curve curvature display.
bool CurveCurvatureShowCap ()
 Returns the curve curvature display show cap line
Created in NX5.0.0.
int CurveCurvatureStyle ()
 Returns the curve curvature display style
Created in NX5.0.0.
bool CutViewUpdateDelayed ()
 Returns the state of the cut view delay update flag.
double Density ()
 Returns the density.
NXOpen::Preferences::PartModeling::DensityUnitType DensityUnit ()
 Returns the density unit
Created in NX3.0.0.
bool DisplayCurveCurvatureOutside ()
 Returns the curve curvature display style to show it on the inside/outside of the curve
Created in NX5.0.0.
double DistanceToleranceData ()
 Returns the modeling distance tolerance data.
bool GetHistoryMode ()
 Returns whether the part is in History or History-Free mode.
int GridLineColor ()
 Returns the grid line color
Created in NX5.0.0.
NXOpen::Preferences::PartModeling::GridKnotLineFontType GridLineFont ()
 Returns the grid line font
Created in NX5.0.0.
int GridLinesUCount ()
 Returns the U count for grid lines.
int GridLinesVCount ()
 Returns the V count for grid lines.
NXOpen::Preferences::PartModeling::GridResolutionType GridResolution ()
 Returns the grid resolution.
bool GridUseBodyColor ()
 Returns whether grid line use body color
Created in NX5.0.0.
bool GridUseBodyFont ()
 Returns whether grid use body font
Created in NX5.0.0.
bool OptimizeCurve ()
 Returns the optimize curve flag
Created in NX8.0.0.
double OptimizeCurveToleranceFactor ()
 Returns the optimize curve tolerance factor
Created in NX8.0.0.
void SetAngleToleranceData (double angleTolData)
 Sets the angle tolerance data.
void SetC0KnotLineColor (int knotLineColor)
 Sets the C0 knot line color
Created in NX5.0.0.
void SetC0KnotLineFont (NXOpen::Preferences::PartModeling::GridKnotLineFontType knotLineFont)
 Sets the C0 knot line font
Created in NX5.0.0.
void SetC0KnotUseBodyColor (bool useBodyColor)
 Sets whether c0 knot line use body color
Created in NX5.0.0.
void SetC0KnotUseBodyFont (bool useBodyFont)
 Sets whether C0_knot use body font
Created in NX5.0.0.
void SetC1KnotLineColor (int knotLineColor)
 Sets the C1 knot line color
Created in NX5.0.0.
void SetC1KnotLineFont (NXOpen::Preferences::PartModeling::GridKnotLineFontType knotLineFont)
 Sets the C1 knot line font
Created in NX5.0.0.
void SetC1KnotUseBodyColor (bool useBodyColor)
 Sets whether c1 knot line use body color
Created in NX5.0.0.
void SetC1KnotUseBodyFont (bool useBodyFont)
 Sets whether C1_knot use body font
Created in NX5.0.0.
void SetC2KnotLineColor (int knotLineColor)
 Sets the C2 knot line color
Created in NX5.0.0.
void SetC2KnotLineFont (NXOpen::Preferences::PartModeling::GridKnotLineFontType knotLineFont)
 Sets the C2 knot line font
Created in NX5.0.0.
void SetC2KnotUseBodyColor (bool useBodyColor)
 Sets whether c2 knot line use body color
Created in NX5.0.0.
void SetC2KnotUseBodyFont (bool useBodyFont)
 Sets whether C2_knot use body font
Created in NX5.0.0.
void SetCurveCurvatureDisplay (NXOpen::Preferences::PartModeling::CurveCurvatureDisplayType curveCurvatureDisplay)
 Sets the curve curvature display.
void SetCurveCurvatureShowCap (bool newShowCap)
 Sets the curve curvature display show cap line
Created in NX5.0.0.
void SetCurveCurvatureStyle (int newStyle)
 Sets the curve curvature display style
Created in NX5.0.0.
void SetCutViewUpdateDelayed (bool isDelayed)
 Sets the state of the cut view delay update flag.
void SetDensity (double density)
 Sets the density.
void SetDensityUnit (NXOpen::Preferences::PartModeling::DensityUnitType densityUnit)
 Sets the density unit
Created in NX3.0.0.
void SetDisplayCurveCurvatureOutside (bool displayOutside)
 Sets the curve curvature display style to show it on the inside/outside of the curve
Created in NX5.0.0.
void SetDistanceToleranceData (double distTolData)
 Sets the modeling distance tolerance data.
void SetGridLineColor (int gridLineColor)
 Sets the grid line color
Created in NX5.0.0.
void SetGridLineFont (NXOpen::Preferences::PartModeling::GridKnotLineFontType gridLineFont)
 Sets the grid line font
Created in NX5.0.0.
void SetGridLinesUCount (int gridLineUCount)
 Sets the U count for grid lines.
void SetGridLinesVCount (int gridLineVCount)
 Sets the V count for grid lines.
void SetGridResolution (NXOpen::Preferences::PartModeling::GridResolutionType gridResolution)
 Sets the grid resolution.
void SetGridUseBodyColor (bool useBodyColor)
 Sets whether grid line use body color
Created in NX5.0.0.
void SetGridUseBodyFont (bool useBodyFont)
 Sets whether grid use body font
Created in NX5.0.0.
void SetHistoryFreeMode ()
 Changes the modeling mode to History-Free Modeling.
void SetHistoryMode ()
 Changes the modeling mode to History Modeling.
void SetOptimizeCurve (bool optimizeCurve)
 Sets the optimize curve flag
Created in NX8.0.0.
void SetOptimizeCurveToleranceFactor (double optimieCurveFactor)
 Sets the optimize curve tolerance factor
Created in NX8.0.0.
tag_t Tag () const
 Returns the tag of this object.

Detailed Description

Represents the set of Modeling preferences applicable to part
To obtain an instance of this class, refer to Preferences::PartPreferences

Created in NX3.0.0.



Member Enumeration Documentation

Describes whether the curve curvature display is Curvature Comb or radius of Curvature Comb.

Enumerator:
CurveCurvatureDisplayTypeComb 

Curve curvature display is Curvature Comb.

CurveCurvatureDisplayTypeRadiusOfComb 

Curve curvature display is radius of Curvature Comb.

Describes the units available for representing density.

Enumerator:
DensityUnitTypeLbPerCuInch 

Unit is pound per cubic inch.

DensityUnitTypeLbPerCuFeet 

Unit is pound per cubic feet.

DensityUnitTypeGmPerCuCm 

Unit is gram per cubic centimeter.

DensityUnitTypeKgPerCuMeter 

Unit is kg per cubic meter.

the available font for grid/knot line

Enumerator:
GridKnotLineFontTypeDashed 

dashed

GridKnotLineFontTypePhantom 

phantom

GridKnotLineFontTypeCenterline 

centerline

GridKnotLineFontTypeDotted 

dotted

GridKnotLineFontTypeLongDashed 

long dashed

GridKnotLineFontTypeDottedDashed 

dotted dashed

Describes all available grid resolutions for selection.

Enumerator:
GridResolutionTypeNone 

No specific selection for grid resolution.

GridResolutionTypeCoarse 

Coarse grid resolution.

GridResolutionTypeStandard 

Standard grid resolution.

GridResolutionTypeFine 

Fine grid resolution.

GridResolutionTypeExtraFine 

Extra Fine grid resolution.

GridResolutionTypeUltraFine 

Ultra Fine grid resolution.


Member Function Documentation

Returns the angle tolerance data.

Angle tolerance is the maximum allowable angle between the surface normals at corresponding points, or the maximum allowable angle between curve tangent vectors at corresponding points.
Created in NX3.0.0.

License requirements : None

Returns the C0 knot line color
Created in NX5.0.0.



License requirements : None

Returns the C0 knot line font
Created in NX5.0.0.



License requirements : None

Returns whether c0 knot line use body color
Created in NX5.0.0.



License requirements : None

Returns whether C0_knot use body font
Created in NX5.0.0.



License requirements : None

Returns the C1 knot line color
Created in NX5.0.0.



License requirements : None

Returns the C1 knot line font
Created in NX5.0.0.



License requirements : None

Returns whether c1 knot line use body color
Created in NX5.0.0.



License requirements : None

Returns whether C1_knot use body font
Created in NX5.0.0.



License requirements : None

Returns the C2 knot line color
Created in NX5.0.0.



License requirements : None

Returns the C2 knot line font
Created in NX5.0.0.



License requirements : None

Returns whether c2 knot line use body color
Created in NX5.0.0.



License requirements : None

Returns whether C2_knot use body font
Created in NX5.0.0.



License requirements : None

Returns the curve curvature display.


Created in NX3.0.0.

License requirements : None

Returns the curve curvature display show cap line
Created in NX5.0.0.



License requirements : None

Returns the curve curvature display style
Created in NX5.0.0.



License requirements : None

Returns the state of the cut view delay update flag.


Created in NX4.0.0.

License requirements : None

Returns the density.

The value used to set this property must be in the units of the density units preference (that is, the value of DensityUnit and SetDensityUnit ). Likewise, the density returned by this property is in the units of the density units preference.
Created in NX3.0.0.

License requirements : None

Returns the density unit
Created in NX3.0.0.



License requirements : None

Returns the curve curvature display style to show it on the inside/outside of the curve
Created in NX5.0.0.



License requirements : None

Returns the modeling distance tolerance data.

This tolerance value is used throughout the Modeling application, such as for creating swept and revolved solid bodies and sectioning solid bodies. For example, when creating sheet bodies, the distance tolerance specifies the maximum allowable distance between corresponding points on the original surface and the resulting B-surface.
Created in NX3.0.0.

License requirements : None

Returns whether the part is in History or History-Free mode.

Return true for History mode or false for History-Free mode.

Returns:

Created in NX6.0.0.

License requirements : None

Returns the grid line color
Created in NX5.0.0.



License requirements : None

Returns the grid line font
Created in NX5.0.0.



License requirements : None

Returns the U count for grid lines.

It is the number of grid curves in the U direction of the faces of the body
Created in NX3.0.0.

License requirements : None

Returns the V count for grid lines.

It is the number of grid curves in the V direction of the faces of the body
Created in NX3.0.0.

License requirements : None

Returns the grid resolution.

The six options, None, Coarse, Standard, Fine, Extra Fine and Ultra Fine, produce a grid that is respectively more detailed. The None option shows no grid at all in wireframe mode.
Created in NX3.0.0.

License requirements : None

Returns whether grid line use body color
Created in NX5.0.0.



License requirements : None

Returns whether grid use body font
Created in NX5.0.0.



License requirements : None

Returns the optimize curve flag
Created in NX8.0.0.



License requirements : None

Returns the optimize curve tolerance factor
Created in NX8.0.0.



License requirements : None

Sets the angle tolerance data.

Angle tolerance is the maximum allowable angle between the surface normals at corresponding points, or the maximum allowable angle between curve tangent vectors at corresponding points.
Created in NX3.0.0.

License requirements : None

Parameters:
angleTolDataangle tol data

Sets the C0 knot line color
Created in NX5.0.0.



License requirements : None

Parameters:
knotLineColorknot line color

Sets the C0 knot line font
Created in NX5.0.0.



License requirements : None

Parameters:
knotLineFontknot line font

Sets whether c0 knot line use body color
Created in NX5.0.0.



License requirements : None

Parameters:
useBodyColoruse body color

Sets whether C0_knot use body font
Created in NX5.0.0.



License requirements : None

Parameters:
useBodyFontuse body font

Sets the C1 knot line color
Created in NX5.0.0.



License requirements : None

Parameters:
knotLineColorknot line color

Sets the C1 knot line font
Created in NX5.0.0.



License requirements : None

Parameters:
knotLineFontknot line font

Sets whether c1 knot line use body color
Created in NX5.0.0.



License requirements : None

Parameters:
useBodyColoruse body color

Sets whether C1_knot use body font
Created in NX5.0.0.



License requirements : None

Parameters:
useBodyFontuse body font

Sets the C2 knot line color
Created in NX5.0.0.



License requirements : None

Parameters:
knotLineColorknot line color

Sets the C2 knot line font
Created in NX5.0.0.



License requirements : None

Parameters:
knotLineFontknot line font

Sets whether c2 knot line use body color
Created in NX5.0.0.



License requirements : None

Parameters:
useBodyColoruse body color

Sets whether C2_knot use body font
Created in NX5.0.0.



License requirements : None

Parameters:
useBodyFontuse body font

Sets the curve curvature display.


Created in NX3.0.0.

License requirements : None

Parameters:
curveCurvatureDisplaycurve curvature display

Sets the curve curvature display show cap line
Created in NX5.0.0.



License requirements : None

Parameters:
newShowCapnew show cap

Sets the curve curvature display style
Created in NX5.0.0.



License requirements : None

Parameters:
newStylenew style

Sets the state of the cut view delay update flag.


Created in NX4.0.0.

License requirements : None

Parameters:
isDelayedThe new state of the delay update flag.

Sets the density.

The value used to set this property must be in the units of the density units preference (that is, the value of DensityUnit and SetDensityUnit ). Likewise, the density returned by this property is in the units of the density units preference.
Created in NX3.0.0.

License requirements : None

Parameters:
densitydensity

Sets the density unit
Created in NX3.0.0.



License requirements : None

Parameters:
densityUnitdensity unit

Sets the curve curvature display style to show it on the inside/outside of the curve
Created in NX5.0.0.



License requirements : None

Parameters:
displayOutsidedisplay outside

Sets the modeling distance tolerance data.

This tolerance value is used throughout the Modeling application, such as for creating swept and revolved solid bodies and sectioning solid bodies. For example, when creating sheet bodies, the distance tolerance specifies the maximum allowable distance between corresponding points on the original surface and the resulting B-surface.
Created in NX3.0.0.

License requirements : None

Parameters:
distTolDatadist tol data

Sets the grid line color
Created in NX5.0.0.



License requirements : None

Parameters:
gridLineColorgrid line color

Sets the grid line font
Created in NX5.0.0.



License requirements : None

Parameters:
gridLineFontgrid line font

Sets the U count for grid lines.

It is the number of grid curves in the U direction of the faces of the body
Created in NX3.0.0.

License requirements : None

Parameters:
gridLineUCountgrid line u count

Sets the V count for grid lines.

It is the number of grid curves in the V direction of the faces of the body
Created in NX3.0.0.

License requirements : None

Parameters:
gridLineVCountgrid line v count

Sets the grid resolution.

The six options, None, Coarse, Standard, Fine, Extra Fine and Ultra Fine, produce a grid that is respectively more detailed. The None option shows no grid at all in wireframe mode.
Created in NX3.0.0.

License requirements : None

Parameters:
gridResolutiongrid resolution

Sets whether grid line use body color
Created in NX5.0.0.



License requirements : None

Parameters:
useBodyColoruse body color

Sets whether grid use body font
Created in NX5.0.0.



License requirements : None

Parameters:
useBodyFontuse body font

Changes the modeling mode to History-Free Modeling.

This will remove parameters from features in the model. Feature edit will not be available and the model will not update.
Created in NX6.0.0.

License requirements : None

Changes the modeling mode to History Modeling.

This will remove Local feature from the model.
Created in NX6.0.0.

License requirements : None

Sets the optimize curve flag
Created in NX8.0.0.



License requirements : None

Parameters:
optimizeCurveFlag indicating whether Optimized Curve should be performed

Sets the optimize curve tolerance factor
Created in NX8.0.0.



License requirements : None

Parameters:
optimieCurveFactorFactor for performing Optimized Curve

Returns the tag of this object.


The documentation for this class was generated from the following file:
Copyright 2011 Siemens Product Lifecycle Management Software Inc. All Rights Reserved.