Message 1 of 2
Show "Properties" Dialog Box For Parts & Assemblies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Can anybody help?
I have the following Fusion 360 "Python" script file....
import adsk.core, adsk.fusion, traceback
def run(context):
ui = None
try:
app = adsk.core.Application.get()
ui = app.userInterface
des = app.activeProduct
root = des.rootComponent
sels = ui.activeSelections
sels.add(root.bRepBodies[0])
app.executeTextCommand(u'Commands.Start FusionPropertiesCommand')
except:
if ui:
ui.messageBox('Failed:\n{}'.format(traceback.format_exc()))
It works great when I run the script on a "Part" document but not on a "Assembly" document.
Can anybody update the script for me so that it works on both "Part" & "Assembly" documents?
Many thanks in advance!
Darren