PartModeling Class

class NXOpen.Preferences.PartModeling

Bases: object

Represents the set of Modeling preferences applicable to part

To obtain an instance of this class, refer to NXOpen.Preferences.PartPreferences

New in version NX3.0.0.

Properties

Property Description
AngleToleranceData Returns or sets the angle tolerance data.
C0KnotLineColor Returns or sets the C0 knot line color
C0KnotLineFont Returns or sets the C0 knot line font
C0KnotUseBodyColor Returns or sets whether c0 knot line use body color
C0KnotUseBodyFont Returns or sets whether C0_knot use body font
C1KnotLineColor Returns or sets the C1 knot line color
C1KnotLineFont Returns or sets the C1 knot line font
C1KnotUseBodyColor Returns or sets whether c1 knot line use body color
C1KnotUseBodyFont Returns or sets whether C1_knot use body font
C2KnotLineColor Returns or sets the C2 knot line color
C2KnotLineFont Returns or sets the C2 knot line font
C2KnotUseBodyColor Returns or sets whether c2 knot line use body color
C2KnotUseBodyFont Returns or sets whether C2_knot use body font
ConvertAnalyticToConvergentAngularTolerance Returns or sets the angular tolerance for converting analytic body to Convergent body
ConvertAnalyticToConvergentDistanceTolerance Returns or sets the distance tolerance for converting analytic body to Convergent body
CurveCurvatureDisplay Returns or sets the curve curvature display.
CurveCurvatureShowCap Returns or sets the curve curvature display show cap line
CurveCurvatureStyle Returns or sets the curve curvature display style
CutViewUpdateDelayed Returns or sets the state of the cut view delay update flag.
Density Returns or sets the density.
DensityUnit Returns or sets the density unit
DisplayCurveCurvatureOutside Returns or sets the curve curvature display style to show it on the inside/outside of the curve
DistanceToleranceData Returns or sets the modeling distance tolerance data.
GridLineColor Returns or sets the grid line color
GridLineFont Returns or sets the grid line font
GridLinesUCount Returns or sets the U count for grid lines.
GridLinesVCount Returns or sets the V count for grid lines.
GridResolution Returns or sets the grid resolution.
GridUseBodyColor Returns or sets whether grid line use body color
GridUseBodyFont Returns or sets whether grid use body font
OptimizeCurve Returns or sets the optimize curve flag
OptimizeCurveAngleToleranceFactor Returns or sets the optimize curve angle tolerance factor
OptimizeCurveDistanceToleranceFactor Returns or sets the optimize curve distance tolerance factor
OptimizeCurveToleranceFactor Returns or sets the optimize curve tolerance factor

Methods

Method Description
GetHistoryMode Returns whether the part is in History or History-Free mode.
SetHistoryFreeMode Changes the modeling mode to History-Free Modeling.
SetHistoryMode Changes the modeling mode to History Modeling.

Enumerations

PartModelingCurveCurvatureDisplayType Enumeration Describes whether the curve curvature display is Curvature Comb or radius of Curvature Comb
PartModelingDensityUnitType Enumeration Describes the units available for representing density
PartModelingGridKnotLineFontType Enumeration the available font for grid/knot line
PartModelingGridResolutionType Enumeration Describes all available grid resolutions for selection

Property Detail

AngleToleranceData

PartModeling.AngleToleranceData

Returns or 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. This value can be read from any part but can only be set when the part owning these preferences is the work part.

-------------------------------------

Getter Method

Signature AngleToleranceData

Returns:
Return type:float

New in version NX3.0.0.

License requirements: None.

-------------------------------------

Setter Method

Signature AngleToleranceData

Parameters:angleTolData (float) –

New in version NX3.0.0.

License requirements: None.

C0KnotLineColor

PartModeling.C0KnotLineColor

Returns or sets the C0 knot line color

-------------------------------------

Getter Method

Signature C0KnotLineColor

Returns:
Return type:int

New in version NX5.0.0.

License requirements: None.

-------------------------------------

Setter Method

Signature C0KnotLineColor

Parameters:knotLineColor (int) –

New in version NX5.0.0.

License requirements: None.

C0KnotLineFont

PartModeling.C0KnotLineFont

