CutLevel Class¶
-
class
NXOpen.CAM.CutLevel¶ Bases:
NXOpen.TaggedObjectRepresents a cut level object for cavity mill and zlevel mill.
New in version NX7.5.0.
Properties¶
| Property | Description |
|---|---|
| CutLevelType | Returns or sets the cut level type |
| DistanceBelow | Returns the distance below the bottom of the last range |
| GlobalDepthPerCut | Returns the global depth per cut |
| RangeType | Returns or sets the range type |
| Tag | Returns the Tag for this object. |
| TopOffCriticalDepths | Returns or sets the top off critical depths |
| TopZc | Returns or sets the top ZC value |
Methods¶
| Method | Description |
|---|---|
| AddRangeFromDepth | Add a new range by specifying the range depth |
| AddRangeFromGeometry | Add a new range by specifying the level geometry |
| ApplyGlobalDepthPerCut | Update the cut levels based on the global depth per cut |
| DeleteRange | Delete a range |
| InitializeData | Prepare and update cut level data |
| SetRangeDepth | Set the range depth |
| SetRangeDepthPerCut | Set the range depth per cut |
| SetRangeGeometry | Set the range geometry |
| SetTopGeometry | Set the top selected geometry |
Enumerations¶
| CutLevelMeasureTypes Enumeration | measure from types |
| CutLevelRangeTypes Enumeration | range types |
| CutLevelTypes Enumeration | cut level types |
Property Detail¶
CutLevelType¶
-
CutLevel.CutLevelType¶ Returns or sets the cut level type
-------------------------------------Getter Method
Signature
CutLevelTypeReturns: the cut level type Return type: NXOpen.CAM.CutLevelTypesNew in version NX7.5.0.
License requirements: None.
-------------------------------------Setter Method
Signature
CutLevelTypeParameters: newValue ( NXOpen.CAM.CutLevelTypes) – the cut level typeNew in version NX7.5.0.
License requirements: cam_base (“CAM BASE”)
DistanceBelow¶
-
CutLevel.DistanceBelow¶ Returns the distance below the bottom of the last range
-------------------------------------Getter Method
Signature
DistanceBelowReturns: the distance builder Return type: NXOpen.CAM.InheritableToolDepBuilderNew in version NX7.5.0.
License requirements: None.
GlobalDepthPerCut¶
-
CutLevel.GlobalDepthPerCut¶ Returns the global depth per cut
-------------------------------------Getter Method
Signature
GlobalDepthPerCutReturns: the global depth per cut builder Return type: NXOpen.CAM.StepoverBuilderNew in version NX7.5.0.
License requirements: None.
RangeType¶
-
CutLevel.RangeType¶ Returns or sets the range type
-------------------------------------Getter Method
Signature
RangeTypeReturns: the range type Return type: NXOpen.CAM.CutLevelRangeTypesNew in version NX7.5.0.
License requirements: None.
-------------------------------------Setter Method
Signature
RangeTypeParameters: newValue ( NXOpen.CAM.CutLevelRangeTypes) – the range typeNew in version NX7.5.0.
License requirements: cam_base (“CAM BASE”)
TopOffCriticalDepths¶
-
CutLevel.TopOffCriticalDepths¶ Returns or sets the top off critical depths
-------------------------------------Getter Method
Signature
TopOffCriticalDepthsReturns: the top off critical depths Return type: bool New in version NX7.5.0.
License requirements: None.
-------------------------------------Setter Method
Signature
TopOffCriticalDepthsParameters: newValue (bool) – the top off critical depths New in version NX7.5.0.
License requirements: cam_base (“CAM BASE”)
TopZc¶
-
CutLevel.TopZc¶ Returns or sets the top ZC value
-------------------------------------Getter Method
Signature
TopZcReturns: the ZC value Return type: float New in version NX7.5.0.
License requirements: None.
-------------------------------------Setter Method
Signature
TopZcParameters: newValue (float) – the ZC value New in version NX7.5.0.
License requirements: cam_base (“CAM BASE”)
Method Detail¶
AddRangeFromDepth¶
-
CutLevel.AddRangeFromDepth¶ Add a new range by specifying the range depth
Signature
AddRangeFromDepth(rangeDepth, depthPerCut, measureType, referencedRange)Parameters: - rangeDepth (float) – the range depth from reference point
- depthPerCut (float) – the local depth per cut, if zero, set with global depth per cut
- measureType (
NXOpen.CAM.CutLevelMeasureTypes) – the measure type for the depth - referencedRange (int) – the position of referenced range, only valid when measure type is range top or bottom. if -1, referencing the last range.
Returns: the index of the new range.
Return type: int
New in version NX7.5.0.
License requirements: cam_base (“CAM BASE”)
AddRangeFromGeometry¶
-
CutLevel.AddRangeFromGeometry¶ Add a new range by specifying the level geometry
Signature
AddRangeFromGeometry(selectedObject, depthPerCut)Parameters: - selectedObject (
NXOpen.NXObject) – the geometry associated to the current level - depthPerCut (float) – the local depth per cut, if zero, set with global depth per cut
Returns: the index of the new range.
Return type: int
New in version NX7.5.0.
License requirements: cam_base (“CAM BASE”)
- selectedObject (
ApplyGlobalDepthPerCut¶
-
CutLevel.ApplyGlobalDepthPerCut¶ Update the cut levels based on the global depth per cut
Signature
ApplyGlobalDepthPerCut()New in version NX7.5.0.
License requirements: cam_base (“CAM BASE”)
DeleteRange¶
-
CutLevel.DeleteRange¶ Delete a range
Signature
DeleteRange(index)Parameters: index (int) – the range index to be deleted New in version NX7.5.0.
License requirements: cam_base (“CAM BASE”)
InitializeData¶
-
CutLevel.InitializeData¶ Prepare and update cut level data
Signature
InitializeData()Returns: whether or not the cut level data is ready to use. Return type: bool New in version NX7.5.0.
License requirements: cam_base (“CAM BASE”)
SetRangeDepth¶
-
CutLevel.SetRangeDepth¶ Set the range depth
Signature
SetRangeDepth(index, rangeDepth, measureType)Parameters: - index (int) – the range index to be modified
- rangeDepth (float) – the range depth
- measureType (
NXOpen.CAM.CutLevelMeasureTypes) – the measure type for the depth
New in version NX7.5.0.
License requirements: cam_base (“CAM BASE”)
SetRangeDepthPerCut¶
-
CutLevel.SetRangeDepthPerCut¶ Set the range depth per cut
Signature
SetRangeDepthPerCut(index, depthPerCut)Parameters: - index (int) – the range index to be modified
- depthPerCut (float) – the local depth per cut
New in version NX7.5.0.
License requirements: cam_base (“CAM BASE”)
SetRangeGeometry¶
-
CutLevel.SetRangeGeometry¶ Set the range geometry
Signature
SetRangeGeometry(index, geometry)Parameters: - index (int) – the range index to be modified
- geometry (
NXOpen.NXObject) – the geometry associated to the current level
New in version NX7.5.0.
License requirements: cam_base (“CAM BASE”)
SetTopGeometry¶
-
CutLevel.SetTopGeometry¶ Set the top selected geometry
Signature
SetTopGeometry(currentValue)Parameters: currentValue ( NXOpen.NXObject) – the top objectNew in version NX7.5.0.
License requirements: cam_base (“CAM BASE”)