Assembly Relations Questions
I am modifying a current assembly to update its parts automatically when a certain dimension is changed. In this case, my model is a table. I set a relation to lock the length and want to change the thickness (user input/driving dimension) and have creo calculate the width (driven dimension) all while keeping a constant weight. I have achieved all of this except for keeping a constant weight. The weight will not stay the same because the legs change length based on the thickness of the table and the length of the rails under the table (there are 4 rails under the table which are for positioning the legs. My main question is how do I keep a constant weight while only changing the thickness of the table and how do I set my model to keep a constant weight? I have been lead to believe that to achieve this I would need to set a relation in the leg which would subtract (total table weight-table top-all four rails/4). This gives the weight of each individual leg and would change the length based on the other dimensions. The code that I have been trying to use is the mp_mass relation but it keeps giving me very strange errors. For example, the relation I would think to use for this is:
Weight=MP_MASS("TABLE_TOP.ASM : TABLE_ASSEMBLY.PRT")-MP_MASS("TABLE_TOP.ASM : TABLE_TOP.PRT")-MP_MASS("TABLE_TOP.ASM : SIDE_RAIL.PRT")-MP_MASS("TABLE_TOP.ASM : SIDE_RAIL.PRT")-MP_MASS("TABLE_TOP.ASM : FRONT_RAIL.PRT")-MP_MASS("TABLE_TOP.ASM : BACK_RAIL.PRT")
Creo gives me errors when I use this, it says that it is an invalid argument. I'm not sure what other code I am supposed to use nor do I know how else to solve for the weight of each individual leg in a relation. I could very well be using MP_MASS wrong. Can someone please try to explain to me how to keep a constant weight while changing the length of the legs, possibly set my model to have constant weight, and how to use MP_MASS correctly?
Note: We are assuming that WEIGHT=MASS here even though are actually different.
Thank you very much.
This thread is inactive and closed by the PTC Community Management Team. If you would like to provide a reply and re-open this thread, please notify the moderator and reference the thread. You may also use "Start a topic" button to ask a new question. Please be sure to include what version of the PTC product you are using so another community member knowledgeable about your version may be able to assist.

