PartModeling Class¶
-
class
NXOpen.Preferences.PartModeling¶ Bases:
objectRepresents the set of Modeling preferences applicable to part
To obtain an instance of this class, refer to
NXOpen.Preferences.PartPreferencesNew 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
AngleToleranceDataReturns: Return type: float New in version NX3.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
AngleToleranceDataParameters: 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
C0KnotLineColorReturns: Return type: int New in version NX5.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
C0KnotLineColorParameters: 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
C0KnotLineFontReturns: Return type: NXOpen.Preferences.PartModelingGridKnotLineFontTypeNew in version NX5.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
C0KnotLineFontParameters: 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
C0KnotUseBodyColorReturns: Return type: bool New in version NX5.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
C0KnotUseBodyColorParameters: 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
C0KnotUseBodyFontReturns: Return type: bool New in version NX5.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
C0KnotUseBodyFontParameters: 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
C1KnotLineColorReturns: Return type: int New in version NX5.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
C1KnotLineColorParameters: 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
C1KnotLineFontReturns: Return type: NXOpen.Preferences.PartModelingGridKnotLineFontTypeNew in version NX5.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
C1KnotLineFontParameters: 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
C1KnotUseBodyColorReturns: Return type: bool New in version NX5.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
C1KnotUseBodyColorParameters: 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
C1KnotUseBodyFontReturns: Return type: bool New in version NX5.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
C1KnotUseBodyFontParameters: 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
C2KnotLineColorReturns: Return type: int New in version NX5.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
C2KnotLineColorParameters: 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
C2KnotLineFontReturns: Return type: NXOpen.Preferences.PartModelingGridKnotLineFontTypeNew in version NX5.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
C2KnotLineFontParameters: 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
C2KnotUseBodyColorReturns: Return type: bool New in version NX5.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
C2KnotUseBodyColorParameters: 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
C2KnotUseBodyFontReturns: Return type: bool New in version NX5.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
C2KnotUseBodyFontParameters: 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
ConvertAnalyticToConvergentAngularToleranceReturns: angular tolerance for converting analytic body to Convergent body Return type: float New in version NX12.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
ConvertAnalyticToConvergentAngularToleranceParameters: 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
ConvertAnalyticToConvergentDistanceToleranceReturns: distance tolerance for converting analytic body to Convergent body Return type: float New in version NX12.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
ConvertAnalyticToConvergentDistanceToleranceParameters: 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
CurveCurvatureDisplayReturns: Return type: NXOpen.Preferences.PartModelingCurveCurvatureDisplayTypeNew in version NX3.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
CurveCurvatureDisplayParameters: 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
CurveCurvatureShowCapReturns: Return type: bool New in version NX5.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
CurveCurvatureShowCapParameters: 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
CurveCurvatureStyleReturns: Return type: int New in version NX5.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
CurveCurvatureStyleParameters: 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
CutViewUpdateDelayedReturns: The current state of the delay update flag. Return type: bool New in version NX4.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
CutViewUpdateDelayedParameters: 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
DensityReturns: Return type: float New in version NX3.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
DensityParameters: density (float) – New in version NX3.0.0.
License requirements: None.
DensityUnit¶
-
PartModeling.DensityUnit¶ Returns or sets the density unit
-------------------------------------Getter Method
Signature
DensityUnitReturns: Return type: NXOpen.Preferences.PartModelingDensityUnitTypeNew in version NX3.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
DensityUnitParameters: 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
DisplayCurveCurvatureOutsideReturns: Return type: bool New in version NX5.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
DisplayCurveCurvatureOutsideParameters: 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
DistanceToleranceDataReturns: Return type: float New in version NX3.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
DistanceToleranceDataParameters: distTolData (float) – New in version NX3.0.0.
License requirements: None.
GridLineColor¶
-
PartModeling.GridLineColor¶ Returns or sets the grid line color
-------------------------------------Getter Method
Signature
GridLineColorReturns: Return type: int New in version NX5.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
GridLineColorParameters: gridLineColor (int) – New in version NX5.0.0.
License requirements: None.
GridLineFont¶
-
PartModeling.GridLineFont¶ Returns or sets the grid line font
-------------------------------------Getter Method
Signature
GridLineFontReturns: Return type: NXOpen.Preferences.PartModelingGridKnotLineFontTypeNew in version NX5.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
GridLineFontParameters: 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
GridLinesUCountReturns: Return type: int New in version NX3.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
GridLinesUCountParameters: 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
GridLinesVCountReturns: Return type: int New in version NX3.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
GridLinesVCountParameters: 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
GridResolutionReturns: Return type: NXOpen.Preferences.PartModelingGridResolutionTypeNew in version NX3.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
GridResolutionParameters: 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
GridUseBodyColorReturns: Return type: bool New in version NX5.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
GridUseBodyColorParameters: 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
GridUseBodyFontReturns: Return type: bool New in version NX5.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
GridUseBodyFontParameters: useBodyFont (bool) – New in version NX5.0.0.
License requirements: None.
OptimizeCurve¶
-
PartModeling.OptimizeCurve¶ Returns or sets the optimize curve flag
-------------------------------------Getter Method
Signature
OptimizeCurveReturns: Flag indicating whether Optimized Curve should be performed Return type: bool New in version NX8.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
OptimizeCurveParameters: 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
OptimizeCurveAngleToleranceFactorReturns: Angle Factor for performing Optimized Curve Return type: float New in version NX11.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
OptimizeCurveAngleToleranceFactorParameters: 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
OptimizeCurveDistanceToleranceFactorReturns: Distance Factor for performing Optimized Curve Return type: float New in version NX11.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
OptimizeCurveDistanceToleranceFactorParameters: 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
OptimizeCurveToleranceFactorReturns: 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()andPartModeling.OptimizeCurveAngleToleranceFactor()instead.License requirements: None.
-------------------------------------Setter Method
Signature
OptimizeCurveToleranceFactorParameters: 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()andPartModeling.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.