×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Weight question

Weight question

Weight question

(OP)
One of the fields in my title block is weight in kg. To get the real value of the weight I have to set the measurement options in the part to "meters".

If someone else opens the part to verify a dimension and changes the options to something else, the value in the title block changes.

Anyone has an idea on how to freeze the weight? Or how to get the weight in kg independent of the option setting? Any
help would be greatly appreciated.

Andrew

RE: Weight question

Andrew:

It's not the most technically advanced method, but I have been printing drawing files to pdf format in order to freeze the state at a certain point.

Jeff

RE: Weight question

(OP)
Jeff,

thank you for your answer. It is a good suggestion but it's not exactly what I am looking for.

Andrew

RE: Weight question

Andrew/Jeff,

Instead of publishing pdf's you can create your drawings, save them, then re-open them and select the option "CONVERT TO RAPID-DRAFT" prior to hitting the open button.  What this does is convert the drawing over to the rapid-draft format.  It is still a solidworks drawing file, but the difference is that it no longer seeks to load the model when you access it, similar to opening a drawing in read-only mode.  This way only the graphic info is displayed as saved and system options should not affect anything on the sheet.  One hting to remember though is that when you update a part or assem that the drawing references, you will receive a watermark that states (OUT OF SYNC) at that time you would open the drawing and this time selecting the LOAD MODEL option before clicking the open button.

The other thing is to have other people that are "Checking" dimensions in a part open the documents as read-only.  You can also specify the read-only attribute through windows explorer if you so desire.  this could prevent any unwanted changes to your part docs.

Hope that helps.

Regards,
Jon
jgbena@yahoo.com

RE: Weight question

(OP)
Very good suggestions, Jon. I will give you a star for them. Still, is there any way to get the weight set to kg (or lbs) independent of the settings in the measurement option?

Andrew

RE: Weight question

netshop21

The SolidWorks API can return the mass properties for a part or assembly.

retval = ModelDoc2.GetMassProperties2 ( &status )

or

retval = SldWorks.GetMassProperties ( filePathName, configurationName )

Returns this variant

[ CenterOfMassX, CenterOfMassY, CenterOfMassZ, Volume, Area, Mass, MomXX, MomYY, MomZZ, MomXY, MomZX, MomYZ ]

    Density = ( Mass / Volume )

Consistent with all other API functions, metric units will be returned unless otherwise specified.  This will allow you to convert the results as they are independent of any user settings.

If you have in house capabilities for API programs or a VAR or vendor capable of API programing, this routine would be farely routine.  With some slightly advanced skills it could react to notifications to stay up to date.

I would be happy to assist you with this task if you have trouble with the code.

Bill Briggs, CSWP

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources