- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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
Solved! Go to Solution.