Community Tip - Learn all about the Community Ranking System, a fun gamification element of the PTC Community. X
We are creating a simple label family table. Some instances don't need anything written in one of the parameters. We want to simply leave it empty or put in spaces, such that nothing shows up. This isn't possible. The spaces become * characters in the instance. The only way to get around this weird behavior is to have the generic have empty spaces and use the * command (which isn't preferred) in the family table. Please change this behavior - it does not follow the design intent!
See https://support.ptc.com/appserver/cs/view/spr.jsp?n=2246595&source=Case%20Viewer
Thanks!
I've done things like this with relations. For example, a simple version of your situation:
(1) Make two parameters, string type, named "partnoOptionA" and "partnoOptionB".
(2) Use the two parameters as columns in the family table.
(3) Define relations that build the full part number, "partnoFull", using the two options.
partnoFull = "BASENUMBER"
if partnoOptionA != "<NONE>"
partnoFull = partnoFull + "-" + partnoOptionA
endif
if partnoOptionB != "<NONE>"
partnoFull = partnoFull + "-" + partnoOptionB
endif
So, if either of the options are indicated as "<NONE>" in the family table (or whatever you want to use for a no option field), they won't be added to the full part number.
Thanks Kenny. Unfortunately in this case, the parameters are on separate lines. Sometimes there are 2 lines of text and sometimes 1. We want the paramter for the second line to be empty. The only way to do that is to have spaces in the generic and use the * for the instance.