Inventor Customization

Reply
Valued Contributor
KentKeller
Posts: 87
Registered: ‎09-23-2008
Message 1 of 3 (209 Views)

Select Material Library

209 Views, 2 Replies
10-04-2013 11:13 AM

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.? 

Kent Keller
KWiKMcad

Valued Mentor
saseendrankombath
Posts: 361
Registered: ‎11-11-2005
Message 2 of 3 (187 Views)

Re: Select Material Library

10-06-2013 11:47 AM in reply to: KentKeller

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.

ADN Support Specialist
philippe.leefsma
Posts: 658
Registered: ‎06-02-2009
Message 3 of 3 (167 Views)

Re: Select Material Library

10-08-2013 03:39 AM in reply to: saseendrankombath

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.

 

Regards,

Philippe.



Philippe Leefsma
Developer Technical Services
Autodesk Developer Network

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Are You Going To Be @ AU 2014? Feel free to drop by our AU topic post and share your plans, plug a class that you're teaching, or simply check out who else from the community might be in attendance. Ohh and don't forgot to stop by the Autodesk Help | Learn | Collaborate booths in the Exhibit Hall and meet our community team if you get a chance!