How can I automatically run a Sub from an Inventor VBA Project? I am using a class module where I can access different events form the application. Something like the following:
Private WithEvents moAppEvents As Inventor.ApplicationEvents
I need to initialize a variable in my project as the class module (moMDSCInventorAuto) so that the events will automatically trigger.
Sub ABC()
Dim oAuto as moMDSCInventorAuto
Set oAuto = New moMDSCInventorAuto
End Sub
I can do this using a Sub but I would like a Sub that will automatically trigger when the project is loaded. I am aware of the Auto... Subs like AutoOpen but I haven't had much luck with these in a project file.
Any ideas would be great.