Hi beth.maddux,
This is more of an API question than illogic, so I searched over here:
http://forums.autodesk.com/t5/Autodesk-Inventor-Customization/bd-p/120
and came up with the example below.
It looks at materials in the document (rather than the materials in the material library), and then looks through the asset values of the current material, that have a string type, which should include the Description.
but for some reason it doesn't turn up, even though Keyword, Cost, etc all show up.
Not sure why this is the case. You might create a new post on the Customization forum, and ask why description doesn't show up, and link back to this post.
I hope this helps.
Best of luck to you in all of your Inventor pursuits,
Curtis
http://inventortrenches.blogspot.com
'get the current material
oCurrentMat = iProperties.Material
Dim oPartDoc as PartDocument
oPartDoc = ThisDoc.Document
Dim oAssetLib As AssetLibrary
oAssetLib = ThisApplication.AssetLibraries.Item("Shick Material Library")
'look through all of the materials in the document
'( not the asset library in this case)
Dim material As MaterialAsset
For Each material In oPartDoc.MaterialAssets
If oCurrentMat = material.DisplayName Then
MessageBox.Show("Current Material: " & oCurrentMat, "iLogic")
For Each oValue As AssetValue In material
If oValue.ValueType = AssetValueTypeEnum.kAssetValueTypeString Then
Dim oStringAssetValue As StringAssetValue
oStringAssetValue = oValue
MessageBox.Show(oValue.Name & ": " & oStringAssetValue.Value, "iLogic")
End If
Next
End If
Next