Welcome to the Onshape forum! Ask questions and join in the discussions about everything Onshape.

First time visiting? Here are some places to start:
  1. Looking for a certain topic? Check out the categories filter or use Search (upper right).
  2. Need support? Ask a question to our Community Support category.
  3. Please submit support tickets for bugs but you can request improvements in the Product Feedback category.
  4. Be respectful, on topic and if you see a problem, Flag it.

If you would like to contact our Community Manager personally, feel free to send a private message or an email.

Is there a way to get the Center of Mass of a part to show up in the drawing

colin_dalycolin_daly OS Professional Posts: 40 ✭✭

I'd like to dimension the location of the center of mass in a drawing. Is this possible?

Answers

  • MichaelPascoeMichaelPascoe Member Posts: 2,818 PRO

    .

    If the part is made of one consistent material, then you could use Approximate Centroid by @EvanReese
    This will give you a mate connector which you can reference with a sketch or object however you like.

    .


    RENDERCAD
    rendercad.ai - Photorealistic product rendering.

    ▚▞▚▞▚▞▚▞▚
    ________________________________________________________________________
  • EvanReeseEvanReese Member, Mentor Posts: 2,869 PRO

    I'm still kind of creeped out by the fact that the underlying function is called approximateCentroid() and comes with "Warning: This is an approximate value and it is not recommended to use this for modeling purposes that will be negatively affected in case the approximation changes." For showing in a drawing that should be fine.

    Evan Reese
    The Onsherpa | Reach peak Onshape productivity
    www.theonsherpa.com
  • martin_kopplowmartin_kopplow Member Posts: 1,315 PRO

    Why not like this?:

    grafik.png
  • martin_kopplowmartin_kopplow Member Posts: 1,315 PRO
    edited September 2025

    … and if not, there should be a FS that can do that, at least in a part studio: search out the center of mass in a part and place a MC with the part as owner. That'd at least carry through to an assembly and wold be convenient for rotating parts and such. Eventually, it would of course be super helpful if an MC at the center of mass could be created in assemblies.

    EDIT: Found it! I was just being dumb: The FS is not called center of mass but "Center of Gravity".

  • MichaelPascoeMichaelPascoe Member Posts: 2,818 PRO
    edited September 2025

    @martin_kopplow how did you get that to show up? I don't seem to have it. Did you just fake it into your picture?😆
    This is a brand new document, I checked the assembly and part studio, and materials have been assigned.

    image.png

    RENDERCAD
    rendercad.ai - Photorealistic product rendering.

    ▚▞▚▞▚▞▚▞▚
    ________________________________________________________________________
  • martin_kopplowmartin_kopplow Member Posts: 1,315 PRO
    edited September 2025

    @MichaelPascoe

    Photoshop. ;0)

    Though it looks quite natural and one would expect it just there, right? Q.E.D. It might be about time for an enhancement request, then.

    Before doing so, we might need to discuss how his should work and where it should reside.

    • At the above place for it would be the most expected location?
    • Inside the mate connector edit dialog, for it would enable to place an MC at the CG at any time and for any selection of parts in a part studio or in an assembly?

    I think it might be important to have the MC at CG re-calulate after updates to the geometry. That again might be an argument in favour of a FS or a feature tool that could reside near the end of the feature list in a part studio, but where would it live in an assembly?

  • S1monS1mon Member Posts: 4,077 PRO

    For an assembly, it could be an in context "part" - at least until there's ever FS in assemblies.

    Simon Gatrall | Product Development, Engineering, Design, Onshape | Ex- IDEO, PCH, Unagi, Carbon | LinkedIn

  • martin_kopplowmartin_kopplow Member Posts: 1,315 PRO

    Too bad the "part" will most likely be hidden inside bodies in a drawing. Maybe a set of XYZ-aligned sketches? Don't they shine through?

  • Chris_BeckettChris_Beckett Member Posts: 32

    SolidWorks does this. Why doesn't Onshape?

    In a SolidWorks assembly I can calculate Mass Properties. Then there's a button that says Create Center of Mass Feature.

    image.png

    Tick that box, then it adds the Center of Mass as a feature in the feature tree. You can hide it or show it on your assembly.

    image.png

    Then in the drawing, for any view you add you can hide or show the center of mass in that view.

    You can even dimension to it from any other feature.

    image.png


    Would be nice if Onshape had the same thing.

  • Jenny_JohnsonJenny_Johnson Member, Onshape Employees Posts: 11 image

    Is it possible to modify your CF to then place a sketch on the mate connector and a sketch point on its CofM location, which would allow it to be shown in assemblies and drawings

    Jenny E Johnson
    Principal Technical Services Engineer, Onshape
    jjohnson@ptc.com
  • martin_kopplowmartin_kopplow Member Posts: 1,315 PRO

    @Chris_Beckett wrote: " … Then there's a button that says Create Center of Mass Feature."

    I want it! Really. I already needed a CG feature many times already and since I know my old CAD had it, I struggle the more. This is all not about putting a centermak style thingy in a drawing, it is about marking the real and current center of gravity or mass in the model and of course in the drawings. Also, lots of calculations would reference it. For example could a volume of a cutout be driven by the CofM location, to compensate for weight shift. For this reason, it would not be a constant set of coordinates, but a calculated point in space that might even change as design evolves. Think highly dynamic mechanisms or aerospace applications.

  • EvanReeseEvanReese Member, Mentor Posts: 2,869 PRO

    @Jenny_Johnson Sure I just pushed a V6 with a sketch point option.

    Evan Reese
    The Onsherpa | Reach peak Onshape productivity
    www.theonsherpa.com
  • martin_kopplowmartin_kopplow Member Posts: 1,315 PRO

    If we could use the CofM coordinates displayed by the Mass and section properies tool box as measured values in a variable studio, we'd already be a giant step further, for we could drive a mate connector's offset by these:

    grafik.png

    That would open up possibilities to either use that MC for further operations or put a CofM mark upon it for visualisation purposes.

Sign In or Register to comment.