Returns or sets the C0 knot line font

-------------------------------------

Getter Method

Signature C0KnotLineFont

Returns:
Return type:NXOpen.Preferences.PartModelingGridKnotLineFontType

New in version NX5.0.0.

License requirements: None.

-------------------------------------

Setter Method

Signature C0KnotLineFont

Parameters:knotLineFont (NXOpen.Preferences.PartModelingGridKnotLineFontType) –

New in version NX5.0.0.

License requirements: None.

C0KnotUseBodyColor

PartModeling.C0KnotUseBodyColor

Returns or sets whether c0 knot line use body color

-------------------------------------

Getter Method

Signature C0KnotUseBodyColor

Returns:
Return type:bool

New in version NX5.0.0.

License requirements: None.

-------------------------------------

Setter Method

Signature C0KnotUseBodyColor

Parameters:useBodyColor (bool) –

New in version NX5.0.0.

License requirements: None.

C0KnotUseBodyFont

PartModeling.C0KnotUseBodyFont

Returns or sets whether C0_knot use body font

-------------------------------------

Getter Method

Signature C0KnotUseBodyFont

Returns:
Return type:bool

New in version NX5.0.0.

License requirements: None.

-------------------------------------

Setter Method

Signature C0KnotUseBodyFont

Parameters:useBodyFont (bool) –

New in version NX5.0.0.

License requirements: None.

C1KnotLineColor

PartModeling.C1KnotLineColor

Returns or sets the C1 knot line color

-------------------------------------

Getter Method

Signature C1KnotLineColor

Returns:
Return type:int

New in version NX5.0.0.

License requirements: None.

-------------------------------------

Setter Method

Signature C1KnotLineColor

Parameters:knotLineColor (int) –

New in version NX5.0.0.

License requirements: None.

C1KnotLineFont

PartModeling.C1KnotLineFont

Returns or sets the C1 knot line font

-------------------------------------

Getter Method

Signature C1KnotLineFont

Returns:
Return type:NXOpen.Preferences.PartModelingGridKnotLineFontType

New in version NX5.0.0.

License requirements: None.

-------------------------------------

Setter Method

Signature C1KnotLineFont

Parameters:knotLineFont (NXOpen.Preferences.PartModelingGridKnotLineFontType) –

New in version NX5.0.0.

License requirements: None.

C1KnotUseBodyColor

PartModeling.C1KnotUseBodyColor

Returns or sets whether c1 knot line use body color

-------------------------------------

Getter Method

Signature C1KnotUseBodyColor

Returns:
Return type:bool

New in version NX5.0.0.

License requirements: None.

-------------------------------------

Setter Method

Signature C1KnotUseBodyColor

Parameters:useBodyColor (bool) –

New in version NX5.0.0.

License requirements: None.

C1KnotUseBodyFont

PartModeling.C1KnotUseBodyFont

Returns or sets whether C1_knot use body font

-------------------------------------

Getter Method

Signature C1KnotUseBodyFont

Returns:
Return type:bool

New in version NX5.0.0.

License requirements: None.

-------------------------------------

Setter Method

Signature C1KnotUseBodyFont

Parameters:useBodyFont (bool) –

New in version NX5.0.0.

License requirements: None.

C2KnotLineColor

PartModeling.C2KnotLineColor

Returns or sets the C2 knot line color

-------------------------------------

Getter Method

Signature C2KnotLineColor

Returns:
Return type:int

New in version NX5.0.0.

License requirements: None.

-------------------------------------

Setter Method

Signature C2KnotLineColor

Parameters:knotLineColor (int) –

New in version NX5.0.0.

License requirements: None.

C2KnotLineFont

PartModeling.C2KnotLineFont

Returns or sets the C2 knot line font

-------------------------------------

Getter Method

Signature C2KnotLineFont

Returns:
Return type:NXOpen.Preferences.PartModelingGridKnotLineFontType

New in version NX5.0.0.

License requirements: None.

-------------------------------------

Setter Method

Signature C2KnotLineFont

Parameters:knotLineFont (NXOpen.Preferences.PartModelingGridKnotLineFontType) –

New in version NX5.0.0.

License requirements: None.

C2KnotUseBodyColor

