Does anyone know of a method to have SolidWorks automatically spit out a component's centre of gravity location in reference to its assembly's origin, e.g. in a Bill of Materials?
Does anyone know of a method to have SolidWorks automatically spit out a component's centre of gravity location in reference to its assembly's origin, e.g. in a Bill of Materials?
Thanks guys for the responses. However, it didn't solve my problem.
Here's an assembly to explain the problem better.
I'm after the coordinates of the cylinder's and box's CoG in relation to the boat's origin.
cheers
This is one of the uses for the coordinate system tool: Insert>Reference Geometry>Coordinate System.
Add a coordinate system at the boat's reference.
Then you can go to the mass properties, and there is a dropbox called "Output coordinate system". Change that to the one you create for the boat reference. Then "recalculate" and you should be able to find the COG relative to any coordinate system you specify.
Thanks Charles, this works if you edit the component and create the coordinate system and THEN run the mass property on that component. The drop-down list shows only coordinate systems that belongs to the model you are calculating, i.e I can not choose the assembly's origin (unless it is copied in the component) when I am running the mass property of one its components. So it is possible although it requires a lot of manual work, especially if you have large assemblies.
thanks
Howdy,
I've been working on something that might work for you too.
It's not what I would call Automatic, maybe Semi-Automatic.
It creates a macro feature that uses the rebuild (Ctrl-Q) to reset the coordinates the CofG.
Does your machine have Excel on it? If so - which version?
What I have so far seems to work with your model on my machine.
Feel like being a beta tester? :-)
Howdy Richard,
I was wondering if you were able to make the macro work?
If so - was it something like what you were looking for?
Thanks
Hi Tobin
Sorry about the delayed reply, but thanks a lot for your reply.
Unfortunately, it doesn't solve my problem.
I'll try to explain the problem again:
Let's say I have 2 components, 2 cubes with identical dimensions and weights.
They are placed in an assembly, so the coordinates of the CoG of that assembly are x=2, y=0, z=0.
That means that the cubes' respective CoGs are (could be) located at x=3, y=1, z=0, and x=1, y= -1, z=0. This is in relation to the assembly's origin.
It is those 2 latter xyz-coordinates I'd like to have published.
It is only possible to get the total assembly's (2,0,0) coordinates or the individual component's coordinates in relation to that component's origin, which is, if the cube was created symmetrically round the origin it is 0,0,0.
Or maybe you have got the answer behind the "Add Target" button in your macro. I couldn't figure out its intent.
cheers
Howdy,
I think I understand now. You are working at two levels. One level we could call "cubes" and the other level is the next assembly we could call "final assembly".
The macro I sent you will work to produce the CofG w/dimensions feature at the "cubes" level. At this level as you change the cubes the CofG will semi-automatically update.
At the next assembly level "final assembly" you need to create driven dimensions from the macro created CofG in "cubes" to the origin of the "final assembly".
Since we can use the macro to produce the dimensions at the "cubes" level, you would like to automate (make macro) to produce the dimensions at the "final assembly" level.
Am I understanding this correctly?
The "Add Target" button in the macro will not help you. It's just to automate inserting a "Target" part that will show up better than a point in a drawing.
When you say "I'd like to have published" - what form do you mean published? Dimensions or a Table or maybe Excel?
Hope this helps
Richard,
This cannot be done automatically, but there is a macro out there that will add a 3D sketch with a point at the center of gravity. You can then dimension to this point on a drawing.
http://sw.fcsuper.com/index.php?name=UpDownload&req=viewsdownload&sid=5
The only thing you need to be careful of is to recognize that it does not automatically update. You need to re-run the macro every time the center of gravity changes.