CATI Tech Notes has an interesting SolidWorks trick for getting your custom properties to accept values with multiple lines:
Custom properties can be deceptively simple in purpose.Â They can be used for a wide variety of functions.Â One of the most basic of these is quickly inserting values into drawing templates.Â This allows the user to quickly fill in the title block and other areas of a drawing with no direct editing of the sheet format or even the sheet itself.
For those people not familiar with custom properties and how to use them on drawings, I wrote a previous article about how to link custom properties to annotation notes on drawings.Â Also, see SolidWorks Help.Â The remainder of this article will assume familiarity with this function.Â In this article, I wish to discuss the issue of when to use particular sources for the custom properties for the purpose of filling out a title block and other drawing areas.Â I do not present my article as a final word on the issue.Â In fact, I hope to create dialogue on this issue in the comments of this article.Â So first, let me ask some questions.
Should one maintain the values for custom properties on the drawing itself?Â Should one maintain the values on the solid model, and refer to those in the drawing?Â Or, should one maintain some values on the drawing and some from the model?Â If there is a mixed answer, which properties come from where?Â Hereâ€™s what Iâ€™ve found.Â (There is no absolute answer for every situation.)
The solid model is increasing become more important.Â The drawing is the source for far less information in the 3D CAD realm.Â Given this fact, utilizing the solid modelâ€™s meta-information at must as possible can prove to be very advantageous.Â Custom properties are no exception to this.Â Values for custom properties can be established on the solid model and utilized directly on the drawing.Â This is very powerful because it allows the user to enter certain data only once in the model and have it applied parametrically to the drawing.Â When the model changes, so does the drawing.
However, not all custom properties will have the same value in the model and the drawing.Â For example, the originator and origination date may be different between the solid model and drawing.Â There’s also the issue of multiple parts on a drawing (where drawing information isn’t necessarily driven by one or the other or either).Â Â Imagine the use of workarounds to avoid being forced to directly edit the sheet format to account for these scenarios.
Other issues may arise.Â Engineers may not set up models correctly in the first place; with all the required information properly filled out.Â Many engineers tend to create their own part/assembly templates that may not interface with the standard drawing template properly.Â Models or drawings may be from outside sources that have different schemes.Â
In some environments, drawings tend to have more properties than the model due to notation standards.Â Examples of this can be values for the watermark or inspection criteria.Â I looked into this recently at my own company and I found that only 2 of the basic 7 properties are 100% common between the model and drawing.Â I don’t want to create confusion as to where to fill out which properties.Â I also don’t want people editing the sheet format because values from the model is different than the drawing; or still further to have some drawings work differently than other drawings because the method to obtain values was changed via the Properties dialog box.Â So I left the custom properties as a function of the drawing and not the model (the model carries its own information that pertains to it).Â Does one really want to have to open the model every time a text only spec is changed on the drawing?Â Additionally, it is not necessary that a drawing have a model or assembly associated with it at all.Â Where would the values for the drawing come from in that event?Â
There are a lot of rules that must be in place in order for a clean use of solid model properties directly on the drawing.Â Some people call these good practices.Â I just call them rules because at the end of the day it’s 6 one way and 1/2 a dozen another.Â For me, it’s just a matter of having flexibility on how drawings are created and used.
Bottom line, there isnâ€™t a one-size-fits-all solution in the case of linking to custom properties from the solid model verses maintaining them on the drawing.Â When setting up a system, it is best to determine what is most beneficial for that particular system.Â I suspect in most cases, there will be a mix between which custom properties on drawings are linked to the solid model, and which are controlled on the drawing itself.
Some macros that allow copying of properties between files:Â Rigid Custom Properties, Migrate Properties,Â and FixProperties.Â Websites to explore for more of these types of macros are Lenny’s SolidWorks Resources, Lorono’s SolidWorks Resources, and Esox Republic.
SolidWorks has something called custom properties. Many programs within Windows have file formats that include properties which allow the user to include some general information about the file without affecting its actual content. For most of these programs, there is a standard short list that includes fields like Author, Keywords, Comments, Title, and Subject. There is also a method that allows the user to create their own custom properties.
SolidWorks has simplified the process to create custom properties, and allows its users to utilize their values within the document via linked annotation notes. The custom properties are available under pulldown File>Properties>Custom tab. There are even shortcuts included that allows the user to create links in these fields to attributes of the document itself.
The advantage in using custom properties is that one can link to their values in annotation notes. This allows for automatic updates to annotation notes without having to edit them directly.
Here are the instructions to link a note to a property. (These instructions are from SolidWorks Help which can be found by searching titles only for “Link to Property”. For more detailed information, please see the Help.)
Start an annotation note.
In the Note PropertyManager (left pane) choose this icon:
In the Note Properties dialog box, choose this icon:
- Select the radial button that identifies the file from where the values will be linked. The most common choices are either the “Current Document” or “Model in view specified in the sheet properties” (for drawings).
- View the available custom properties.
- Choose one and then click the OK button.
- This will add a tag to your annotation note that looks something like $PRP:”<property name>”. The annotation note itself will display the value of that custom property.
This can be used to automatically fill in data fields on drawing blocks based on custom properties and document properties in the model. It can also allow the fields to be filled in from a macro that is designed to provide those values. Linking annotation notes to custom properties can save a lot of time and reduce repeatitive drawing activies. However, before committing completely to using links to custom properties on drawings, one should look into the methods and reasons for this. They should also consider the pros and cons of each. I will go into detail about when and how to use links to custom properties on drawings in a near future article.