Inserting "Weight" automatically into a drawing field
Inserting "Weight" automatically into a drawing field
(OP)
I am trying to have the weight or mass automatically insert into a field in my drawing format. I know that you can add a custom property that says "Weight" and link it like: "SW-Mass@0220-2944-01.SLDPRT". But what I was trying to accomplish is having this work behind the scenes and fill in to the field on the drawing automatically. We would like to not have the designer or drafter have to enter this information, but have SW pull it from the material properties. Could anyone assist?? Thank You






RE: Inserting "Weight" automatically into a drawing field
RE: Inserting "Weight" automatically into a drawing field
RE: Inserting "Weight" automatically into a drawing field
RE: Inserting "Weight" automatically into a drawing field
Reread the properties, custom section in the SW Help for details. In particular the To add Mass properties sub-section.
RE: Inserting "Weight" automatically into a drawing field
In the custom properties of the part template we have a column with property name weight, with a value of "SW-Mass@@Default@APD1401.SLDPRT" where apd1401.sldprt is the file name of the part. This was created by linking the mass property to the file name (see Link to Property in help). Then in the template for the drawing border we have a box in the title block for weight. The box has in it $PRPSHEET:"WEIGHT". This automatically puts the weight of the part in that box when the part is imported into the drawing.
This also assumes that your part template has a material defined.
Tom S.
RE: Inserting "Weight" automatically into a drawing field
RE: Inserting "Weight" automatically into a drawing field
RE: Inserting "Weight" automatically into a drawing field
That is exactly what TheTick said to do, he just didn't step you through the process.
RE: Inserting "Weight" automatically into a drawing field
RE: Inserting "Weight" automatically into a drawing field
http://www.EsoxRepublic.com
RE: Inserting "Weight" automatically into a drawing field
"Units are not linked to part or drawing units as set under options. They are dependent on the settings of the Mass Properties tool."
I have been trying to figure out how to use kg in a SW (2004 SP4) BOM instead of grams. I have found the above to be quite true.
This does seem a little insane to me though, this property will rely on a somewhat obscure and easily changed tool setting - users usually alter this setting at times depending on what they might be calculating. Meaning a value in a drawing would be worthless.
If anyone has any good way to deal with this I am all ears
RE: Inserting "Weight" automatically into a drawing field
It is evident that the mass can be linked as mentioned above. You indicate a concern about users changing the settings in the mass properties. Does anyone know a way to lock this or otherwise prevent it?
Maybe another way is to can read what the settings are and use an appropriate adjustment. For instance, if the user changes the settings to grams and you want to display kg, if you can read that the setting is in grams then perhaps you could use an equation to take the mass and divide it by 1000 to get kg. This would likely be another custom property (Mass-kg?) that is calculated from the system mass.
- - -Dennyd