Hide menu
Loading...
Searching...
No Matches
cadex.Machining_ThreadedHole Class Reference

Describes a threaded hole. More...

Inheritance diagram for cadex.Machining_ThreadedHole:
cadex.Machining_Hole cadex.MTKBase_Hole cadex.MTKBase_ShapeFeature cadex.MTKBase_Feature

Public Member Functions

 Machining_ThreadedHole (global::System.IntPtr cPtr, bool cMemoryOwn)
 
 Machining_ThreadedHole ()
 Constructor.
 
 Machining_ThreadedHole (double theMinorRadius, double theMajorRadius, double theThreadLength, double thePitch, double theDepth, cadex.Geom.Axis3d theAxis, cadex.Machining_HoleType theType)
 Creates a machining threaded hole from the minor radius, major radius, thread length, pitch, depth, axis and machining hole type.
 
double MinorRadius ()
 Returns the threaded hole minor radius in mm .
 
void SetMinorRadius (double theMinorRadius)
 Sets the threaded hole minor radius in mm .
 
double MajorRadius ()
 Returns the threaded hole major radius in mm .
 
void SetMajorRadius (double theMinorRadius)
 
double ThreadLength ()
 Returns the threaded hole thread length in mm .
 
void SetThreadLength (double theThreadLength)
 Sets the threaded hole thread length in mm .
 
double Pitch ()
 Returns the threaded hole pitch in mm .
 
void SetPitch (double thePitch)
 Sets the threaded hole pitch in mm .
 
- Public Member Functions inherited from cadex.Machining_Hole
 Machining_Hole (global::System.IntPtr cPtr, bool cMemoryOwn)
 
 Machining_Hole (double theRadius, double theDepth, cadex.Machining_HoleType theType)
 Creates a machining hole from radius, depth and machining hole type.
 
 Machining_Hole (double theRadius, double theDepth, cadex.Geom.Axis3d theAxis, cadex.Machining_HoleType theType)
 Creates a machining hole from radius, depth, axis and machining hole type.
 
cadex.Machining_HoleType Type ()
 Returns type of machining hole.
 
void SetType (cadex.Machining_HoleType theType)
 Sets type of the machining hole.
 
- Public Member Functions inherited from cadex.MTKBase_Hole
 MTKBase_Hole (global::System.IntPtr cPtr, bool cMemoryOwn)
 
 MTKBase_Hole ()
 Constructor.
 
 MTKBase_Hole (double theRadius, double theDepth)
 Creates a hole feature from radius and depth.
 
 MTKBase_Hole (double theRadius, double theDepth, cadex.Geom.Axis3d theAxis)
 Creates a hole feature from radius, depth and axis.
 
double Radius ()
 Returns hole radius in mm .
 
void SetRadius (double theRadius)
 Sets radius for hole in mm .
 
double Depth ()
 Returns hole depth in mm .
 
void SetDepth (double theDepth)
 Sets depth for hole in mm .
 
bool HasAxis ()
 Returns true if axis is determined for hole.
 
cadex.Geom.Axis3d Axis ()
 Returns hole axis.
 
void SetAxis (cadex.Geom.Axis3d theAxis)
 Sets axis for hole.
 
- Public Member Functions inherited from cadex.MTKBase_ShapeFeature
 MTKBase_ShapeFeature (global::System.IntPtr cPtr, bool cMemoryOwn)
 
 MTKBase_ShapeFeature ()
 Constructor.
 
 MTKBase_ShapeFeature (cadex.ModelData.Shape theShape)
 Creates a feature from a ModelData.Shape object.
 
cadex.ModelData.Shape Shape ()
 Returns shape of the feature.
 
void SetShape (cadex.ModelData.Shape theShape)
 Sets shape of the feature.
 
- Public Member Functions inherited from cadex.MTKBase_Feature
 MTKBase_Feature (global::System.IntPtr cPtr, bool cMemoryOwn)
 
void Dispose ()
 
 MTKBase_Feature ()
 Constructor.
 
void Nullify ()
 Resets reference to implementation object.
 
bool IsNull ()
 Returns true if the object is nullified.
 
bool IsEqual (cadex.MTKBase_Feature theObject)
 
bool IsNotEqual (cadex.MTKBase_Feature theObject)
 

Static Public Member Functions

static new bool CompareType (cadex.MTKBase_Feature theFeature)
 Returns true if theFeature is a machining threaded hole.
 
static new cadex.Machining_ThreadedHole Cast (cadex.MTKBase_Feature theBase)
 
- Static Public Member Functions inherited from cadex.Machining_Hole
static new bool CompareType (cadex.MTKBase_Feature theFeature)
 Returnstrue if theFeature is a machining hole.
 