PartModeling.C2KnotUseBodyColor

Returns or sets whether c2 knot line use body color

-------------------------------------

Getter Method

Signature C2KnotUseBodyColor

Returns:
Return type:bool

New in version NX5.0.0.

License requirements: None.

-------------------------------------

Setter Method

Signature C2KnotUseBodyColor

Parameters:useBodyColor (bool) –

New in version NX5.0.0.

License requirements: None.

C2KnotUseBodyFont

PartModeling.C2KnotUseBodyFont

Returns or sets whether C2_knot use body font

-------------------------------------

Getter Method

Signature C2KnotUseBodyFont

Returns:
Return type:bool

New in version NX5.0.0.

License requirements: None.

-------------------------------------

Setter Method

Signature C2KnotUseBodyFont

Parameters:useBodyFont (bool) –

New in version NX5.0.0.

License requirements: None.

ConvertAnalyticToConvergentAngularTolerance

PartModeling.ConvertAnalyticToConvergentAngularTolerance

Returns or sets the angular tolerance for converting analytic body to Convergent body

-------------------------------------

Getter Method

Signature ConvertAnalyticToConvergentAngularTolerance

Returns:angular tolerance for converting analytic body to Convergent body
Return type:float

New in version NX12.0.0.

License requirements: None.

-------------------------------------

Setter Method

Signature ConvertAnalyticToConvergentAngularTolerance

Parameters:dAnalyticToConvergentAngTol (float) – angular tolerance for converting analytic body to Convergent body

New in version NX12.0.0.

License requirements: None.

ConvertAnalyticToConvergentDistanceTolerance

PartModeling.ConvertAnalyticToConvergentDistanceTolerance

Returns or sets the distance tolerance for converting analytic body to Convergent body

-------------------------------------

Getter Method

Signature ConvertAnalyticToConvergentDistanceTolerance

Returns:distance tolerance for converting analytic body to Convergent body
Return type:float

New in version NX12.0.0.

License requirements: None.

-------------------------------------

Setter Method

Signature ConvertAnalyticToConvergentDistanceTolerance

Parameters:dAnalyticToConvergentDistTol (float) – distance tolerance for converting analytic body to Convergent body

New in version NX12.0.0.

License requirements: None.

CurveCurvatureDisplay

PartModeling.CurveCurvatureDisplay

Returns or sets the curve curvature display.

-------------------------------------

Getter Method

Signature CurveCurvatureDisplay

Returns:
Return type:NXOpen.Preferences.PartModelingCurveCurvatureDisplayType

New in version NX3.0.0.

License requirements: None.

-------------------------------------

Setter Method

Signature CurveCurvatureDisplay

Parameters:curveCurvatureDisplay (NXOpen.Preferences.PartModelingCurveCurvatureDisplayType) –

New in version NX3.0.0.

License requirements: None.

CurveCurvatureShowCap

PartModeling.CurveCurvatureShowCap

Returns or sets the curve curvature display show cap line

-------------------------------------

Getter Method

Signature CurveCurvatureShowCap

Returns:
Return type:bool

New in version NX5.0.0.

License requirements: None.

-------------------------------------

Setter Method

Signature CurveCurvatureShowCap

Parameters:newShowCap (bool) –

New in version NX5.0.0.

License requirements: None.

CurveCurvatureStyle

PartModeling.CurveCurvatureStyle

Returns or sets the curve curvature display style

-------------------------------------

Getter Method

Signature CurveCurvatureStyle

Returns:
Return type:int

New in version NX5.0.0.

License requirements: None.

-------------------------------------

Setter Method

Signature CurveCurvatureStyle

Parameters:newStyle (int) –

New in version NX5.0.0.

License requirements: None.

CutViewUpdateDelayed

PartModeling.CutViewUpdateDelayed

Returns or sets the state of the cut view delay update flag.

-------------------------------------

Getter Method

Signature CutViewUpdateDelayed

Returns:The current state of the delay update flag.
Return type:bool

New in version NX4.0.0.

License requirements: None.

-------------------------------------

Setter Method

Signature CutViewUpdateDelayed

Parameters:isDelayed (bool) – The new state of the delay update flag.

New in version NX4.0.0.

