Inventor 2013 Material Library selection in VBA
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi I'm looking for some help with selecting materials from multiple libraries
Using inventor 2012 the old code used before 2013 upgrade:-
Dim oMaterial As Material
Set oMaterial = oPartDoc.Materials.item("Glass Epoxy Laminate Sheet, BS EN60893-3-2, EPGC202, (NEMA FR4), 'ATTWATER B38'")
All my custom materials have been converted into a 'custom.adsklib" file and added alongside the 2 existing material libraries, so now i have three libraries appearing in the material browser.
There are no materials in the template files (only the default), the above code for 2012 can't find my custom material and returns an error!
How do i select my custom material library prior to selecting the required material?
Also same issue with appearance libraries
Regards
Keith