static new cadex.Machining_Hole Cast (cadex.MTKBase_Feature theBase)
 
- Static Public Member Functions inherited from cadex.MTKBase_Hole
static new bool CompareType (cadex.MTKBase_Feature theFeature)
 Returns true if theFeature is a hole.
 
static new cadex.MTKBase_Hole Cast (cadex.MTKBase_Feature theBase)
 
- Static Public Member Functions inherited from cadex.MTKBase_ShapeFeature
static bool CompareType (cadex.MTKBase_Feature theFeature)
 Returnstrue if theFeature is a shape feature.
 
static cadex.MTKBase_ShapeFeature Cast (cadex.MTKBase_Feature theBase)
 

Protected Member Functions

override void Dispose (bool disposing)
 
- Protected Member Functions inherited from cadex.MTKBase_Hole
override void Dispose (bool disposing)
 
- Protected Member Functions inherited from cadex.MTKBase_ShapeFeature
override void Dispose (bool disposing)
 

Detailed Description

Describes a threaded hole.

A threaded hole is a cylindrical hole with a helical thread (groove) machined on its inner surface.

The helical thread is designed to fit with the corresponding external threaded components, such as screws, bolts, and studs, providing for secure fastening and reliable mechanical connections.

Shape() method returns ModelData.Shell for this class.

Threaded Hole

Threaded Hole has the following basic parameters: minor radius in mm, major radius in mm, thread length in mm, pitch in mm, depth in mm.

Threaded hole parameters

Threaded Hole types

MTK supports threaded hole types (see the Machining_HoleType enumeration):

Threaded Through hole A hole that goes through the entire workpiece.
Threaded Flat Bottom hole A hole machined to have a flat reflecting surface at the hole bottom
Threaded Blind hole A hole does not pass through the entire workpiece

The hole type is returned by Type().

Examples
machining/feature_recognizer/Program.cs, and machining/feature_recognizer/main.cxx.

Constructor & Destructor Documentation

◆ Machining_ThreadedHole() [1/2]

cadex.Machining_ThreadedHole.Machining_ThreadedHole ( )
inline

Constructor.

◆ Machining_ThreadedHole() [2/2]

cadex.Machining_ThreadedHole.Machining_ThreadedHole ( double theMinorRadius,
double theMajorRadius,
double theThreadLength,
double thePitch,
double theDepth,
cadex.Geom.Axis3d theAxis,
cadex.Machining_HoleType theType )
inline

Creates a machining threaded hole from the minor radius, major radius, thread length, pitch, depth, axis and machining hole type.

Constructor.

Member Function Documentation

◆ CompareType()

static new bool cadex.Machining_ThreadedHole.CompareType ( cadex.MTKBase_Feature theFeature)
inlinestatic

Returns true if theFeature is a machining threaded hole.

Examples
machining/feature_recognizer/Program.cs.

◆ Dispose()

override void cadex.Machining_ThreadedHole.Dispose ( bool disposing)
inlineprotectedvirtual

Reimplemented from cadex.Machining_Hole.

◆ MajorRadius()

double cadex.Machining_ThreadedHole.MajorRadius ( )
inline

Returns the threaded hole major radius in mm .

See also
SetMajorRadius()
Examples
machining/feature_recognizer/Program.cs.

◆ MinorRadius()

double cadex.Machining_ThreadedHole.MinorRadius ( )
inline

Returns the threaded hole minor radius in mm .

See also
SetMinorRadius()
Examples
machining/feature_recognizer/Program.cs.

◆ Pitch()

double cadex.Machining_ThreadedHole.Pitch ( )
inline

Returns the threaded hole pitch in mm .

See also
SetPitch()
Examples
machining/feature_recognizer/Program.cs.

◆ SetMinorRadius()

void cadex.Machining_ThreadedHole.SetMinorRadius ( double theMinorRadius)
inline

Sets the threaded hole minor radius in mm .

The value must be greater than zero.

See also
MinorRadius()

◆ SetPitch()

void cadex.Machining_ThreadedHole.SetPitch ( double thePitch)
inline

Sets the threaded hole pitch in mm .

The value must be greater than zero.

See also
Pitch()

◆ SetThreadLength()

void cadex.Machining_ThreadedHole.SetThreadLength ( double theThreadLength)
inline

Sets the threaded hole thread length in mm .

The value must be greater than zero.

See also
ThreadLength()

◆ ThreadLength()

double cadex.Machining_ThreadedHole.ThreadLength ( )
inline

Returns the threaded hole thread length in mm .

While Depth() returns the depth of the entire hole, ThreadLength() returns only the depth of the threaded part.

See also
SetThreadLength()
Depth()
Examples
machining/feature_recognizer/Program.cs.