×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Using material physical properties in equations

Using material physical properties in equations

Using material physical properties in equations

(OP)
I am trying to find a way to reference the yield and tensile strength of the material in equations.  In the "api help", I can only find material visual properties and cannot find physical properties.

RE: Using material physical properties in equations

Density is the only physical property that can be obtained directly from the model.  To obtain the yield strength and tensile strength you would have to get the name of the material and then get the physical properties out of the XML .sldmat file.  See the API helpl for PartDoc::GetMaterialPropertyName2.  I would seriously doubt that this is possible in an equation.  Are you talking about a SolidWorks equation, or using a VBA macro or external .exe program to perform calculations based on physical properties?

-handleman, CSWP (The new, easy test)

RE: Using material physical properties in equations

(OP)
Unfortunately, it is for a SolidWorks equation.  We generally use equations to create global variables that we then use in the custom properties of a part or an assembly.  Then we link to these custom properties in the drawing with annotations.

For the physical properties, the need was to clearly indicate on the drawing the tensile and yield strength of the material in psi and MPa, thus eliminating the need to insert a block which contains this information for the appropriate material.

The other possibility is to reference a block in the drawing simply by choosing the material in the part.  Would this be possible??

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources