Link the display of a frame in a SW clip to a PDM variable

Hello everyone,

A short SolidWorks/PDM parameterization exercise:

My configuration:
SolidWorks 2023 Premium 2023 SP3
Solidworks PDM 31.3

From now on, we must make classification information appear in our plans (free, confidential, private, etc...)
A PDM variable (CLASSIF) has been added to the file cards
This variable is populated in the 3D via the SmartProperties when the file is created.
This variable is automatically lowered back into the 2D file when it is created.
Blocks (bloc_classif_libre, bloc_classif_confid, etc.)

Currently, these blocks are added by hand by the designers, but the risk of error exists.

Is there a way to link the display of a block to the value of a variable?
If CLASSIF = " free ", then the bloc_classif_libre is displayed, otherwise it remains hidden.

Thank you,

Hello,
For simplicity, I'll make a note pointing to the property mapped to the CLASSIF variable which is hard-coded in the backgrounder with a default value of empty.
Thus, the information would be displayed according to the type of classification.
As far as I know, the display of blocks is not controllable except when playing with macros.

2 Likes

Good solution to @Cyril_f if the note contains only one or two words.

I think unfortunately that @jeromeL probably has more text otherwise he wouldn't have bothered to make blocks.

1 Like

Correct @froussel , the classification notes are unfortunately long. But @Cyril_f gave me an idea.

I'm going to create two variables, one CLASSIVE, and one CLASSIF_TXT. In SmartProperties, I can conditionally control the content of CLASSIF_TXT according to the value of CLASSIF.

1- The designer chooses the value of CLASSIF when creating the 2D
Choice by drop-down list in Smart, Class1 or Clas2 or Class3

2- SmartProperties defines the content of CLASSIF_TXT in the conditional of CLASSIF
ifff($CLASSIF={Class1}|classif text 1|iff($CLASSIF={Class2}|classif text 2|iff($CLASSIF={Class3}|classif text 3|error)))

3- The note points to $PRP: "CLASSIF_TXT"

I'll test it, I'll keep you posted.

2 Likes