Run Fusion 360 API "Python" Script When Opening An Existing Document (Assembly, Part or Drawing)

Run Fusion 360 API "Python" Script When Opening An Existing Document (Assembly, Part or Drawing)

isocam
Collaborator Collaborator
392 Views
2 Replies
Message 1 of 3

Run Fusion 360 API "Python" Script When Opening An Existing Document (Assembly, Part or Drawing)

isocam
Collaborator
Collaborator

Can anybody help?

 

Is it possible to run a Fusion 360 API "Python" script when opening an existing document (Assembly, Part or Drawing)?

 

For example,

 

Whenever I open an existing Assembly, Part or Drawing (For testing purposes only) show a messagebox saying "Hello World"

 

Many thanks in advance!

 

Darren

0 Likes
393 Views
2 Replies
Replies (2)
Message 2 of 3

j.han97
Advocate
Advocate

I think your task is do-able. You might want to take a look at Application.documentOpened command here: Fusion 360 Help | Application.documentOpened Event | Autodesk. This event is triggered at the end of opening a document. 

 

*Edit to correct weird hyperlink behavior

 

 

Message 3 of 3

kandennti
Mentor
Mentor
0 Likes