Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

SW mass properties

Status
Not open for further replies.

vscid

Nuclear
Aug 5, 2007
65
When you have a purchased part in your assembly (directly pulled off the vendor's website), how does SW account for it in its centre of gravity calculations? This could either be a shell model or a regular part.
Can you assign material properties to a shell model?
 
Replies continue below

Recommended for you

You can assign different material properties to solid models, but not surface models (surfaces have no volume). I seem to remember that newer versions of SW have the ability to assign a center of mass and mass value, but I have not sought out that technique (I am using 2006 still). Otherwise you could add an internal volume to the part at a location that would make the center of mass correct. Assign a material that would make the actual mass work out as well.

-Dustin
Professional Engineer
Certified SolidWorks Professional
 
Say I am using all solid models and no surface models.
I do not wish to assign CG value but want SW to calculate it for me. The only thing that I wish to assign is the density. So, if I do mass properties on an assembly with 3 parts, each having different densities, do I expect SW to show me a density which is average of the 3?

 
I would guess an assembly's density = total mass / total volume. The only way to know for certain what SW is up to is experiment. Try some rudimentary experiments with a few simple parts like cubes of varying densities.

I do have a macro for assigning density to multiple components of an assembly. It's old but still works OK if you don't have material properties locked in some other way. It's on my website (see below) under "Freeware".

[bat]Honesty may be the best policy, but insanity is a better defense.[bat]
-SolidWorks API VB programming help
 
I just finished those 'experiments' and you are right.
It is indeed total mass/ total volume.
Which means, i need to ensure that each and every part in my assembly in sub-assembly has the correct mass and hence the correct density. Right?
Problem is I have 500 parts. Will the macro work here?
Looks like there is a 'default' density set on parts which obviously have no 'assigned' density.
Will the macro override the default density?
Or do I somehow make the default density inactive?
I am using '06.
 
Last I tried, the macro was still working in SW2007.

The macro only changes the parts' density property (the one you find under document options). I did use it in SW2006 no problems. I'm not sure how it behaves if there is a material assigned.
 
This macro would not address an assembly with different materials would it? I mean some of my parts are plastic, some aluminum, some stainless etc.
 
Tick,
What macro is that? I just did a quick scour of the usual suspects and didn't find a macro that would traverse an assembly or directory and assign material (or density). I sure thought there was one out there, but I couldn't find it.


-Dustin
Professional Engineer
Certified SolidWorks Professional
 
duh. I just reread your post... nevermind.

-Dustin
Professional Engineer
Certified SolidWorks Professional
 
Usual suspects? Where are you looking? My macro on my website! "Density Manager" allows user to pre-select parts in an assembly and also presents a list of parts in an assembly for selection/deselection. Selected parts will all have same density assigned.

<
[bat]Honesty may be the best policy, but insanity is a better defense.[bat]
-SolidWorks API VB programming help
 
 
Couple new sites to me. I'll have to check them out. Thanks.
 
TheTick,

Does the macro take care of multiple materials or just a single material?
 
Can we assign different maas or densities in a single part file

thankign you
kartik
 
Configurations can be of different densities by assigning different materials, but individual features cannot be assigned different materials/densities.

[cheers]
 
kartikmech,
yes the best way is to assign different properties to different configurations.
 
that means i can have multiple configuration in once single part file.
i could only see one button for the mass properties for the whole part file. how do i then create multiple configuration
 
What version of SW are you using? I am not sure if older versions have config. options.
In any case, try the help files to add multiple configurations.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor