Access Multi value List from outside the Part/Assembly

Access Multi value List from outside the Part/Assembly

cencinaNB2ET
Advocate Advocate
234 Views
1 Reply
Message 1 of 2

Access Multi value List from outside the Part/Assembly

cencinaNB2ET
Advocate
Advocate

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
0 Likes
235 Views
1 Reply
Reply (1)
Message 2 of 2

bradeneuropeArthur
Mentor
Mentor
In what language?

Vba
Vb.net
I logic

Regards,

Arthur Knoors

Autodesk Affiliations & Links:
blue LinkedIn LogoSquare Youtube Logo Isolated on White Background


Autodesk Software:Inventor Professional 2025 | Vault Professional 2024 | Autocad Mechanical 2024
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:
Drawing List!|
Toggle Drawing Sheet!|
Workplane Resize!|
Drawing View Locker!|
Multi Sheet to Mono Sheet!|
Drawing Weld Symbols!|
Drawing View Label Align!|
Open From Balloon!|
Model State Lock!
Posts and Ideas:
My Ideas|
Dimension Component!|
Partlist Export!|
Derive I-properties!|
Vault Prompts Via API!|
Vault Handbook/Manual!|
Drawing Toggle Sheets!|
Vault Defer Update!

! For administrative reasons, please mark a "Solution as solved" when the issue is solved !


 


EESignature

0 Likes