Message 1 of 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm trying to write a script that will automatically generate a thread undercut for when machining a thread on a lathe.
Is it possible to retrieve the thread properties after the thread feature has been selected in the command window. Such as;
selectionInput = inputs.addSelectionInput(commandId + '_selection', 'Select', 'Select bodies or occurrences')
selectionInput.setSelectionLimits(1)
selectionInput.selectionFilters = ['Features', 'Occurrences']
#Once thread feature has been selected retrieve the thread pitch and thread size e.g Size M6 ; Thread 1mm.
Thank you in advance
Solved! Go to Solution.