Show weight of models (parts or assemblies) on drawing documents
Show weight of models (parts or assemblies) on drawing documents
(OP)
I need to show weight of models in my drawing documents. They can be part models or assemblies models. I know I can put the following property in my sheet format to show part weight in a part drawing:
"SW-Mass@$PRP:"SW-File Name".SLDPRT"
I also know that I can put the following property in my sheet format to show assembly weight in an assembly drawing:
"SW-Mass@$PRP:"SW-File Name".SLDASM"
My problem is that I use same sheet format for both part drawing and assembly drawing. How do I show weight of models on my drawing without knowing whether the model in the drawing is part model or assembly model. I know I show weight of models through weight custom property of parts and assemblies. But is there a way that I can show weight without using weight custom property?
Thanks,
Alex
"SW-Mass@$PRP:"SW-File Name".SLDPRT"
I also know that I can put the following property in my sheet format to show assembly weight in an assembly drawing:
"SW-Mass@$PRP:"SW-File Name".SLDASM"
My problem is that I use same sheet format for both part drawing and assembly drawing. How do I show weight of models on my drawing without knowing whether the model in the drawing is part model or assembly model. I know I show weight of models through weight custom property of parts and assemblies. But is there a way that I can show weight without using weight custom property?
Thanks,
Alex






RE: Show weight of models (parts or assemblies) on drawing documents
allowing the Note specification: 'Weight: $PRPSHEET:"Weight"'. See 'Link to Property' HELP article for complete explanation.
This approach yields Weight for either Part or Assembly.
RE: Show weight of models (parts or assemblies) on drawing documents
Thanks for your quick reply. But this approach requires that "weight" custom property be created for every part and assembly model.
We have thousands of models. It is not practical to go through all of them to add "weight" custom property. Or, is adding "weight" custom property to part or assembly necessary?
Is there a better way to display SW-Mass in drawing sheet formats shared by both part and assembly drawings?
Thanks,
Alex
RE: Show weight of models (parts or assemblies) on drawing documents
Look into using a macro to populate all of your parts / assemblies with the weight property. Start by looking at http://www.lennyworks.com/solidworks/
The difficult task will be to create the field in all of your drawings to display the property.
RE: Show weight of models (parts or assemblies) on drawing documents
No, I do not need to create the field in all of my drawing. This info (weight) is in drawing sheet formats. I can just reload sheet formats.
Thanks,
Alex
RE: Show weight of models (parts or assemblies) on drawing documents
thread559-169912
With Propa-Gator, you can propagate properties to SW documents. You can also switch sheet formats to one which has the correct property link.
The free version will only handle 5 documents at a time, but the paid-for version does not have that limit.
RE: Show weight of models (parts or assemblies) on drawing documents
Thanks. But adding mass property to BOM does not help me. We would like to show weight of a part or an assembly model on drawing through sheet formats.
Alex
RE: Show weight of models (parts or assemblies) on drawing documents
RE: Show weight of models (parts or assemblies) on drawing documents
I have weight information already as follows:
"SW-Mass@$PRP:"SW-File Name".SLDPRT"
or
"SW-Mass@$PRP:"SW-File Name".SLDASM"
My problem is how do I show them on drawing title block via SW sheet formats. How do sheet formats know if a drawing contains views of part model or assembly model?
Thanks,
Alex
Thanks,
RE: Show weight of models (parts or assemblies) on drawing documents
It simply links the "Weight" property of a document to the annotation.
RE: Show weight of models (parts or assemblies) on drawing documents
Might help a little.
Chris
SolidWorks 06 4.1/PDMWorks 06
AutoCAD 06
ctopher's home (updated 10-27-06)
RE: Show weight of models (parts or assemblies) on drawing documents
I am trying to link an annotation on a drawing (sheet format) to SW system-defined property not a custom property (weight) of the document.
Is there a way to link an annotation on a drawing (sheet format) to one of the following two system-defined properties?
"SW-Mass@$PRP:"SW-File Name".SLDPRT"
"SW-Mass@$PRP:"SW-File Name".SLDASM"
Thanks,
Alex
RE: Show weight of models (parts or assemblies) on drawing documents
1) When you are creating the annotation to link, click on the Link to Property icon (the chain-link with the hand).
2) Select the Model in view specified in sheet properties option.
3) Click on the chevron to access the drop-down list of properties available and select Weight.
4) Click OK and close the annotation.
The weight/mass should now be visible in the annotation.
If the Weight property does not exist in the part/assy it will need to be added first using Propa-Gator or something similar.
RE: Show weight of models (parts or assemblies) on drawing documents
$PRP:"SW-File Name"
evaluates to the name of the drawing document, not the referenced model. Therefore, this only works if the referenced model file name (w/o extension) is the same as the name of the drawing file. For example, if "Part1.SLDPRT" is a part file and you make a drawing of it and save it with any other name ("Part1A.SLDDRW", "DwgOfPart1.SLDDRW", etc) the link will not work. At the very least, you should change to
"SW-Mass@$PRPSHEET:"SW-File Name".SLDPRT" (and .SLDASM).
$PRPSHEET:"SW-File Name" will return the name of the file referenced by the drawing rather than the name of the drawing file.
What you're doing is a sort of "nested" evaluation which, while it appears to work, I think is sort-of undocumented and unsupported. I think you've pretty much got two options here. One would be to add a "WEIGHT" custom property to all your parts and assemblies. This is what has already been suggested by pretty much everyone who's already posted. Then your drawing note will be:
$PRPSHEET:"WEIGHT"
This would probably be my preferred direction. If you have some programming skills it would be easy to write a macro in Excel, VBScript, using DSOFILE.DLL (google it) to do this for all your existing files. Or, as CBL mentioned, PropaGator can do it with no requirement for programming experience. That property can also be added to your part/assembly templates so that all future documents will have it.
The other option would be to have two different sheet formats, one for parts and one for assemblies. ession:
$PRP:"SW-File Name"
evaluates to the name of the drawing document, not the referenced model. Therefore, this only works if
RE: Show weight of models (parts or assemblies) on drawing documents
RE: Show weight of models (parts or assemblies) on drawing documents
I think adding weight custom property is not the best way to show weight on drawing. SW has a system-defined property already for SW-Mass. Drawings should the weight based on the system-defined property (SW-Mass).
Just as you mentioned, I can use two sets of sheet formats using the following properties:
"SW-Mass@$PRPSHEET:"SW-File Name".SLDPRT"
"SW-Mass@$PRPSHEET:"SW-File Name".SLDASM"
The only problem is that I have to maintain two set of sheet formats.
You are right that $PRP:"SW-File Name" evaluates to the name of the drawing document, not the referenced model. So, I should use $PRPSHEET rather than $PRP. I create one drawing for each and every part and assembly. Drawings have same file names as the models.
Thanks,
Alex
RE: Show weight of models (parts or assemblies) on drawing documents