CutLevel Class¶
-
class
NXOpen.CAM.
CutLevel
¶ Bases:
NXOpen.TaggedObject
Represents 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 @return the index of the new range. |
AddRangeFromGeometry | Add a new range by specifying the level geometry @return the index of the new range. |
ApplyGlobalDepthPerCut | Update the cut levels based on the global depth per cut |
DeleteRange | Delete a range |
InitializeData | Prepare and update cut level data @return whether or not the cut level data is ready to use. |
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
CutLevelType()
Returns: the cut level type Return type: NXOpen.CAM.CutLevelTypes
New in version NX7.5.0.
License requirements: None.
-------------------------------------
Setter Method
Signature
CutLevelType(newValue)
Parameters: 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
DistanceBelow()
Returns: the distance builder Return type: NXOpen.CAM.InheritableToolDepBuilder
New in version NX7.5.0.
License requirements: None.
GlobalDepthPerCut¶
-
CutLevel.
GlobalDepthPerCut
¶ Returns the global depth per cut
-------------------------------------
Getter Method
Signature
GlobalDepthPerCut()
Returns: the global depth per cut builder Return type: NXOpen.CAM.StepoverBuilder
New in version NX7.5.0.
License requirements: None.
RangeType¶
-
CutLevel.
RangeType
¶ Returns or sets the range type
-------------------------------------
Getter Method
Signature
RangeType()
Returns: the range type Return type: NXOpen.CAM.CutLevelRangeTypes
New in version NX7.5.0.
License requirements: None.
-------------------------------------
Setter Method
Signature
RangeType(newValue)
Parameters: 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
TopOffCriticalDepths()
Returns: the top off critical depths Return type: bool New in version NX7.5.0.
License requirements: None.
-------------------------------------
Setter Method
Signature
TopOffCriticalDepths(newValue)
Parameters: 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
TopZc()
Returns: the ZC value Return type: float New in version NX7.5.0.
License requirements: None.
-------------------------------------
Setter Method
Signature
TopZc(newValue)
Parameters: 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”)