Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
andrew_canfield
320 Views, 1 Reply

Open multiple assemblies from an error log list using ilogic

Not amazing - but amazing to me..I've created (part copied) some code which will open a list of assemblies:-

The history is a folder has been added to a new vault & there are some errors in the log so I want to open up the file in Inventor then fix then & check them into the new vault - all good.

The assemblies file path, listed in the log file are edited in Notepad & pasted into the ilogic rule.

This is the code: 

Dim aList As New List(Of String)
aList.Add("D:\JFLY\VWF\Designs\CASE\400\455\Sub Assemblies\OVEN01_01.iam")
aList.Add("D:\JFLY\VWF\Designs\CASE\400\455\Sub Assemblies\OVEN01_02.iam")
aList.Add("D:\JFLY\VWF\Designs\CASE\400\455\Sub Assemblies\OVEN01_03.iam")
aList.Add("D:\JFLY\VWF\Designs\CASE\400\455\Sub Assemblies\OVEN01_04.iam")
aList.Add("D:\JFLY\VWF\Designs\CASE\400\455\Sub Assemblies\OVEN01_05.iam")
aList.Add("D:\JFLY\VWF\Designs\CASE\400\455\Sub Assemblies\OVEN01_06.iam")
aList.Add("D:\JFLY\VWF\Designs\CASE\400\455\Sub Assemblies\OVEN01_07.iam")
aList.Add("D:\JFLY\VWF\Designs\CASE\400\455\Sub Assemblies\OVEN01_08.iam")

For Each Str As String In aList
    System.Console.WriteLine(Str)
	ThisDoc.Launch(Str)

Next

 

I'm thinking it would be a little quicker if the files could be opened with the 'Design View Representation' = Nothing Visible - I'm only wanting to see the Vault status in the Vault tab - adding 'ThisDoc.Launch(Str,false)' creates an error.

 

Some of the assemblies are pretty large, hoping not displaying any graphics will be a little quicker.

 

Regards

 

Andrew