FreeCAD_macros icon indicating copy to clipboard operation
FreeCAD_macros copied to clipboard

[TDThread.FCMacro] Feature Request: Read thread information from hole

Open ToniTen opened this issue 4 years ago • 1 comments

Currently, your macro always puts M16 on the label for the dimension. However, if the hole was made with the appropriate tool (part design/hole) it can contain the information on the thread:

screenshot

I'm not familiar enough with FreeCAD macros to know how to access the value, but from the GUI, assuming the hole operation is names Hole, you can access it from <<Hole>>.ThreadSize. You also get a boolean <<Hole>>.Threaded to know if it's threaded and so if the value for ThreadSize is meaningful.

ToniTen avatar Nov 10 '20 10:11 ToniTen

Yes, the macro needs some reworking... But is this not already somehow implemented in TD itself? I just noticed that there are now these extensions: https://wiki.freecadweb.org/TechDraw_Workbench#Extensions

reox avatar May 23 '22 08:05 reox