Message 1 of 2
Access Multi value List from outside the Part/Assembly
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi All,
I'm trying to Open a file from another file and access its multi-value list to manipulate it as an Array list.
So far I can only change the iproperties and make it run rules inside of it but not access multi value lists directly.
Is there a way to achieve this??
Thanks
SyntaxEditor Code Snippet
Dim Save_Path As String Dim Folder As Integer Dim File As String = "E:\Engineering Projects\Project A\Factory Components\Manufactured Components\Standard Topbar\Standard Topbar.iam<CV>" oFile = ThisApplication.Documents.Open(File, False) Dim oOcc As ComponentOccurrence ' singular Dim Occurrences As ComponentOccurrences Dim oSubCompOcc As ComponentOccurrence Dim userParams As UserParameters Dim param As Parameter oAsmDoc = oFile oAsmDef = oAsmDoc.ComponentDefinition userParams = oAsmDef.Parameters.UserParameters Dim This_FileName As String = oAsmDoc.FullFileName Dim Directory As String = Left(This_FileName, InStrRev(This_FileName, "\")) Dim Main_Materials_QTY As New ArrayList Main_Materials_QTY = MultiValue.List("Heading_Materials_QTY") For Each element In Main_Materials_QTY MessageBox.Show( element, "") Next oFile.Save oFile.Close iLogicVb.UpdateWhenDone = True