Without seeing your code, I'm guessing, but try using Inventor.AssetLibraries instead of Inventor.Materials.
Brandon