@Anonymous : I'm glad to hear that the trigger worked for you, that's great news. The code for the Hole Creation on a part model is command "PartDMHoleCmd" and for an assembly, it is "PartHoleClassicCmd". Or like this :
'this line is the command trigger to create a hole in a part model
ThisApplication.CommandManager.ControlDefinitions.Item("PartDMHoleCmd")
'this line is the command trigger to create a hole in an assembly model
ThisApplication.CommandManager.ControlDefinitions.Item("PartHoleClassicCmd")
To find these commands is pretty simple. The instruction on how to use the event watcher tool is as follows:
- open a windows file explorer window and go to C:\Users\Public\Documents\Autodesk\Inventor 2016\SDK\DeveloperTools\Tools\EventWatcher\bin\Release\
- then right click on the "EventWatcher.exe" and then select pin to start or pin to taskbar, whatever your preference is. This will make it easy to access.
- run the "EventWatcher.exe" and you should see a window
watch the Screencast video to see how to use the EventWatcher to find the command codes.
Keep us posted on your progress this is very interesting. Hope it helps!
Work Station : Custom built, Liquid Cooled, Asus Pro WS X570-ACE Motherboard; AMD Ryzen 9 3900X 3.8 GHz 12-Core Processor; ASUS TUF Gaming NVIDIA GeForce RTX 3060 V2 OC Edition Video Card; 32 GB CORSAIR Dominator Platinum DDR4-2132 Memory ; Samsung 850 EVO 1TB SSD Drive.