Community Tip - Visit the PTCooler (the community lounge) to get to know your fellow community members and check out some of Dale's Friday Humor posts!
X
ProMassPropertyGet() doesn't match Analysis->Mass Properties results.
On each component of an assembly I am calculating mass properties referencing a csys owned by the top-level assembly. I isolate each component by creating a simplified representation that only contains the component. I am finding that when I call ProMassPropertyGet() the results are not the same as if I created a Mass Properties analysis feature within Pro/ENGINEER. For example Pro/ENGINEER always reports the mass to be 1.209 lb whereas the results from the API are 0.966. Why is Pro/ENGINEER calculating a different mass than the API?
Here's the code for the simp rep creation and mass property calculation.
//Get the current window id pro_error = ProWindowCurrentGet(&nWindowId); PROUTIL_CALL_REPORT("ProWindowCurrentGet()", szFuncName, pro_error, pro_error!=PRO_TK_NO_ERROR);
//Refit the window pro_error = ProWindowRefit(nWindowId); PROUTIL_CALL_REPORT("ProWindowRefit()", szFuncName, pro_error, pro_error!=PRO_TK_NO_ERROR);
//Free the sim rep data pro_error = ProSimprepdataFree(&pro_simpRepData); PROUTIL_CALL_REPORT("ProSimprepdataFree()", szFuncName, pro_error, pro_error!=PRO_TK_NO_ERROR);
This message contains information that may be confidential and privileged. Unless you are the addressee (or authorized to receive mail for the addressee), you should not use, copy or disclose to anyone this message or any information contained in this message. If you have received this message in error, please so advise the sender by reply e-mail and delete this message. Thank you for your cooperation. 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.
Ok, I believe I have found the discrepancy. Pro/TOOLKIT will only report back the mass properties from an "assigned" point of view whereas the default for Pro/ENGINEER is "computed". Now I have to figure out how to get Pro/TOOLKIT to return "computed" values. Here is a screenshot of the difference. Notice the difference in the values for AVERAGE DENSITY and MASS.
PATRICK S WILLIAMS Information Technology Mechanical Engr Solutions Missile Systems Raytheon Company
This message contains information that may be confidential and privileged. Unless you are the addressee (or authorized to receive mail for the addressee), you should not use, copy or disclose to anyone this message or any information contained in this message. If you have received this message in error, please so advise the sender by reply e-mail and delete this message. Thank you for your cooperation.