Reply

Retriving Material name in SE v19 and v20

[ Edited ]

 

Hi All

I need to retrive information about material name from Sheet Metal Document.   I've searched variables property od SMD there was info about material thickness but I don't need it at the moment. Which property of SMD contains Material name. Another question is about material table object. Does every part has it's own material table or there is only one global material table for solid edge?

 

Posted by: Marek Ziembik
Post date: 8/13/2008 9:39:05 PM

1 REPLY

RE: Retriving Material name in SE v19 and v20

[ Edited ]

 

 

The material table is globally set, same for all PAR and PSM.  the default is file name is material.mtl, which you can determine as follows:

Dim ObjMatTbl As Object

Dim MatListArray As Variant  'material list array

Dim MatListLen As Long       'length of mat list array

Dim MatFile As Variant

Dim seApp As SolidEdgeFramework.Application

Set seApp = GetObject(, "SolidEdge.Application")   

Set ObjMatTbl = seApp.GetMaterialTable

Call ObjMatTbl.GetMatLibFileName(MatFile)      'material file name

Call ObjMatTbl.GetMaterialList(MatListLen, MatListArray)    'matlistarray will hold all material names

Set ObjMatTbl = Nothing

Set seApp = Nothing

Hope this helps

 

Posted by: Jon Zaerr
Post date: 2/19/2009 4:44:45 AM