- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I have an addin that adds a button to launch a simple sub.
I want to have the sub run everytime the user creates a new part.
when i create a new part nothing happens.
i have this in my code:(only showing relevent stuff)
Public module Globals
Public m_inventorApplication As Inventor.Application
.....
Public Class StandardAddInServer
Private WithEvents m_AppEvents As FileUIEvents
....
public sub activate
m_inventorApplication = addInSiteObject.Application
m_AppEvents = m_inventorApplication.FileUIEvents
---
and i'm trying to run this sub:
Private Sub m_AppEvents_Onnewfile(TemplateDir As String, ParentHWND As Long, TemplateFileName As String, Context As NameValueMap, HandlingCode As HandlingCodeEnum) Handles m_AppEvents.OnFileNewDialog Event
msgbox("new file")
End Sub
Thanks.
Solved! Go to Solution.