License requirements: None.

Density

PartModeling.Density

Returns or 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 NXOpen.Preferences.PartModeling.DensityUnit()). Likewise, the density returned by this property is in the units of the density units preference.

-------------------------------------

Getter Method

Signature Density

Returns:
Return type:float

New in version NX3.0.0.

License requirements: None.

-------------------------------------

Setter Method

Signature Density

Parameters:density (float) –

New in version NX3.0.0.

License requirements: None.

DensityUnit

PartModeling.DensityUnit

Returns or sets the density unit

-------------------------------------

Getter Method

Signature DensityUnit

Returns:
Return type:NXOpen.Preferences.PartModelingDensityUnitType

New in version NX3.0.0.

License requirements: None.

-------------------------------------

Setter Method

Signature DensityUnit

Parameters:densityUnit (NXOpen.Preferences.PartModelingDensityUnitType) –

New in version NX3.0.0.

License requirements: None.

DisplayCurveCurvatureOutside

PartModeling.DisplayCurveCurvatureOutside

Returns or sets the curve curvature display style to show it on the inside/outside of the curve

-------------------------------------

Getter Method

Signature DisplayCurveCurvatureOutside

Returns:
Return type:bool

New in version NX5.0.0.

License requirements: None.

-------------------------------------

Setter Method

Signature DisplayCurveCurvatureOutside

Parameters:displayOutside (bool) –

New in version NX5.0.0.

License requirements: None.

DistanceToleranceData

PartModeling.DistanceToleranceData

Returns or 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. This value can be read from any part but can only be set when the part owning these preferences is the work part.

-------------------------------------

Getter Method

Signature DistanceToleranceData

Returns:
Return type:float

New in version NX3.0.0.

License requirements: None.

-------------------------------------

Setter Method

Signature DistanceToleranceData

Parameters:distTolData (float) –

New in version NX3.0.0.

License requirements: None.

GridLineColor

PartModeling.GridLineColor

Returns or sets the grid line color

-------------------------------------

Getter Method

Signature GridLineColor

Returns:
Return type:int

New in version NX5.0.0.

License requirements: None.

-------------------------------------

Setter Method

Signature GridLineColor

Parameters:gridLineColor (int) –

New in version NX5.0.0.

License requirements: None.

GridLineFont

PartModeling.GridLineFont

Returns or sets the grid line font

-------------------------------------

Getter Method

Signature GridLineFont

Returns:
Return type:NXOpen.Preferences.PartModelingGridKnotLineFontType

New in version NX5.0.0.

License requirements: None.

-------------------------------------

Setter Method

Signature GridLineFont

Parameters:gridLineFont (NXOpen.Preferences.PartModelingGridKnotLineFontType) –

New in version NX5.0.0.

License requirements: None.

GridLinesUCount

PartModeling.GridLinesUCount

Returns or sets the U count for grid lines.

It is the number of grid curves in the U direction of the faces of the body

-------------------------------------

Getter Method

Signature GridLinesUCount

Returns:
Return type:int

New in version NX3.0.0.

License requirements: None.

-------------------------------------

Setter Method

Signature GridLinesUCount

Parameters:gridLineUCount (int) –

New in version NX3.0.0.

License requirements: None.

GridLinesVCount

PartModeling.GridLinesVCount

Returns or sets the V count for grid lines.

It is the number of grid curves in the V direction of the faces of the body

-------------------------------------

Getter Method

Signature GridLinesVCount

Returns:
Return type:int

New in version NX3.0.0.

License requirements: None.

-------------------------------------

Setter Method

Signature GridLinesVCount

Parameters:gridLineVCount (int) –

New in version NX3.0.0.

License requirements: None.

GridResolution

PartModeling.GridResolution

Returns or 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.

-------------------------------------

Getter Method

Signature GridResolution

Returns:
Return type:NXOpen.Preferences.PartModelingGridResolutionType

New in version NX3.0.0.

License requirements: None.

-------------------------------------

Setter Method

Signature GridResolution

Parameters:gridResolution (NXOpen.Preferences.PartModelingGridResolutionType) –

New in version NX3.0.0.

License requirements: None.

GridUseBodyColor

PartModeling.GridUseBodyColor

