<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Using IF-ELSE diesel expression within Field in Title Block in AutoCAD Forum</title>
    <link>https://forums.autodesk.com/t5/autocad-forum/using-if-else-diesel-expression-within-field-in-title-block/m-p/10079622#M85337</link>
    <description>&lt;P&gt;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:&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;$(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.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;And:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;$(if,$(&amp;gt;,%&amp;lt;\AcVar CustomDP.THICKNESS \f "%tc1"&amp;gt;%,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,$(&amp;gt;,40,40),"410 S.S. ANNEALED","17-7 S.S. CH950") indefinitely).&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;Any suggestions on where I may be going wrong would be appreciated&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 12 Feb 2021 21:34:21 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-02-12T21:34:21Z</dc:date>
    <item>
      <title>Using IF-ELSE diesel expression within Field in Title Block</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/using-if-else-diesel-expression-within-field-in-title-block/m-p/10079622#M85337</link>
      <description>&lt;P&gt;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:&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;$(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.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;And:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;$(if,$(&amp;gt;,%&amp;lt;\AcVar CustomDP.THICKNESS \f "%tc1"&amp;gt;%,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,$(&amp;gt;,40,40),"410 S.S. ANNEALED","17-7 S.S. CH950") indefinitely).&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;Any suggestions on where I may be going wrong would be appreciated&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Feb 2021 21:34:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/using-if-else-diesel-expression-within-field-in-title-block/m-p/10079622#M85337</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-02-12T21:34:21Z</dc:date>
    </item>
  </channel>
</rss>

