cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Learn all about PTC Community Badges. Engage with PTC and see how many you can earn! X

How Auto placement of COG using relations, can be done?

VinitKadamITT
6-Contributor

How Auto placement of COG using relations, can be done?

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.


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.
2 REPLIES 2

Hi,

you can create requested csys during measuring. NOTE: I guess that this functionality is not available in any Creo license.

  • on Analysis tab click Mass Properties command
  • click left button with glasses icon to computer mass properties
  • change Quick option to Feature in combobox above button with glasses icon
  • in dialog box activate Feature tab
  • in Datums section check the option to create csys
  • click button with green check mark

MH


Martin Hanák

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


Martin Hanák
Top Tags