Returns or sets whether grid line use body color

-------------------------------------

Getter Method

Signature GridUseBodyColor

Returns:
Return type:bool

New in version NX5.0.0.

License requirements: None.

-------------------------------------

Setter Method

Signature GridUseBodyColor

Parameters:useBodyColor (bool) –

New in version NX5.0.0.

License requirements: None.

GridUseBodyFont

PartModeling.GridUseBodyFont

Returns or sets whether grid use body font

-------------------------------------

Getter Method

Signature GridUseBodyFont

Returns:
Return type:bool

New in version NX5.0.0.

License requirements: None.

-------------------------------------

Setter Method

Signature GridUseBodyFont

Parameters:useBodyFont (bool) –

New in version NX5.0.0.

License requirements: None.

OptimizeCurve

PartModeling.OptimizeCurve

Returns or sets the optimize curve flag

-------------------------------------

Getter Method

Signature OptimizeCurve

Returns:Flag indicating whether Optimized Curve should be performed
Return type:bool

New in version NX8.0.0.

License requirements: None.

-------------------------------------

Setter Method

Signature OptimizeCurve

Parameters:optimizeCurve (bool) – Flag indicating whether Optimized Curve should be performed

New in version NX8.0.0.

License requirements: None.

OptimizeCurveAngleToleranceFactor

PartModeling.OptimizeCurveAngleToleranceFactor

Returns or sets the optimize curve angle tolerance factor

-------------------------------------

Getter Method

Signature OptimizeCurveAngleToleranceFactor

Returns:Angle Factor for performing Optimized Curve
Return type:float

New in version NX11.0.0.

License requirements: None.

-------------------------------------

Setter Method

Signature OptimizeCurveAngleToleranceFactor

Parameters:optimieCurveAngleFactor (float) – Angle Factor for performing Optimized Curve

New in version NX11.0.0.

License requirements: None.

OptimizeCurveDistanceToleranceFactor

PartModeling.OptimizeCurveDistanceToleranceFactor

Returns or sets the optimize curve distance tolerance factor

-------------------------------------

Getter Method

Signature OptimizeCurveDistanceToleranceFactor

Returns:Distance Factor for performing Optimized Curve
Return type:float

New in version NX11.0.0.

License requirements: None.

-------------------------------------

Setter Method

Signature OptimizeCurveDistanceToleranceFactor

Parameters:optimieCurveDistanceFactor (float) – Distance Factor for performing Optimized Curve

New in version NX11.0.0.

License requirements: None.

OptimizeCurveToleranceFactor

PartModeling.OptimizeCurveToleranceFactor

Returns or sets the optimize curve tolerance factor

-------------------------------------

Getter Method

Signature OptimizeCurveToleranceFactor

Returns:Factor for performing Optimized Curve
Return type:float

New in version NX8.0.0.

Deprecated since version NX11.0.0: It was split into two factors. Please use PartModeling.OptimizeCurveDistanceToleranceFactor() and PartModeling.OptimizeCurveAngleToleranceFactor() instead.

License requirements: None.

-------------------------------------

Setter Method

Signature OptimizeCurveToleranceFactor

Parameters:optimieCurveFactor (float) – Factor for performing Optimized Curve

New in version NX8.0.0.

Deprecated since version NX11.0.0: It was split into two factors. Please use PartModeling.OptimizeCurveDistanceToleranceFactor() and PartModeling.OptimizeCurveAngleToleranceFactor() instead.

License requirements: None.

Method Detail

GetHistoryMode

PartModeling.GetHistoryMode

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

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

Signature GetHistoryMode()

Returns:
Return type:bool

New in version NX6.0.0.

Deprecated since version NX11.0.0: History-free mode will be retired in NX11.

License requirements: None.

SetHistoryFreeMode

PartModeling.SetHistoryFreeMode

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.

Signature SetHistoryFreeMode()

New in version NX6.0.0.

Deprecated since version NX11.0.0: History-free mode will be retired in NX11.

License requirements: None.

SetHistoryMode

PartModeling.SetHistoryMode

Changes the modeling mode to History Modeling.

This will remove Local feature from the model.

Signature SetHistoryMode()

New in version NX6.0.0.

License requirements: None.