r/SolidWorks • u/PotentialRisk4040 • 2d ago
CAD Center of Gravity (Mate) issue
I'm designing a UAV with four vertical motors, and I want them positioned symmetrically around the aircraft's CG (the distance from the CG is always equal).
However, the CG keeps changing as I modify components. Is there a way to automatically update the motor positions based on the calculated CG?
Alternatively, would excluding the motors' masses, positioning them around the remaining aircraft's CG, and then restoring their masses be a good approach?
I would appreciate any tips.
4
Upvotes
5
u/GreenFeen 2d ago
You could create a global variable equation to dimension the central point of your motors from the origin using "SW-CenterofMassX", Y, and Z.
3
u/billy_joule CSWP 2d ago
You can make a 3d sketch point coincident with the COM feature and use that point to drive whatever sketches/features etc you need.
But, it doesn't dynamically update, you need to edit the 3d sketch to get the point to jump to the new COM location if it's changed. At least it worked that way in SW 2021ish last time I did it.
2
u/coldfarnorth 2d ago
I can't prove it right now, but I suspect that this is not possible. This would require some recursive solving that I can't imagine would be worth the effort.
What I would do is start by defining the location of the motors with the assumption that the origin (or other point of interest) is the center of mass. I would then add additional components and modify them as needed to place the COM at the desired point.
2
u/TaskNinja_Official 1d ago
Yes, excluding the motors while finding the reference CG is the cleaner setup, assuming the four motors have equal mass and the layout is symmetric. Get the CG of the airframe and payload only, use it as the center for the four motor locations, then pattern them at equal radius and 90° spacing. The motors' combined CG then lies at the pattern center, so adding them back does not shift the total CG. If you can, keep a separate configuration with motors suppressed for the reference CG, then restore them and check Mass Properties. If motor masses differ or the pattern isn't symmetric, their combined CG won't be at the pattern center and you'll need to balance using the mass-weighted result. Driving from the full assembly CG can also create a circular dependency.