<?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 Enabling and Disabling Tiles in DCL in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/enabling-and-disabling-tiles-in-dcl/m-p/7967339#M105509</link>
    <description>Dear pbejse,&lt;BR /&gt;Can you please check my attached lisp and DCL file .... It also has the same problem not working for first time.. but ok in 2nd time...&lt;BR /&gt;&lt;BR /&gt;when selecting radio button "yes", edit box "clear height" must highlight but it's not.. Hope you help definitely..</description>
    <pubDate>Sat, 28 Apr 2018 18:33:59 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-04-28T18:33:59Z</dc:date>
    <item>
      <title>Enabling and Disabling Tiles in DCL</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/enabling-and-disabling-tiles-in-dcl/m-p/7967339#M105509</link>
      <description>Dear pbejse,&lt;BR /&gt;Can you please check my attached lisp and DCL file .... It also has the same problem not working for first time.. but ok in 2nd time...&lt;BR /&gt;&lt;BR /&gt;when selecting radio button "yes", edit box "clear height" must highlight but it's not.. Hope you help definitely..</description>
      <pubDate>Sat, 28 Apr 2018 18:33:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/enabling-and-disabling-tiles-in-dcl/m-p/7967339#M105509</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-04-28T18:33:59Z</dc:date>
    </item>
    <item>
      <title>Re: Enabling and Disabling Tiles in DCL</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/enabling-and-disabling-tiles-in-dcl/m-p/7967469#M105510</link>
      <description>&lt;P&gt;This style of coding is just a nightmare. It would be impossible to edit and maintain. I don't have the time, nor patience to go through such code, but i can give you some general advice.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;- when you have repeating actions, you are better off creating a list of variables and apply the action in a loop. Or you can create a function, that accepts a list as an input, or use mapcar and lambda if you don't need a function&lt;BR /&gt;&lt;BR /&gt;- "cond" is used when you have multiple options to choose from. When you have only one option, you should use "if"&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;- shorten the code by removing unnecessary lines:&lt;BR /&gt;(action_tile "rbd" "(setq rbd $value)")&lt;BR /&gt;(setq rbd (atof rbd))&lt;/P&gt;&lt;P&gt;can be written as:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;(action_tile "rbd" "(setq rbd (atof $value))")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;- localize your variables and give them meaningfull names (el51 and p92 mean nothing to me in the ocean of variables, which makes future edits harder)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;- save and restore user settings, when you need to change them (snap, ortho ...)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;And again, most importantly, learn how to use loops. If you have the same operation over and over again, or even similar operations, you can often group them in a single loop. It would greatly reduce the size of your code and make it editable. I'm sure that your 730 lines of code can be shrunk to 30-40 lines.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 28 Apr 2018 21:31:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/enabling-and-disabling-tiles-in-dcl/m-p/7967469#M105510</guid>
      <dc:creator>doaiena</dc:creator>
      <dc:date>2018-04-28T21:31:19Z</dc:date>
    </item>
    <item>
      <title>Re: Enabling and Disabling Tiles in DCL</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/enabling-and-disabling-tiles-in-dcl/m-p/7968093#M105511</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1166654"&gt;@doaiena&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;This style of coding is just a nightmare. It would be impossible to edit and maintain. I don't have the time, nor patience to go through such code..&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1166654"&gt;@doaiena&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;Thank you for your&amp;nbsp;valuable input and suggestions.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Notice that other&amp;nbsp;posters are just asking for a lisp code without even trying to write one, so don't be too hard on the OP&amp;nbsp;&amp;nbsp;doaien.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As for the OP,&amp;nbsp;please be patient and try not to double post,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 29 Apr 2018 16:22:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/enabling-and-disabling-tiles-in-dcl/m-p/7968093#M105511</guid>
      <dc:creator>pbejse</dc:creator>
      <dc:date>2018-04-29T16:22:32Z</dc:date>
    </item>
    <item>
      <title>Re: Enabling and Disabling Tiles in DCL</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/enabling-and-disabling-tiles-in-dcl/m-p/7968105#M105512</link>
      <description>&lt;P&gt;It wasn't my intention to be hard on the OP. I'm sorry if it sounded that way. My frustration was aimed at the style of coding. I myself was doing the same thing when i started coding and i've wasted countless hours of my life trying to maintain that type of code.&lt;/P&gt;&lt;P&gt;I applaud&amp;nbsp;@Anonymous's effort and i wanted to give some advices on&amp;nbsp;how to change his style of coding.&lt;/P&gt;</description>
      <pubDate>Sun, 29 Apr 2018 16:33:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/enabling-and-disabling-tiles-in-dcl/m-p/7968105#M105512</guid>
      <dc:creator>doaiena</dc:creator>
      <dc:date>2018-04-29T16:33:40Z</dc:date>
    </item>
    <item>
      <title>Re: Enabling and Disabling Tiles in DCL</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/enabling-and-disabling-tiles-in-dcl/m-p/7968149#M105513</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1166654"&gt;@doaiena&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;It wasn't my intention to be hard on the OP...&amp;nbsp; i wanted to give some advices on&amp;nbsp;how to change his style of coding.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;That's good to know.&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="thumbsup.gif" style="width: 25px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/51280iDAD15A9028FDE63A/image-size/large?v=v2&amp;amp;px=999" role="button" title="thumbsup.gif" alt="thumbsup.gif" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 29 Apr 2018 17:11:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/enabling-and-disabling-tiles-in-dcl/m-p/7968149#M105513</guid>
      <dc:creator>pbejse</dc:creator>
      <dc:date>2018-04-29T17:11:45Z</dc:date>
    </item>
    <item>
      <title>Re: Enabling and Disabling Tiles in DCL</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/enabling-and-disabling-tiles-in-dcl/m-p/7968209#M105514</link>
      <description>Thank you so much... It's my first lisp with dialogue boxes...In lisp count it is number 3 so please understand I wanna learn everything step by step slowly and steadily that is the only reason... Thank you so much for ur suggestions and hope you help me a lot&lt;BR /&gt;in future</description>
      <pubDate>Sun, 29 Apr 2018 18:51:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/enabling-and-disabling-tiles-in-dcl/m-p/7968209#M105514</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-04-29T18:51:31Z</dc:date>
    </item>
    <item>
      <title>Re: Enabling and Disabling Tiles in DCL</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/enabling-and-disabling-tiles-in-dcl/m-p/7968212#M105515</link>
      <description>Can I really shrink that code into 30 to 40lines... Ohh no I definitely need ur advice...</description>
      <pubDate>Sun, 29 Apr 2018 18:57:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/enabling-and-disabling-tiles-in-dcl/m-p/7968212#M105515</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-04-29T18:57:05Z</dc:date>
    </item>
    <item>
      <title>Re: Enabling and Disabling Tiles in DCL</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/enabling-and-disabling-tiles-in-dcl/m-p/7968714#M105516</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1166654"&gt;@doaiena&lt;/a&gt;&amp;nbsp;Please, tell me the solution for my problem and give some ideas.. If you don't mind...I stopped at my problem.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Apr 2018 05:49:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/enabling-and-disabling-tiles-in-dcl/m-p/7968714#M105516</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-04-30T05:49:24Z</dc:date>
    </item>
    <item>
      <title>Re: Enabling and Disabling Tiles in DCL</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/enabling-and-disabling-tiles-in-dcl/m-p/7969085#M105517</link>
      <description>&lt;P&gt;Hi, I've tried that make it work. You'll never short it down to 40 lines. Maybe 200. The drawing is too complex.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-&amp;nbsp; fix your program, there is a lot of places where you compare string to real. Eg.&lt;/P&gt;&lt;P&gt;&amp;nbsp;(COND ((= EBD &lt;STRONG&gt;"16"&lt;/STRONG&gt;) (SETQ OST 230) (SETQ OB 70)))&lt;/P&gt;&lt;P&gt;16 must be real or integer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- Be aware that a dividing between two integers is still integer. (/ 10 2) = 4 !! In most cases in your program you have at least one real. So you're good to go.&amp;nbsp; But if you're not sure, better make the integer real: (/ var 2.) (see the dot, now this is a real and you're save). This&amp;nbsp;(&lt;STRONG&gt;FLOAT&lt;/STRONG&gt;(/ WIDTH 2)) is unnecesary&amp;nbsp;since the width is a real: (SETQ WIDTH (&lt;STRONG&gt;ATOF&lt;/STRONG&gt; WIDTH)). So 2 &lt;STRONG&gt;can&lt;/STRONG&gt; be an integer, but I usually use 2. anyway - no need to ever thing about it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- Since you have such a monster DCL to input your data, you may consinder to&amp;nbsp;adjust your program to allow a "testing" mode to&amp;nbsp;be possible run without dcl.&lt;/P&gt;&lt;P&gt;eg.&amp;nbsp;&lt;/P&gt;&lt;P&gt;(or EBD&amp;nbsp; ; if you cancel DCL (= nil)&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;(setq EBD "40"))&amp;nbsp; ; set&amp;nbsp;EBD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- you're using the (cond) function wrong way. You may use the (or) function, or better the (member). Sorry for a screenshot, I've been experiencing some difficulties.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/494869i9386168A349752A3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- If the program works for you, I would probrably not bother to re-write it. But if I do, I would probably pick 5 major points and all the parts calculate using just those. And you should solve one part after another and clearly separate it (describe).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- as a programmer, you should test the input values and not allow values out of valid range!!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- sorry to not answering your question (don't know dcl much)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Apr 2018 10:09:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/enabling-and-disabling-tiles-in-dcl/m-p/7969085#M105517</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2018-04-30T10:09:08Z</dc:date>
    </item>
    <item>
      <title>Re: Enabling and Disabling Tiles in DCL</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/enabling-and-disabling-tiles-in-dcl/m-p/7969159#M105518</link>
      <description>&lt;P&gt;I didn't go through the whole code, but mostly the DCL part. I've also set default values, so if the others want to help you with the code, they can get it started easily.&lt;/P&gt;&lt;P&gt;Have in mind that the variables are still NOT localized and there is no error trap.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Apr 2018 10:31:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/enabling-and-disabling-tiles-in-dcl/m-p/7969159#M105518</guid>
      <dc:creator>doaiena</dc:creator>
      <dc:date>2018-04-30T10:31:08Z</dc:date>
    </item>
    <item>
      <title>Re: Enabling and Disabling Tiles in DCL</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/enabling-and-disabling-tiles-in-dcl/m-p/7969388#M105519</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1166654"&gt;@doaiena&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;I didn't go through the whole code, but mostly the DCL part. I've also set default values, so if the others want to help you with the code, they can get it started easily....&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Nice work&amp;nbsp;doaiena.&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="beer.gif" style="width: 66px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/53150iEF69EE3E32355AEF/image-size/large?v=v2&amp;amp;px=999" role="button" title="beer.gif" alt="beer.gif" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Apr 2018 12:24:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/enabling-and-disabling-tiles-in-dcl/m-p/7969388#M105519</guid>
      <dc:creator>pbejse</dc:creator>
      <dc:date>2018-04-30T12:24:19Z</dc:date>
    </item>
    <item>
      <title>Re: Enabling and Disabling Tiles in DCL</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/enabling-and-disabling-tiles-in-dcl/m-p/7969507#M105520</link>
      <description>&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1166654"&gt;@doaiena&lt;/a&gt; thank you so much...I will try it..</description>
      <pubDate>Mon, 30 Apr 2018 13:19:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/enabling-and-disabling-tiles-in-dcl/m-p/7969507#M105520</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-04-30T13:19:46Z</dc:date>
    </item>
    <item>
      <title>Re: Enabling and Disabling Tiles in DCL</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/enabling-and-disabling-tiles-in-dcl/m-p/7972314#M105521</link>
      <description>&lt;P&gt;So how did it go&amp;nbsp;deepakcad15? Did it work for you?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 May 2018 16:56:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/enabling-and-disabling-tiles-in-dcl/m-p/7972314#M105521</guid>
      <dc:creator>pbejse</dc:creator>
      <dc:date>2018-05-01T16:56:45Z</dc:date>
    </item>
    <item>
      <title>Re: Enabling and Disabling Tiles in DCL</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/enabling-and-disabling-tiles-in-dcl/m-p/7974017#M105522</link>
      <description>&lt;P&gt;NOPE..&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I wanna disable clear height tile, when selecting NO radio button that's not working ... Initially that was only problem...&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 May 2018 11:49:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/enabling-and-disabling-tiles-in-dcl/m-p/7974017#M105522</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-05-02T11:49:46Z</dc:date>
    </item>
    <item>
      <title>Re: Enabling and Disabling Tiles in DCL</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/enabling-and-disabling-tiles-in-dcl/m-p/7974139#M105523</link>
      <description>&lt;P&gt;Here is a quick fix for that.&lt;/P&gt;</description>
      <pubDate>Wed, 02 May 2018 12:50:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/enabling-and-disabling-tiles-in-dcl/m-p/7974139#M105523</guid>
      <dc:creator>doaiena</dc:creator>
      <dc:date>2018-05-02T12:50:50Z</dc:date>
    </item>
    <item>
      <title>Re: Enabling and Disabling Tiles in DCL</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/enabling-and-disabling-tiles-in-dcl/m-p/7974491#M105524</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous wrote:&lt;BR /&gt;
