<?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 Betreff: Diesel adding an undesired blankspace to string in AutoCAD Forum</title>
    <link>https://forums.autodesk.com/t5/autocad-forum/diesel-adding-an-undesired-blankspace-to-string/m-p/13706639#M351284</link>
    <description>&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Tue, 01 Jul 2025 21:11:31 GMT</pubDate>
    <dc:creator>xiandavis</dc:creator>
    <dc:date>2025-07-01T21:11:31Z</dc:date>
    <item>
      <title>Diesel adding an undesired blankspace to string</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/diesel-adding-an-undesired-blankspace-to-string/m-p/13706604#M351282</link>
      <description>&lt;P&gt;Our company uses the following sheet naming convention:&lt;/P&gt;&lt;P&gt;Dxx detailSheetName&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;where Dxx is a detail number from D1 to D99.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The intent of the below Diesel expression is to pull the Detail number from the Layout tab name for either a single digit or double digit following the D and update the field inside the attribute.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Running the below code on Layout tab "P2 WALKWAY PAD LAYOUT" displays the desired "P2", but with a leading space " P2".&lt;/P&gt;&lt;P&gt;Running the below code on Layout tab "P10 ERRC CONDUIT PENETRATION" displays the desired "P10", but with a leading space " P10".&lt;/P&gt;&lt;LI-CODE lang="general"&gt;$(if, $(eq, $(substr, $(getvar, ctab),4,1), " "), $(substr, $(getvar, ctab),2,2), $(substr, $(getvar, ctab),2,3))&lt;/LI-CODE&gt;&lt;P&gt;Apparently there is an invisible/escape character in the string, as I would expect the below numbers would have produced the desired results:&lt;/P&gt;&lt;P&gt;$(if, $(eq, $(substr, $(getvar, ctab),&lt;FONT color="#FF0000"&gt;3&lt;/FONT&gt;,1), " "), $(substr, $(getvar, ctab),&lt;FONT color="#FF0000"&gt;1&lt;/FONT&gt;,2), $(substr, $(getvar, ctab),&lt;FONT color="#FF0000"&gt;1&lt;/FONT&gt;,3))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestions on how to eliminate the leading blank space character, or at least know where it is coming from? I came up with the syntax after looking at several Diesel examples in the forums.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Jul 2025 20:34:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/diesel-adding-an-undesired-blankspace-to-string/m-p/13706604#M351282</guid>
      <dc:creator>xiandavis</dc:creator>
      <dc:date>2025-07-01T20:34:58Z</dc:date>
    </item>
    <item>
      <title>Betreff: Diesel adding an undesired blankspace to string</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/diesel-adding-an-undesired-blankspace-to-string/m-p/13706628#M351283</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;remove all the unneeded blanks in your Dieselcode!&lt;/P&gt;&lt;P&gt;Means all, except the one between&amp;nbsp;&lt;SPAN&gt;" "&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Try it again..&lt;/P&gt;</description>
      <pubDate>Tue, 01 Jul 2025 20:59:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/diesel-adding-an-undesired-blankspace-to-string/m-p/13706628#M351283</guid>
      <dc:creator>cadffm</dc:creator>
      <dc:date>2025-07-01T20:59:42Z</dc:date>
    </item>
    <item>
      <title>Betreff: Diesel adding an undesired blankspace to string</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/diesel-adding-an-undesired-blankspace-to-string/m-p/13706639#M351284</link>
      <description>&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 01 Jul 2025 21:11:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/diesel-adding-an-undesired-blankspace-to-string/m-p/13706639#M351284</guid>
      <dc:creator>xiandavis</dc:creator>
      <dc:date>2025-07-01T21:11:31Z</dc:date>
    </item>
  </channel>
</rss>

