Inventor 2013 Material Library selection in VBA

Inventor 2013 Material Library selection in VBA

Garlish
Participant Participant
882 Views
0 Replies
Message 1 of 1

Inventor 2013 Material Library selection in VBA

Garlish
Participant
Participant

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

 

 

0 Likes
883 Views
0 Replies
Replies (0)