Community
Fusion API and Scripts
Got a new add-in to share? Need something specialized to be scripted? Ask questions or share what you’ve discovered with the community.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

MyDocumentOpenedHandler - Problem

1 REPLY 1
Reply
Message 1 of 2
isocam
96 Views, 1 Reply

MyDocumentOpenedHandler - Problem

Can anybody help?

 

Please see the attached script.

 

I am using "MyDocumentOpenedHandler" to check if a PDF copy of a drawing exists when I open a drawing.

 

If I put a ui.messageBox into the script the PDF file is successfully created!

 

If I remove the ui.messageBox Fusion 360 "hangs up" and I have to close Fusion 360.

 

Does anybody know what I am doing wrong, or how to correct this, or is this a possible bug???

 

Many thanks in advance!

 

Darren

1 REPLY 1
Message 2 of 2
kandennti
in reply to: isocam

Hi @isocam.

 

I don't understand the question, but I will describe what I know about the documentOpened event.

 

It seems that the documentOpened event is fired when the command is finished, not when the document is completely opened.

 

You can see a sample of how I picked up the timing of the document opening from the task in the past.

https://forums.autodesk.com/t5/fusion-360-api-and-scripts/drawing-pdf-export-how-to-access-the-new-e... 

 

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report