&lt;P&gt;NOPE..&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I wanna disable clear height tile, when selecting NO radio button that's not working ... Initially that was only problem...&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;When working with mode_tile and radio_buttons, one has to work with all radio_buttons.&lt;/P&gt;
&lt;P&gt;This involves using action_tile for all radio_buttons (in a group).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have not the chance to view your code.&lt;/P&gt;
&lt;P&gt;I will assume the "clear height tile" is an edit_box?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is a simplified example block of code (using 3 radio buttons and 1 edit box):&lt;/P&gt;
&lt;PRE&gt; ...new_dialog
;*** Initialize Section ***
;*** Set Tile Section ***
(set_tile "Rad00" "Rad01") ;&amp;lt;-- Rad00 is the key of the container [radio_column]
(set_tile "Edi01" "")
;*** Mode Tile Section ***
(mode_tile "Edi01" 1)
;*** Action Tile Section ***
(action_tile "Rad01" "(MyMode 1)")
(action_tile "Rad02" "(MyMode 0)")
(action_tile "Rad03" "(MyMode 0)")
...
...start_dialog
&lt;/PRE&gt;
&lt;P&gt;Where:&lt;/P&gt;
&lt;PRE&gt;(defun MyMode ( a / )
 (mode_tile "Edi01" a)
);end
&lt;/PRE&gt;
&lt;P&gt;As far as your first post "works the second time around", it seems as if you&lt;/P&gt;
&lt;P&gt;are not properly initializing the tiles (located between the new_dialog and&lt;/P&gt;
&lt;P&gt;the start_dialog statements). If you do not want certain tiles initialized,&lt;/P&gt;
&lt;P&gt;then initialize them as mode_tile = 1 and provide a action_tile somewhere&lt;/P&gt;
&lt;P&gt;that will make mode_tile = 0 as well as initializing the tile.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Again, I am guessing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;???&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 May 2018 14:39:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/enabling-and-disabling-tiles-in-dcl/m-p/7974491#M105524</guid>
      <dc:creator>scot-65</dc:creator>
      <dc:date>2018-05-02T14:39:47Z</dc:date>
    </item>
    <item>
      <title>Re: Enabling and Disabling Tiles in DCL</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/enabling-and-disabling-tiles-in-dcl/m-p/7975877#M105525</link>
      <description>&lt;P&gt;depakcad15,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I took the liberty of running thru the DCL code.&lt;/P&gt;
