Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

sw 2004 materials database 4

Status
Not open for further replies.

Steve105

Mechanical
Jul 1, 2002
6
0
0
GB
I would like to know if it is possible to edit the sw materials database in any other way than going into a part and editing or creating a new material?

Is it possible to get this data into or out of an Excel spread sheet?

Steve
 
Replies continue below

Recommended for you

Yes,

Basically the material file is an xml v1.0 type file but it is saved under the extension ".sldmat"

the file is located under the ...Solidworks/Lang/English folder and its called "SolidWorks Materials.sldmat"

You can edit the contents of it by using notepad even. The file is structured like this:

<Material Class> (for instance &quot;STEEL&quot;)
-------<name of material> (Like SAE 1010)
-----------material information (Material Properties)
-------<end material>
-------<next material name>(Like SAE 1040)
-----------material information (Material Properties)
-------<end material>
<end of class>

Here is a sample of two of the materials listed in the file:

<classification name=&quot;Steel&quot;>
<material name=&quot;AISI 304&quot;>
<shaders>
<pwshader name=&quot;stainless steel&quot;/> <!-- OK -->
<cgshader name=&quot;SteelAISI304&quot;/>
<swtexture path=&quot;images\textures\metal\cast\cast_fine.jpg&quot;/>
</shaders>
<swatchcolor RGB=&quot;9DA4AC&quot;>
<sldcolorswatch:Optical Ambient='0.520000' Transparency='0.000000' Diffuse='0.800000' Specularity='1.000000' Shininess='0.400000' Emission='0.000000'/>
</swatchcolor>
<xhatch name=&quot;ANSI32 (Steel)&quot; angle=&quot;0.0&quot; scale=&quot;1.0&quot;/>
<physicalproperties>
<EX displayname=&quot;Elastic Modulus&quot; value=&quot;0.19E+12&quot;/>
<NUXY displayname=&quot;Poissons Ratio&quot; value=&quot;0.29&quot;/>
<GXY displayname=&quot;Shear Modulus&quot; value=&quot;0.75E+11&quot;/>
<ALPX displayname=&quot;Thermal Expansion Coefficient&quot; value=&quot;0.18E-4&quot;/>
<DENS displayname=&quot;Density&quot; value=&quot;0.80E+04&quot;/>
<KX displayname=&quot;Thermal Conductivity&quot; value=&quot;16.&quot;/>
<C displayname=&quot;Specific Heat&quot; value=&quot;0.50E+03&quot;/>
<SIGXT displayname=&quot;Tensile Strength&quot; value=&quot;5.17017E+8&quot;/>
<SIGYLD displayname=&quot;Yield Strength&quot; value=&quot;2.06807E+8&quot;/>
</physicalproperties>
</material>
<material name=&quot;AISI 1020&quot;>
<shaders>
<pwshader name=&quot;stainless steel&quot;/> <!-- OK -->
<cgshader name=&quot;SteelAISI1020&quot;/>
<swtexture path=&quot;images\textures\metal\cast\cast_fine.jpg&quot;/>
</shaders>
<swatchcolor RGB=&quot;C6C6D1&quot;>
<sldcolorswatch:Optical Ambient='0.520000' Transparency='0.000000' Diffuse='0.800000' Specularity='1.000000' Shininess='0.400000' Emission='0.000000'/>
</swatchcolor>
<xhatch name=&quot;ANSI32 (Steel)&quot; angle=&quot;0.0&quot; scale=&quot;1.0&quot;/>
<physicalproperties>
<EX displayname=&quot;Elastic Modulus&quot; value=&quot;0.20E+12&quot;/>
<NUXY displayname=&quot;Poissons Ratio&quot; value=&quot;0.29&quot;/>
<GXY displayname=&quot;Shear Modulus&quot; value=&quot;0.77E+11&quot;/>
<ALPX displayname=&quot;Thermal Expansion Coefficient&quot; value=&quot;0.15E-4&quot;/>
<DENS displayname=&quot;Density&quot; value=&quot;0.79E+04&quot;/>
<KX displayname=&quot;Thermal Conductivity&quot; value=&quot;47.&quot;/>
<C displayname=&quot;Specific Heat&quot; value=&quot;0.42E+03&quot;/>
<SIGXT displayname=&quot;Tensile Strength&quot; value=&quot;4.20507E+8&quot;/>
<SIGYLD displayname=&quot;Yield Strength&quot; value=&quot;3.51571E+8&quot;/>
</physicalproperties>
</material>

You can build this yourself in notepad if you like or whatever method you prefer. Whatever you do, do not modify the original... copy or create a new one. place it in the same folder with the original file and you will see it available the next time you use the material editor.

hope that helps






Regards,
Jon
jgbena@yahoo.com
 
Steve105,

Watch your units!
APPENG, correct me if I am wrong, but when you enter material properties directly into the .sldmat file they must be in the proper units.

Timelord
 
Thanks

This all seem a bit long winded it would be nice if the material properties could be read direct from a spread sheet.

Would VBA help?

Steve
 
Status
Not open for further replies.
Back
Top