Hi,
last friday I managed to toggle the drawing of the tool with 1 key (In my case this is F8 but you can choose whatever you want).
This is what I've done: I have 3 macro's. Each macro has it's own function: draw tool, draw tool shaded and undraw tool.
At the end of each macro, the keyshortcut is changed to the next macro (= next tool draw)
To get this working save the 3 macro's below (change the path to the correct location!) and then you need to manualy run 1 of the 3 macro's in the navigation menu in order to get the F8 key assigned . After this you just press F8 and it toggles the drawing of the tool.
No toolpaths need to be active.
These are the 3 macro's:
Draw tool, no shade (ToolDraw.mac)
//DRAW TOOL
UNDRAW SHADEDTOOLS
DRAW TOOL $Toolpath.Tool
//DELETE PREVIOUS ASSIGNMENT
FORM CUSTOMKEYBOARD
CUSTOMKEYBOARD SELECT MACRO "L:\...\ToolDraw.mac"
CUSTOMKEYBOARD DELETE SELECTED
//SET SHORTCUT F8 TO DRAW TOOL SHADED
CUSTOMKEYBOARD ADD MACRO
CUSTOMKEYBOARD MACRO FILEOPEN
"L:\...\ToolDrawShaded.mac"
CUSTOMKEYBOARD SHORTCUT "0x77" //shortcut: F8
CUSTOMKEYBOARD ASSOCIATE
FORM ACCEPT CUSTOMKEYBOARD
Draw tool, shaded (ToolDrawShaded.mac)
//DRAW TOOL SHADED
DRAW SHADEDTOOLS
//DELETE PREVIOUS ASSIGNMENT
FORM CUSTOMKEYBOARD
CUSTOMKEYBOARD SELECT MACRO "L:\...\ToolDrawShaded.mac"
CUSTOMKEYBOARD DELETE SELECTED
//SET SHORTCUT F8 TO UNDRAW TOOL
CUSTOMKEYBOARD ADD MACRO
CUSTOMKEYBOARD MACRO FILEOPEN
"L:\...\ToolUndraw.mac"
CUSTOMKEYBOARD SHORTCUT "0x77" //shortcut: F8
CUSTOMKEYBOARD ASSOCIATE
FORM ACCEPT CUSTOMKEYBOARD
Undraw tool (ToolUndraw.mac)
//UNDRAW TOOL
UNDRAW TOOL ALL
//DELETE PREVIOUS ASSIGNMENT
FORM CUSTOMKEYBOARD
CUSTOMKEYBOARD SELECT MACRO "L:\...\ToolUndraw.mac"
CUSTOMKEYBOARD DELETE SELECTED
//SET SHORTCUT F8 TO DRAW TOOL
CUSTOMKEYBOARD ADD MACRO
CUSTOMKEYBOARD MACRO FILEOPEN
"L:\...\ToolDraw.mac"
CUSTOMKEYBOARD SHORTCUT "0x77" //shortcut: F8
CUSTOMKEYBOARD ASSOCIATE
FORM ACCEPT CUSTOMKEYBOARD
Intel i7 4790 @ 3.60GHz -16GB RAM - Nvidia Quadro K620 - 250GB SSD - Win 7 Pro x64 SP1
PowerMILL Premium 2019.1 - PowerINSPECT Ultimate OMV 2017 SP6