Message 1 of 5
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am creating a comprehensive material library for material, finish (color and paint spec) and texture (expanded metal, perforated sheet, gratings etc.).
I tried with so many leads through the whole day. But could not get through a workable solution.
I shall be most grateful if someone help me.
Libraries to do with are:
Material libraries
- Inventor Material Library
- Autodesk Material Library
- InventorMaterialLibrary_RWEI
Appearance Libraries
- InventorMaterialLibrary_RWEI
- RWEI Appearance Library
- RWEI Texture Library
- RWEI Appearance Library RAL
Sub Main()
Dim oDoc = ThisDoc.Document
Dim assetLib As AssetLibrary
Dim oList_Assets As New ArrayList
For Each oAssetLibrary In ThisApplication.AssetLibraries
oList_Assets.Add(oAssetLibrary.DisplayName)
Next oAssetLibrary
oAssetLibrary_Selected = InputListBox("SELECT REQ'D LIB. FROM ABOVE!", oList_Assets, oList_Assets.Item(0), "CHANGE MATERIAL ASSET LIB.", "LIST OF ASSET LIBRARIES")
oIndex = oList_Assets.indexof(oAssetLibrary_Selected)
' Dim oAppearanceAssets As AssetsEnumerator
' oAppearanceAssets = oPartDoc.AppearanceAssets
oAssetlib = ThisApplication.AssetLibraries.oList_Assets(oIndex)
' ThisApplication.ActiveAppearanceLibrary = oAssetLibrary_Selected.indexof(oAssetLibrary_Selected)
End Sub
Autodesk Inventor Professional 2019
Vault Professional 2019
Solved! Go to Solution.
