This seems incomplete
Code: Select all
>>> import PartDesign
>>> dir(PartDesign)
['InvoluteGearFeature', 'SprocketFeature', 'WizardShaft', '_PartDesign', '__builtins__', '__cached__', '__doc__', '__file__', '__loader__', '__name__', '__package__', '__path__', '__spec__', 'makeFilletArc']
How about revealing the settings of these tools without creating object?
>>> dir(Part.Toroid.Axis)
returns class methods.
If the object exists this works
>>> doc.Toroid.PropertiesList
this is a nice list. How to access further?
>>> Gui.listCommands()
or how to extend this idea?
or for active WB, similar to abovecarlopav wrote: ↑Fri Apr 03, 2020 3:03 pmtry this quick macro:you have to customize it a bit I think, and it works just with installed wbs.Code: Select all
from PySide import QtGui mw = Gui.getMainWindow() wbs=Gui.listWorkbenches() for k in wbs.keys(): Gui.activateWorkbench(k) print("WORKBENCH: "+k) tbs = mw.findChildren(QtGui.QToolBar) for t in tbs: if t.isVisible(): print("--> "+t.objectName()) for a in t.actions(): print("----> "+a.objectName())
This is the result on my system:
Code: Select all
WORKBENCH: NoneWorkbench --> DynamicData Commands ----> DynamicDataCreateObject ----> DynamicDataAddProperty ----> DynamicDataRemoveProperty ----> --> Draft creation tools ----> Draft_Line ----> Draft_Wire ----> Draft_Circle ----> Draft_Ellipse ----> Draft_Rectangle etc,etc
>>> wb=Gui.activeWorkbench()
>>> wb.getToolbarItems()
any idea?
thanks