C of G on Origin

Discussion in 'SolidWorks' started by Terry Robb, Aug 18, 2003.

  1. Terry Robb

    Terry Robb Guest

    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
     
    Terry Robb, Aug 18, 2003
    #1
  2. Terry Robb

    Heikki Leivo Guest

    I would now like to further ask if, in a
    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-
     
    Heikki Leivo, Aug 19, 2003
    #2
  3. 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
     
    KCS Development, Aug 19, 2003
    #3
  4. Terry Robb

    Blair Sutton Guest

    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
     
    Blair Sutton, Aug 19, 2003
    #4
  5. Terry Robb

    Heikki Leivo Guest

    With SW2003 and above, moving a solid body with a macro can be
    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-
     
    Heikki Leivo, Aug 19, 2003
    #5
  6. 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?
     
    KCS Development, Aug 20, 2003
    #6
  7. i dont think its COG. i think its center of overall size
     
    Sean Phillips, Aug 20, 2003
    #7
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.