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

Describes a threaded hole. A threaded hole is a cylindrical hole with a helical thread (groove) machined on its inner surface. 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)
 Constructor.
 
double MinorRadius ()
 
void SetMinorRadius (double theMinorRadius)
 
double MajorRadius ()
 
void SetMajorRadius (double theMinorRadius)
 
double ThreadLength ()
 
void SetThreadLength (double theThreadLength)
 
double Pitch ()
 
void SetPitch (double thePitch)
 
- 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)
 Constructor.
 
 Machining_Hole (double theRadius, double theDepth, cadex.Geom.Axis3d theAxis, cadex.Machining_HoleType theType)
 Constructor.
 
cadex.Machining_HoleType Type ()
 
void SetType (cadex.Machining_HoleType theType)
 
- 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)
 Constructor.
 
 MTKBase_Hole (double theRadius, double theDepth, cadex.Geom.Axis3d theAxis)
 Constructor.
 
double Radius ()
 
void SetRadius (double theRadius)
 
double Depth ()
 
void SetDepth (double theDepth)
 
bool HasAxis ()
 
cadex.Geom.Axis3d Axis ()
 
void SetAxis (cadex.Geom.Axis3d theAxis)
 
- 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)
 Constructor.
 
cadex.ModelData.Shape Shape ()
 
void SetShape (cadex.ModelData.Shape theShape)
 
- Public Member Functions inherited from cadex.MTKBase_Feature
 MTKBase_Feature (global::System.IntPtr cPtr, bool cMemoryOwn)
 
void Dispose ()
 
 MTKBase_Feature ()
 Constructor.
 
void Nullify ()
 
bool IsNull ()
 
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()

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

Constructor.

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

Member Function Documentation

◆ 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.