Hello,
I'm wondering, is there a way to use "if empty" on solidworks custom properties?
I ask because, for example, we have a custom property names "Treatment".
If I design a part that does not need any treatment, then on the drawing, the box in the title block simlpy shows:
Treatment:
Essentially, it's just blank, and I find this ambiguous. I would like it to display
Treatment: -
or
Treatment: n/a
Then of course if there is a treatment specified, it would display:
Treatment: 48-50 HRC
or whatever the treatment is.
I thought of 2 ways of doing this:
1) Use a "If empty" type equation on the drawing sheet format. I've never heard of such a functionality, so I don't know how feasible this is.
2) Set the default value for Treatment property to be "n/a", however I don't see any ways of setting a default value in the Custom Property Tab Builder.
Any insights on how to implement either of these solutions would be great.
Thanks.
Samuel,
My experience with custom properties is fairly recent, but it occurs to me that you might open a new part with your template, fill in n/a for the treatment, save the part template, then use this template in the future. If a part requires treatment you would change the n/a to whatever is needed in the part file, and if not, then n/a would show up in the space in the drawing without any action on your part. I'm at home now and don't have SW here to test this, but I assume that values filled in for custom properties will carry over in a part template.