
Not applicable
03-26-2021
08:07 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello!
I create a thread and want it to be not the entire length of the cylinder, but a certain distance. In the documentation, I did not find an opportunity to set the thread length. Help, please, I am attaching the code for creating a thread in a hole.
how do i access the parameter given in the image ?? (Lenght)
threads = comp.features.threadFeatures
threadDataQuery = threads.threadDataQuery
defaultThreadType = threads.threadDataQuery.defaultMetricThreadType
threadClass = '6H'
threadDesignation = 'M3x0.5'
threadInfo = threads.createThreadInfo(True, defaultThreadType, threadDesignation, threadClass)
faces = adsk.core.ObjectCollection.create()
faces.add(sideFace)
threadInput = threads.createInput(faces, threadInfo)
threadInput.isFullLength = False
thread = threads.add(threadInput)
Solved! Go to Solution.