I am working in 2013 right now. My project loads two material libraries, and I am finding that if the Autodesk Material Library is selected in the dropdown, and I try to set the material to something in my Custom library, it fails. If I first select my custom library to make it the active one, then my code works fine.
So my question is, how do I set my custom library to be the active one, or better yet, so that it will look through both library's and pick the material from the library that has it.?
The 2013 API is not supporting to select the material library like autodesk Materilal library or Inventor material Library. I used to make the library active by selecting manualy to all the libraries before I run my addin. But in Inventor 2014 API is supporting to change or select the active library.
That's correct 2014 is coming with API access to the new material library. The property Application.ActiveMaterialLibrary allows you to set the active library.
Access a broad range of knowledge to help get the most out of your products and services.