×
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

Calculating .prt weight then displaying it on .drw

Calculating .prt weight then displaying it on .drw

Calculating .prt weight then displaying it on .drw

(OP)
I would like to add the weight of a part to the drawing. Does anyone have any tips, recommendations or 'how-to' documentation ??

...Haym  

RE: Calculating .prt weight then displaying it on .drw

Haym,

In part mode, assign the right density or better the right material.

Go to relations and add the following line:

MASS = MP_MASS("")

If you assigned a material, instead of density, then add the following line too:

MATERIAL  = MATERIAL_PARAM("BEND_TABLE")

The material files are usualy stored in a folder set by the PRO_MATERIAL_DIR variable in config.pro

Edit the desired material with write/wordpad. You must have something linke this:
    
      MATERIAL   AL_ALLOY_7075-73                         
 
This file may be edited using available editor.
Just type on the necessary lines appropriate values
after the "=" sign. Comments are not permitted on
lines containing material properties names.

YOUNG_MODULUS                    = 10400000
POISSON_RATIO                    = 0.33
SHEAR_MODULUS                    = 3900000
MASS_DENSITY                     = 0.102
THERMAL_EXPANSION_COEFFICIENT    =
THERM_EXPANSION_REF_TEMPERATURE  =
STRUCTURAL_DAMPING_COEFFICIENT   =
STRESS_LIMIT_FOR_TENSION         =
STRESS_LIMIT_FOR_COMPRESSION     =
STRESS_LIMIT_FOR_SHEAR           =
THERMAL_CONDUCTIVITY             = 1080
EMISSIVITY                       =
SPECIFIC_HEAT                    =
HARDNESS                         = 135
CONDITION                        =
INITIAL_BEND_Y_FACTOR            =      
BEND_TABLE                       = AL_ALLOY_7075-T73
PRO_UNIT_MASS                    =
PRO_UNIT_LENGTH                  =

Please note that the material description is set for the BEND_TABLE variable. You will have to use this variable in relations to obtain the proper material description. No spaces are allowed!!!


Now in drawing mode, create a not as following:

WEIGHT = &mass[.3]

The [.3] is optional and controls the decimal numers. If you want a round number, use [.0]

If you want the material to be displayed:

MATERIAL = &material


You can use these variable either in BOM tables, formats or notes.

Good luck,

-Hora


RE: Calculating .prt weight then displaying it on .drw

Don't forget to do a Mass Props in the drawing mode if the part has changed. Else, the mass value will never update.

Hora, Super answer!

http://www.sprdesign.com

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