&lt;P&gt;There are a few advanced tricks to reduce the character count.&lt;/P&gt;
&lt;P&gt;If you want to learn by example, then this might tickle your fancy...&lt;/P&gt;
&lt;PRE&gt;// constants
swh0 :spacer {width=0.0; height=0.0;}
swh1 :spacer {width=1.0; height=1.0;}
ebx2 :edit_box {edit_width=2;}
ebx3 :edit_box {edit_width=3;}
ebx4 :edit_box {edit_width=4;}
ebx6 :edit_box {edit_width=6;}
//
PEB1
:dialog {label="Place Name of Program Here";
 swh0;
 :text {label="Please fill out the following information"; alignment=centered;}
 swh0;
 :row {
  :column {
   :boxed_column {label="Clear Height";
    :row {
     :toggle {key="CLR"; label=" Clear Height Required";}
     :ebx6 {key="CHT";}
    }
    swh0;
   }
   :boxed_column {label="Base";
    :ebx6 {key="W"; label="WIDTH OF THE BUILDING:";}
    :ebx6 {key="H"; label="HEIGHT OF THE BUILDING:";}
    :ebx3 {key="S"; label="SLOPE OF THE BUILDING (I in.):";}
    :ebx3 {key="P"; label="PURLIN DEPTH:";}
    :ebx3 {key="G"; label="GIRT DEPTH:";}
    swh0;
   }
  }
  :boxed_column {label="Built Up";
   :ebx4 {key="CW";  label="MAJOR COLUMN WEB DEPTH:";}
   :ebx4 {key="MCW"; label="MINOR COLUMN WEB DEPTH:";}
   :ebx2 {key="CFT"; label="COLUMN FLANGE THICK:";}
   :ebx4 {key="RW";  label="RAFTER WEB DEPTH:";}
   :ebx2 {key="RFT"; label="RAFTER FLANGE THICK:";}
   :ebx2 {key="EST"; label="EAVE SPLICE THICK:";}
   :ebx2 {key="RST"; label="RIDGE SPLICE THICK:";}
   swh0;
  }
  :column {
   :boxed_column {label="Extra";
    :ebx4 {key="BPW"; label="BASE PLATE WIDTH:";}
    :ebx4 {key="BPT"; label="BASE PLATE THICK:";}
    :ebx2 {key="BBD"; label="BASE BOLT DIA.:";}
    :ebx2 {key="EBD"; label="EAVE BOLT DIA.:";}
    :ebx2 {key="RBD"; label="RIDGE BOLT DIA.:";}
    swh0;
   }
   swh1;
   ok_cancel;
   swh0;
  }
 }
}&lt;BR /&gt;//&lt;BR /&gt;
&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Test-PEB1.jpg" style="width: 760px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/495890iB5F4AFCC550BB081/image-size/large?v=v2&amp;amp;px=999" role="button" title="Test-PEB1.jpg" alt="Test-PEB1.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Character count went from 2836 to 1657 - a reduction of almost 42%!&lt;/P&gt;
&lt;P&gt;I did make changes to the radio buttons and replaced with a toggle.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The copy of your DCL file did not have the carriage return on the last line&lt;/P&gt;
&lt;P&gt;(making the cursor go to the next line, which is blank).&lt;/P&gt;
&lt;P&gt;This has been known to cause problems. I usually end my code with&lt;/P&gt;
&lt;P&gt;the comment symbol "//" just to be sure.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Where there are radio buttons, one must wrap these buttons inside a&lt;/P&gt;
&lt;P&gt;radio row or column container. By assigning a key to the container,&lt;/P&gt;
&lt;P&gt;one can now "talk" to the buttons (set_tile and get_tile).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Labels are typically of varying length. Referencing the key when short&lt;/P&gt;
&lt;P&gt;term memory is failing, locate "key=" as the first attribute of the tile.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 May 2018 22:51:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/enabling-and-disabling-tiles-in-dcl/m-p/7975877#M105525</guid>
      <dc:creator>scot-65</dc:creator>
      <dc:date>2018-05-02T22:51:53Z</dc:date>
    </item>
    <item>
      <title>Re: Enabling and Disabling Tiles in DCL</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/enabling-and-disabling-tiles-in-dcl/m-p/7977770#M105526</link>
      <description>&lt;P&gt;&lt;FONT size="3"&gt;deepakcad15,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="3"&gt;&lt;BR /&gt;I see that many of the edit_boxes (if not all) can be changed&lt;BR /&gt;to a popup_list. The concern here is to limit user input&lt;BR /&gt;errors when manipulating the dialog.&lt;BR /&gt;&lt;BR /&gt;As a continuation for the change from radio buttons to a toggle,&lt;BR /&gt;here is the corresponding mode_tile switching:&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;PRE&gt; (action_tile "CLR" "(mode_tile \"CHT\" (- 1 (atoi $value)))")
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="3"&gt;However, one may want to take it to the next level...&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;PRE&gt; (action_tile "CLR" "(MyMode1 $value)")
&lt;/PRE&gt;
&lt;P&gt;&lt;FONT size="3"&gt;&lt;BR /&gt;Where:&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;PRE&gt;(defun MyMode1 ( val / )
 (mode_tile "CHT" (- 1 (atoi val)))
 (if (= val "1")
  (mode_tile "CHT" 2)
 );if
);end
&lt;/PRE&gt;
&lt;P&gt;&lt;FONT size="3"&gt;&lt;BR /&gt;Don't forget to initialize all tiles (via LSP) and mode_tile "CHT" as well.&lt;BR /&gt;&lt;BR /&gt;Don't bother trying to initialize tiles inside the DCL.&lt;BR /&gt;It is cause for headaches further down the road...&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="3"&gt;Hope this helps.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 May 2018 16:06:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/enabling-and-disabling-tiles-in-dcl/m-p/7977770#M105526</guid>
      <dc:creator>scot-65</dc:creator>
      <dc:date>2018-05-03T16:06:04Z</dc:date>
    </item>
    <item>
      <title>Re: Enabling and Disabling Tiles in DCL</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/enabling-and-disabling-tiles-in-dcl/m-p/8000324#M105527</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/43171"&gt;@scot-65&lt;/a&gt;&lt;/P&gt;&lt;P&gt;what's the use of (rtos 0 2 0) in this case...&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&gt;(setq rmks (get_tile "jo"))&lt;BR /&gt;&lt;BR /&gt;(action_tile "be" "(setq rmks (rtos 0 2 0))")&lt;/P&gt;</description>
      <pubDate>Mon, 14 May 2018 13:49:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/enabling-and-disabling-tiles-in-dcl/m-p/8000324#M105527</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-05-14T13:49:00Z</dc:date>
    </item>
    <item>
      <title>Re: Enabling and Disabling Tiles in DCL</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/enabling-and-disabling-tiles-in-dcl/m-p/8000329#M105528</link>
      <description>&lt;P&gt;both jo and be tiles are radio buttons&lt;/P&gt;</description>
      <pubDate>Mon, 14 May 2018 13:49:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/enabling-and-disabling-tiles-in-dcl/m-p/8000329#M105528</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-05-14T13:49:50Z</dc:date>
    </item>
  </channel>
</rss>

