design-engine
New member
Pro/PROGRAM question here….
Trying to calculate from mass props the volume to display on a drawing.
I dug this up from version 20 notes somewhere but don’t have
the part to look at the parameters or relations. I stick this between the RELATIONS section of
the Pro/PROGRAM edit window. can seam to get the thing to work.
MASS_LB=MP_MASS("")
VOLUME_IN3=MP_VOLUME("")
VOLUME_OZ=MP_VOLUME_IN3*128/231
I stick all this in between RELATIONS and END RELATIONS
then add the part name in between
MASPROP
<partneame>
END MASPROP
A little rusty at Pro/PROGRAM but are the first two variables are the ones I call out? When you do a mass props under analysis the call outs are with out the MP_ and just VOLUME. Thats confusing. VOLUME_OZ what I am trying to solve... therefore that is what I want to display on my drawing.
VOLUME_OZ is what I am trying to solve thus what I want to
display on the drawing using &VOLUME_OZ
What do I set in the parameters or relations If anything.
What are the quotes referencing?
What need to be called out as a parameter?
Relations?
Edited by: design-engine
Trying to calculate from mass props the volume to display on a drawing.
I dug this up from version 20 notes somewhere but don’t have
the part to look at the parameters or relations. I stick this between the RELATIONS section of
the Pro/PROGRAM edit window. can seam to get the thing to work.
MASS_LB=MP_MASS("")
VOLUME_IN3=MP_VOLUME("")
VOLUME_OZ=MP_VOLUME_IN3*128/231
I stick all this in between RELATIONS and END RELATIONS
then add the part name in between
MASPROP
<partneame>
END MASPROP
A little rusty at Pro/PROGRAM but are the first two variables are the ones I call out? When you do a mass props under analysis the call outs are with out the MP_ and just VOLUME. Thats confusing. VOLUME_OZ what I am trying to solve... therefore that is what I want to display on my drawing.
VOLUME_OZ is what I am trying to solve thus what I want to
display on the drawing using &VOLUME_OZ
What do I set in the parameters or relations If anything.
What are the quotes referencing?
What need to be called out as a parameter?
Relations?
Edited by: design-engine