Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Thread support depth call for macro

Status
Not open for further replies.

Alan Lowbands

Aerospace
May 17, 2017
274
0
0
GB
Good morning All,

Does anyone know what the call-up is for thread 'Support' depth ?
The code below 'kind off' works on blind holes but falls down when the hole depth is 'Up to Next'

i've searched the v5Automation but can't find how to change from Dimension to Support.

----------------------------------------------------------------------------
oHole1.ThreadSide = catRightThreadSide
oHole1.ThreadingMode = catThreadedHoleThreading
oHole1.CreateStandardThreadDesignTable catHoleMetricThickPitch
Set strParam1 = oHole1.HoleThreadDescription
strParam1.Value = oHoleSize
oHole1.ThreadDepth.Value = oDepth 'Thread depth same as hole depth
'oHole1.ThreadDepth.Value = oTDepth 'Thread depth different to hole depth
-----------------------------------------------------------------------------

thanks for any pointers
 
Replies continue below

Recommended for you

Sorry, missed a bit out.

----------------------------------------------------------
oHole1.BottomLimit.LimitMode = catOffsetLimit
oHole1.BottomLimit.Dimension.Value = oDepth
If oDepth = 0 then oHole1.BottomLimit.LimitMode = catUpThruNextLimit
oHole1.ThreadSide = catRightThreadSide
oHole1.ThreadingMode = catThreadedHoleThreading
oHole1.CreateStandardThreadDesignTable catHoleMetricThickPitch
Set strParam1 = oHole1.HoleThreadDescription
strParam1.Value = oHoleSize

oHole1.ThreadDepth.Value = oDepth 'Thread depth same as hole depth
'oHole1.ThreadDepth.Value = oTDepth 'Thread depth different to hole depth - turn on input box
-----------------------------------------------------------------------
 
Status
Not open for further replies.
Back
Top