DiscussionsIssue archiveDraw Harness and Samples

Archived discussion

Looking for a TCL example of making a threaded hole

Draw Harness and SamplesSun, 02/20/2022 - 12:471 reply

Browse this forum
QuestionAuthor

Hello,

I am looking for a a small example of modeling a threaded hole in TCL.
if any one can link to an example that would be extremely helpful.

-Mike

Discussion

1 archived reply

Posts are displayed in their archived order.

01Author

Still looking for some help on this. I found this. https://www.cnblogs.com/opencascade/p/4634374.html

That code gets me closer but I still need a way to specify the pitch and total height of the helix. any help would be appreciated.

#
# make helix curve in OpenCASCADE.
# Shing Liu([email removed])
# 2015-07-08 22:00
#

pload MODELING VISUALIZATION

cylinder aCylinder 6

line aLine2d 0 0 1 1
trim aSegment aLine2d 0 2*pi

mkedge aHelixEdge aSegment aCylinder 0 6*pi

vdisplay aHelixEdge