Using IF-ELSE diesel expression within Field in Title Block

Using IF-ELSE diesel expression within Field in Title Block

Anonymous
Not applicable
449 Views
0 Replies
Message 1 of 1

Using IF-ELSE diesel expression within Field in Title Block

Anonymous
Not applicable

I am currently in the process of creating a template for our company to use Fields in our drawings to populate variables that share information between the drawing, title block and/or BOM (e.g. a plate thickness value is referenced on the title block, within the plate drawing and in two places as a portion of a long form part number). I have these fields pulling from Custom Drawing Properties so the information is only entered once. As our plate thickness also corresponds to a particular material (17-7or 410 steel), I am attempting to write a diesel expression (I now have a few hours experience with fields and diesel expressions) for this particular field that will pull the Thickness variable from the Custom Drawing Properties and output either 17-7 or 410 depending whether Thickness is under or over 40. From my research I have come up with two possible variations:

$(if,$(eq,$(getVAR,%thickness),40),"410 S.S. ANNEALED","17-7 S.S. CH950") which does not change based on the Thickness value (yes, I used Regen) but gave me hope since there was no longer an error messages.

And:

$(if,$(>,%<\AcVar CustomDP.THICKNESS \f "%tc1">%,40),"410 S.S. ANNEALED","17-7 S.S. CH950") which will update the material to its current correct output but will not update to any change to the Thickness field (now shows $(if,$(>,40,40),"410 S.S. ANNEALED","17-7 S.S. CH950") indefinitely).

Any suggestions on where I may be going wrong would be appreciated

0 Likes
450 Views
0 Replies
Replies (0)