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
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
Hora, Super answer!
http://www.sprdesign.com