Hi All - I need to be able to pull the Weight and the Material from a .sldprt file. I am able to get the Mass by the following:
swClassFact = CreateObject("SwDocumentMgr.SwDMClassFactory") swDocMgr = swClassFact.GetApplication(sLicenseKey) swDoc = swDocMgr.GetDocument(sDocFileName, nDocType, False, nRetVal) swCfgMgr = swDoc.ConfigurationManager
Dim bRet As SwDmMassPropError
Dim obj As Object
obj = swCfg.GetMassProperties(bRet)
but I cannot figure out how I can get the Material?
Can anyone help please?
TIA,
jj
SolidworksApi macros