C of G on Origin

I posted once on this newsgroup and asked for a macro that would locate the center of gravity of a part. I was obliged by someone that sent me a macro that created a point at the CG. I would now like to further ask if, in a macro the CG point relocate the part with the CG at the Origin. This would then allow rotation about the CG.

Thanks, Terry Robb

Reply to
Terry Robb
Loading thread data ...

This could be achieved easily by using a macro feature... You would just insert a "relocation" feature, which would move the body to appropriate location. Worth a try!

-h-

Reply to
Heikki Leivo

With SW2003 and above, moving a solid body with a macro can be accomplished with the InsertMoveCopyBody2 command. You simply run this command with the negatives of the values you obtained for the center of gravity. Unless you do this repetitively, it is probably not worth your while to develop the macro. Just goto Tools, Mass Properties to get your CG values, then Insert, Features, Move/Copy, select the solid body, and plug in the negative CG values to move your origin to the CG. To move the solid body back, just suppress or delete the Body-Move/Copy feature.

Kent

Reply to
KCS Development

An alternative would be putting the part in an assembly with just the part and mating the assembly origin to the CG sketch point. Then create your axis of rotation....

Blair

Reply to
Blair Sutton

By using macro feature instead of regular macro, you could take the part body as an input parameter and multiply its translation matrix with inverse values from mass properties. As a result, the macro feature would act like move/copy body-feature, but it would automatically keep the body in a such position that the origin would be in GG.

-h-

Reply to
Heikki Leivo

Back to your original question,

If you go to View, Modify, and leave Rotate About Screen Center unchecked, won't SW rotate about the CG no matter where your model is located? That's how it appears to me. If your trying to center the CG on the screen, then create the point at the CG first and Zoom to Selection, then Z out to the desired magnification. Or am I missing something?

Reply to
KCS Development

i dont think its COG. i think its center of overall size

Reply to
Sean Phillips

PolyTech Forum website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.