Run macro upon open

Run macro upon open

karthur1
Mentor Mentor
1,294 Views
2 Replies
Message 1 of 3

Run macro upon open

karthur1
Mentor
Mentor

Is there away to have Autodesk Inventor run a macro automatically everytime a file is opened?  I know that there are third-party apps out there that will do it, but I was trying to do it with the Autodesk Task Scheduler.

0 Likes
1,295 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable

Sub AutoOpen()

 

<<your code>>

 

End Sub

 

 

This sub saved on the file should do the trick.

 

Same thing for

AutoNew()

AutoClose() and I think

AutoSave().

 

Regards.

0 Likes
Message 3 of 3

ekinsb
Alumni
Alumni

I would recommend not using the automatic macros approach and would suggest an add-in instead.  You might want to read these two posts:

 

http://modthemachine.typepad.com/my_weblog/2008/09/vba-document-projects.html

 

http://modthemachine.typepad.com/my_weblog/2008/10/converting-vba-auto-macros-to-an-add-in.html

 


Brian Ekins
Inventor and Fusion 360 API Expert
Mod the Machine blog
0 Likes