Message 1 of 6
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Ref: Inventor part document:
In my iLogic pursuits, currently I need to have all the appearances (from the current Appearance library) in a pull down menu so that desired appearance can be selected. The selected appearance to be assigned to the part. Similar to the following, but for the appearances.
Thanks.
Dim oMaterials As New ArrayList For Each oMaterial In ThisDoc.Document.Materials 'msg = MessageBox.Show(oMaterial.Name, "Title",MessageBoxButtons.OKCancel) oMaterials.add(oMaterial.Name) If msg = vbCancel Then Exit For End If Next 'present the user with the list to choose from 100: oMaterial_IP = InputListBox("CHOOSE MATERIAL FROM ABOVE LIST", oMaterials, oMaterials.item(0), "MATERIAL SELECTION", "LIST OF MATERIALS") If oMaterial_IP = "" Then Goto 100: iProperties.Material = oMaterial_IP
Solved! Go to Solution.