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: adam.nagy

Thanks Adam.  Restarting didn't fix it.  It acts like it is read-only but it doesn't show as Read-Only.  Usually when Default.ivb is read only it is indicated in the name like ApplicationProject(Default.ivb - Read Only)

 

What I meant by auto run was using the following code in the Default.ivb file.  Auto run is the wrong name for it but the below still works with 2014.

 

'Main function
Public Sub RunCustomProgram(Filename As String, ProjectName As String, ModuleName As String, FunctionName As String)
    Dim oIvVBAProjects As Inventor.InventorVBAProjects
    Set oIvVBAProjects = ThisApplication.VBAProjects
    Dim j As Integer
    Dim i As Integer
    Dim oIvVBAComps As InventorVBAComponents
    Dim oIvVBAMembers As InventorVBAMembers
    Dim oIvVBAMember As InventorVBAMember
    Dim dd As Object
    
    For i = 1 To ThisApplication.VBAProjects.Count
        Dim cc As Object
        Set cc = ThisApplication.VBAProjects.Item(i)
        If cc.Name = ProjectName Then
            Exit For
        End If
    Next

...