<?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 Ingore Empty Edit Boxes in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/ingore-empty-edit-boxes/m-p/5840961#M137861</link>
    <description>&lt;P&gt;I've had some success but this is not working.&lt;/P&gt;&lt;P&gt;I have a few edit boxes and with the default set to "" like below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;: edit_box {key = "fnct1"; label = "Function 1 "; edit_width = 10; value = "";}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to ingore the boxes that have no value and if they do have value run the program.&lt;/P&gt;&lt;P&gt;I've tried IF and COND but not having success it seams to pass over the check. and run&amp;nbsp;the program&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(setq fnt1(get_tile "fnct1"))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(if (/= fnct1 "")&lt;BR /&gt;&amp;nbsp;(progn&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (command "_.Rename" "_Layer" "FUNCTION01" fnt1)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (command "_.Layer" "_Color" "BLUE" fnt1 "")&lt;BR /&gt;&amp;nbsp; );end progn&lt;BR /&gt;&amp;nbsp;);end if&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; (cond&lt;BR /&gt;&amp;nbsp;&amp;nbsp; ((= fnct1 t)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (command "_.Rename" "_Layer" "FUNCTION01" fnt1)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (command "_.Layer" "_Color" "BLUE" fnt1 "")&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; );end 1st cond&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; ((= fnct1 f) nil)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; (princ)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; );end Cond&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 01 Oct 2015 17:25:30 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-10-01T17:25:30Z</dc:date>
    <item>
      <title>Ingore Empty Edit Boxes</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/ingore-empty-edit-boxes/m-p/5840961#M137861</link>
      <description>&lt;P&gt;I've had some success but this is not working.&lt;/P&gt;&lt;P&gt;I have a few edit boxes and with the default set to "" like below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;: edit_box {key = "fnct1"; label = "Function 1 "; edit_width = 10; value = "";}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to ingore the boxes that have no value and if they do have value run the program.&lt;/P&gt;&lt;P&gt;I've tried IF and COND but not having success it seams to pass over the check. and run&amp;nbsp;the program&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(setq fnt1(get_tile "fnct1"))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(if (/= fnct1 "")&lt;BR /&gt;&amp;nbsp;(progn&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (command "_.Rename" "_Layer" "FUNCTION01" fnt1)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (command "_.Layer" "_Color" "BLUE" fnt1 "")&lt;BR /&gt;&amp;nbsp; );end progn&lt;BR /&gt;&amp;nbsp;);end if&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; (cond&lt;BR /&gt;&amp;nbsp;&amp;nbsp; ((= fnct1 t)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (command "_.Rename" "_Layer" "FUNCTION01" fnt1)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (command "_.Layer" "_Color" "BLUE" fnt1 "")&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; );end 1st cond&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; ((= fnct1 f) nil)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; (princ)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; );end Cond&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Oct 2015 17:25:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/ingore-empty-edit-boxes/m-p/5840961#M137861</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-10-01T17:25:30Z</dc:date>
    </item>
    <item>
      <title>Re: Ingore Empty Edit Boxes</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/ingore-empty-edit-boxes/m-p/5841018#M137862</link>
      <description>&lt;P&gt;Not sure if this is a typo but you have this code:&lt;/P&gt;&lt;P&gt;(setq fnt1(get_tile "fnct1"))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But you are testing:&lt;/P&gt;&lt;P&gt;if (/= fnct1 "")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You should be testing:&lt;/P&gt;&lt;P&gt;if (/= fnt1 "")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="MsoNormal"&gt;&lt;A href="http://apps.exchange.autodesk.com/ACD/en/Detail/Index?id=appstore.exchange.autodesk.com%3aareaobjectlink_windows32and64%3aen" target="_blank"&gt;Area Object Link&lt;/A&gt; | &lt;A href="https://apps.exchange.autodesk.com/ACD/en/Detail/Index?id=appstore.exchange.autodesk.com%3addattmod_windows32and64%3aen" target="_blank"&gt;Attribute Modifier&lt;/A&gt; | &lt;A href="http://apps.exchange.autodesk.com/ACD/en/Detail/Index?id=appstore.exchange.autodesk.com%3addsetup_windows32and64%3aen" target="_blank"&gt;Dwg Setup&lt;/A&gt; | &lt;A href="https://apps.exchange.autodesk.com/ACD/en/Detail/Index?id=appstore.exchange.autodesk.com%3addcalc_windows32and64%3aen" target="_blank"&gt;Feet-Inch Calculator&lt;/A&gt;&lt;SPAN style="font-family: Arial,sans-serif; text-shadow: auto;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;A href="https://apps.exchange.autodesk.com/ACD/en/Detail/Index?id=appstore.exchange.autodesk.com%3alayerapps_windows32and64%3aen" target="_blank"&gt;Layer Apps&lt;/A&gt; | &lt;A href="https://apps.exchange.autodesk.com/ACD/en/Detail/Index?id=appstore.exchange.autodesk.com%3addlist_windows32and64%3aen" target="_blank"&gt;List on Steroids&lt;/A&gt; | &lt;A href="https://apps.exchange.autodesk.com/ACD/en/Detail/Index?id=appstore.exchange.autodesk.com%3addzmscl_windows32and64%3aen" target="_blank"&gt;VP Zoom Scales&lt;/A&gt; |&lt;A href="https://apps.exchange.autodesk.com/ACD/en/Home/Index" target="_blank"&gt;Exchange App Store&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Oct 2015 17:57:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/ingore-empty-edit-boxes/m-p/5841018#M137862</guid>
      <dc:creator>paullimapa</dc:creator>
      <dc:date>2015-10-01T17:57:25Z</dc:date>
    </item>
    <item>
      <title>Re: Ingore Empty Edit Boxes</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/ingore-empty-edit-boxes/m-p/5841061#M137863</link>
      <description>&lt;P&gt;Not a typo&amp;nbsp;I thought I need to look at the edit box value of fnct1 not the set value of fnt1.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Oct 2015 18:18:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/ingore-empty-edit-boxes/m-p/5841061#M137863</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-10-01T18:18:40Z</dc:date>
    </item>
    <item>
      <title>Re: Ingore Empty Edit Boxes</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/ingore-empty-edit-boxes/m-p/5841115#M137864</link>
      <description>&lt;P&gt;Paul,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to run a check for a layer and if that layer is missing I want the whole program to end.&lt;/P&gt;&lt;P&gt;I have this to run before the main program starts, it works but it still runs the program after clicking ok at the alert.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(defun lchk()&lt;/P&gt;&lt;P&gt;&amp;nbsp; (if (not (tblsearch "layer" "FUNCTION01"))&lt;/P&gt;&lt;P&gt;&amp;nbsp; (progn&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; (alert (princ "You cannot proceed because function layers are not loaded."))&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; (done_dialog)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; ); progn&lt;/P&gt;&lt;P&gt;&amp;nbsp; ); if&lt;/P&gt;&lt;P&gt;); end defun&lt;/P&gt;</description>
      <pubDate>Thu, 01 Oct 2015 18:56:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/ingore-empty-edit-boxes/m-p/5841115#M137864</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-10-01T18:56:22Z</dc:date>
    </item>
    <item>
      <title>Re: Ingore Empty Edit Boxes</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/ingore-empty-edit-boxes/m-p/5841125#M137865</link>
      <description>&lt;P&gt;I'm not sure where exactly you are incorporating this code.&amp;nbsp; If it's done before the dialog box is called, you also would not need this line: (done_dialog).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also the rest of the code should be incorporated in the else part of the if code test for example:&lt;/P&gt;&lt;P&gt;(defun lchk()&lt;/P&gt;&lt;P&gt;&amp;nbsp; (if (not (tblsearch "layer" "FUNCTION01"))&lt;/P&gt;&lt;P&gt;&amp;nbsp; (progn&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; (alert (princ "You cannot proceed because function layers are not loaded."))&lt;BR /&gt;&amp;nbsp;&amp;nbsp; ); progn&lt;/P&gt;&lt;P&gt;&amp;nbsp; (progn&amp;nbsp; ; run rest of code here&lt;/P&gt;&lt;P&gt;&amp;nbsp; )&lt;/P&gt;&lt;P&gt;&amp;nbsp; ); if&lt;/P&gt;&lt;P&gt;); end defun&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="MsoNormal"&gt;&lt;A href="http://apps.exchange.autodesk.com/ACD/en/Detail/Index?id=appstore.exchange.autodesk.com%3aareaobjectlink_windows32and64%3aen" target="_blank"&gt;Area Object Link&lt;/A&gt; | &lt;A href="https://apps.exchange.autodesk.com/ACD/en/Detail/Index?id=appstore.exchange.autodesk.com%3addattmod_windows32and64%3aen" target="_blank"&gt;Attribute Modifier&lt;/A&gt; | &lt;A href="http://apps.exchange.autodesk.com/ACD/en/Detail/Index?id=appstore.exchange.autodesk.com%3addsetup_windows32and64%3aen" target="_blank"&gt;Dwg Setup&lt;/A&gt; | &lt;A href="https://apps.exchange.autodesk.com/ACD/en/Detail/Index?id=appstore.exchange.autodesk.com%3addcalc_windows32and64%3aen" target="_blank"&gt;Feet-Inch Calculator&lt;/A&gt;&lt;SPAN style="font-family: Arial,sans-serif; text-shadow: auto;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;A href="https://apps.exchange.autodesk.com/ACD/en/Detail/Index?id=appstore.exchange.autodesk.com%3alayerapps_windows32and64%3aen" target="_blank"&gt;Layer Apps&lt;/A&gt; | &lt;A href="https://apps.exchange.autodesk.com/ACD/en/Detail/Index?id=appstore.exchange.autodesk.com%3addlist_windows32and64%3aen" target="_blank"&gt;List on Steroids&lt;/A&gt; | &lt;A href="https://apps.exchange.autodesk.com/ACD/en/Detail/Index?id=appstore.exchange.autodesk.com%3addzmscl_windows32and64%3aen" target="_blank"&gt;VP Zoom Scales&lt;/A&gt; |&lt;A href="https://apps.exchange.autodesk.com/ACD/en/Home/Index" target="_blank"&gt;Exchange App Store&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Oct 2015 19:05:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/ingore-empty-edit-boxes/m-p/5841125#M137865</guid>
      <dc:creator>paullimapa</dc:creator>
      <dc:date>2015-10-01T19:05:42Z</dc:date>
    </item>
  </channel>
</rss>

