01-28-2015
06:02 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
01-28-2015
06:02 AM
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
...