Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
Anonymous
in reply to: ruthsteed

Can i define this in another module and will it work in the same way or is it necessary to parse this through to the new module?

 

Currently trying and failing with this;

 

    Public Shared addInSiteObject As Inventor.ApplicationAddInSite

    Private Sub Export(sender As Object, e As EventArgs) Handles MyBase.Load

        System.Windows.Forms.Application.EnableVisualStyles()

        Try

            InvApp = addInSiteObject.Application

            Dim oDoc As AssemblyDocument = InvApp.ActiveEditDocument
        Catch
            MsgBox("64", 64, Title)
            Return
        End Try

...