private void GetApplicationHighLightColour() { object obj = "314DE259-5443-4621-BFBD-1730C6CC9AE9"; Inventor.AssetLibrary assetLibrary = m_InvApplication.AssetLibraries[obj]; Inventor.AssetCategories assetCategories = assetLibrary.AppearanceAssetCategories; int AssetCatlength = assetCategories.Count; for (int i = 1; i <= AssetCatlength; i++) { CmbAssetCat.Items.Add(assetCategories[i].DisplayName); } CmbAssetCat.SelectedIndex = 1; }
private void CmbColour_DropDown(object sender, EventArgs e) { object obj = "314DE259-5443-4621-BFBD-1730C6CC9AE9"; Inventor.AssetLibrary assetLibrary = m_InvApplication.AssetLibraries[obj]; Inventor.AssetCategories assetCategories = assetLibrary.AppearanceAssetCategories; object Objct = CmbAssetCat.SelectedIndex; int length = assetLibrary.AppearanceAssetCategories[Objct].Assets.Count; for (int x = 1; x <= length; x++) { CmbColour.Items.Add(assetLibrary.AppearanceAssetCategories[Objct].Assets[x].DisplayName); } }