Message 1 of 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Can anybody help?
The following Fusion 360 Python "Class" works OK when opening an assembly, or a part, but does not work when opening a drawing.
class MyDocumentOpenedHandler(adsk.core.DocumentEventHandler):
def __init__(self):
super().__init__()
def notify(self, args):
global app, ui
ui = app.userInterface
design = adsk.fusion.Design.cast(app.activeProduct)
document = design.parentDocument
ui.messageBox("DOCUMENT OPENING", 'Fusion 360', 0, 3)
Does anybody know how to modify the code so that it also works when opening a drawing?
Many thanks in advance!
Darren
Solved! Go to Solution.