Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X
Using relations, I am trying to place coordinate system or point at Centre of gravity of the part. As I change the part dimensions, the COG changes & I want to move the placed co ordinate system or point automatically. I used relations
$D13 = mp_cg_x("","CS1","")
$D14 = mp_cg_y("","CS1","")
$D15 = mp_cg_z("","CS1","")
$D16 = mp_cg_x("","CS1","")
$D17 = mp_cg_y("","CS1","")
$D18 = mp_cg_z("","CS1","")
but nigher coordinate system nor point getting placed correctly at the center of gravity of the part.
Eventhough I have maintained congig .pro option "mass_property_calculate" as "automatic".
Find attached file "cog_p1.prt.5" for details & your reference trials.
Hi,
you can create requested csys during measuring. NOTE: I guess that this functionality is not available in any Creo license.
MH
Hi,
CG coordinates are related to default csys.
Use following relations:
$D13 = mp_cg_x("","CS0","")
$D14 = mp_cg_y("","CS0","")
$D15 = mp_cg_z("","CS0","")
$D16 = mp_cg_x("","CS0","")
$D17 = mp_cg_y("","CS0","")
$D18 = mp_cg_z("","CS0","")
MH