Starting a tool (Python)¶
Starting a tool (Python)¶
1ot = impact.gui.output_toolbox
2
3ot.clear()
4tools = impact.gui.tools
5
6ot.add("Active Tool: " + tools.active_english_tool_name)
7
8englishToolName = "DiemakingAddDieboard"
9
10if tools.is_tool_available( englishToolName ):
11
12 ot.add("Tool " + englishToolName + " is available")
13
14 # start a new tool - should be the last thing in the script
15 tools.start_tool( englishToolName )
16
17else:
18
19 ot.add("Tool " + englishToolName + " is not available")
20 ot.add(tools.is_tool_available_reason( englishToolName ))