<?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 Re: in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-with-lisp-routine/m-p/863326#M159601</link>
    <description>Does your current style have a fixed height? If so, it's reading the "0" for&lt;BR /&gt;
the angle as the text itself, and ignoring the actual text. This is a major&lt;BR /&gt;
annoyance with (command ...) and those AutoCAD commands that change syntax&lt;BR /&gt;
depending on various conditions.&lt;BR /&gt;
___&lt;BR /&gt;
&lt;BR /&gt;
"Jamie Duncan" &lt;JDUNCAN&gt; wrote in message&lt;BR /&gt;
news:9A71C2898F61EBEA28A4889DAEAAEFCB@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; I changed it as you&lt;BR /&gt;
&amp;gt; suggested and got a 0 for each number&lt;/JDUNCAN&gt;</description>
    <pubDate>Mon, 28 May 2001 11:50:43 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2001-05-28T11:50:43Z</dc:date>
    <item>
      <title>Help with lisp routine</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-with-lisp-routine/m-p/863318#M159593</link>
      <description>&amp;lt;&amp;lt;&amp;lt; Message &amp;lt;89jfn0$5l811@adesknews2.autodesk.com&amp;gt; was originally posted to 'autodesk.aec.arch-desktop2' on Wed, 1 Mar 2000 11:14:47 -0500.&amp;gt;&amp;gt;&amp;gt;&lt;BR /&gt;
&lt;BR /&gt;
I had a lisp routine that inserted an attribute.&lt;BR /&gt;
&lt;BR /&gt;
Under Acad 14 after it was inserted a dialog box would come up to edit the&lt;BR /&gt;
attribute.&lt;BR /&gt;
Then the rest of the routine would finish up.&lt;BR /&gt;
&lt;BR /&gt;
Undert ADT2 the program malfunctions.&lt;BR /&gt;
The dialog box never comes up and in inserts the next string of text it&lt;BR /&gt;
finds in the lisp file.&lt;BR /&gt;
The routine never finishes .&lt;BR /&gt;
Attdia is set to 1&lt;BR /&gt;
&lt;BR /&gt;
Is there some other setting I am missing? or What.</description>
      <pubDate>Thu, 02 Mar 2000 02:47:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-with-lisp-routine/m-p/863318#M159593</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-03-02T02:47:05Z</dc:date>
    </item>
    <item>
      <title>Re: Help with lisp routine</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-with-lisp-routine/m-p/863319#M159594</link>
      <description>&amp;lt;&amp;lt;&amp;lt; Message &amp;lt;38BD481D.F5042AAD@bbsae.com&amp;gt; was originally posted to 'autodesk.aec.arch-desktop2' on Wed, 01 Mar 2000 10:41:01 -0600.&amp;gt;&amp;gt;&amp;gt;&lt;BR /&gt;
&lt;BR /&gt;
I am having the same problem... and would like to know the answer as well...&lt;BR /&gt;
in the mean time...  I have incorporated a routine of my creation (with&lt;BR /&gt;
variable number of edit boxes) that writes the dcl file and activates it on&lt;BR /&gt;
the fly.  When the user clicks the OK button it returns the user supplied&lt;BR /&gt;
values.  I then supply the strings to the insert command to fill the attribute&lt;BR /&gt;
values at block insertion time.&lt;BR /&gt;
&lt;BR /&gt;
But... would like to use the normal autocad method...?&lt;BR /&gt;
&lt;BR /&gt;
David Fuller wrote:&lt;BR /&gt;
&lt;BR /&gt;
&amp;gt; I had a lisp routine that inserted an attribute.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Under Acad 14 after it was inserted a dialog box would come up to edit the&lt;BR /&gt;
&amp;gt; attribute.&lt;BR /&gt;
&amp;gt; Then the rest of the routine would finish up.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Undert ADT2 the program malfunctions.&lt;BR /&gt;
&amp;gt; The dialog box never comes up and in inserts the next string of text it&lt;BR /&gt;
&amp;gt; finds in the lisp file.&lt;BR /&gt;
&amp;gt; The routine never finishes .&lt;BR /&gt;
&amp;gt; Attdia is set to 1&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Is there some other setting I am missing? or What.</description>
      <pubDate>Thu, 02 Mar 2000 02:47:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-with-lisp-routine/m-p/863319#M159594</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-03-02T02:47:05Z</dc:date>
    </item>
    <item>
      <title>Re: Help with lisp routine</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-with-lisp-routine/m-p/863320#M159595</link>
      <description>&amp;lt;&amp;lt;&amp;lt; Message &amp;lt;89jmt3$7s32@adesknews2.autodesk.com&amp;gt; was originally posted to 'autodesk.aec.arch-desktop2' on Wed, 1 Mar 2000 12:20:40 -0800.&amp;gt;&amp;gt;&amp;gt;&lt;BR /&gt;
&lt;BR /&gt;
try posting on the customization newsgroup&lt;BR /&gt;
you probably need to precede your command with _-insert&lt;BR /&gt;
nick</description>
      <pubDate>Thu, 02 Mar 2000 02:47:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-with-lisp-routine/m-p/863320#M159595</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-03-02T02:47:05Z</dc:date>
    </item>
    <item>
      <title>Re: Help with lisp routine</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-with-lisp-routine/m-p/863321#M159596</link>
      <description>&amp;lt;&amp;lt;&amp;lt; Message &amp;lt;89jnea$7s12@adesknews2.autodesk.com&amp;gt; was originally posted to 'autodesk.aec.arch-desktop2' on Wed, 1 Mar 2000 13:25:20 -0500.&amp;gt;&amp;gt;&amp;gt;&lt;BR /&gt;
&lt;BR /&gt;
     (setvar "ATTREQ" 1)&lt;BR /&gt;
     (setvar "ATTDIA" 1)&lt;BR /&gt;
     (initdia)&lt;BR /&gt;
     (command "-insert" .........)&lt;BR /&gt;
&lt;BR /&gt;
--&lt;BR /&gt;
Rob Starz&lt;BR /&gt;
Rob@stardsign.com&lt;BR /&gt;
Plogv 3.0 &amp;amp; 2000 (plot logging) for r14 &amp;amp; 2000&lt;BR /&gt;
ADT Curtainwall Suite&lt;BR /&gt;
ADT Restroom Suite&lt;BR /&gt;
**ADTcadPac coming soon**&lt;BR /&gt;
http://www.stardsign.com/main.htm     &amp;lt;&lt;NEW domain=""&gt;&lt;BR /&gt;
StarDsign cad solution&lt;/NEW&gt;</description>
      <pubDate>Thu, 02 Mar 2000 02:47:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-with-lisp-routine/m-p/863321#M159596</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-03-02T02:47:05Z</dc:date>
    </item>
    <item>
      <title>Re: Help with lisp routine</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-with-lisp-routine/m-p/863322#M159597</link>
      <description>&amp;lt;&amp;lt;&amp;lt; Message &amp;lt;89jo3t$7s45@adesknews2.autodesk.com&amp;gt; was originally posted to 'autodesk.aec.arch-desktop2' on Wed, 1 Mar 2000 13:40:10 -0500.&amp;gt;&amp;gt;&amp;gt;&lt;BR /&gt;
&lt;BR /&gt;
And you need to preceed the -insert with (initdia).  This will force the&lt;BR /&gt;
dialog box.  For example:&lt;BR /&gt;
&lt;BR /&gt;
(INITDIA)&lt;BR /&gt;
(COMMAND "-INSERT" BLKNAME IP XSCALE YSCALE BLKANGLE)&lt;BR /&gt;
&lt;BR /&gt;
--&lt;BR /&gt;
Daniel J. Altamura, R.A.&lt;BR /&gt;
Altamura Architectural Consulting&lt;BR /&gt;
and SoftWorx, Autodesk Registered Developer&lt;BR /&gt;
DAltamura@compuserve.com&lt;BR /&gt;
&lt;BR /&gt;
Nick August wrote in message &amp;lt;89jmt3$7s32@adesknews2.autodesk.com&amp;gt;...&lt;BR /&gt;
&amp;gt;try posting on the customization newsgroup&lt;BR /&gt;
&amp;gt;you probably need to precede your command with _-insert&lt;BR /&gt;
&amp;gt;nick&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;</description>
      <pubDate>Thu, 02 Mar 2000 02:47:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-with-lisp-routine/m-p/863322#M159597</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-03-02T02:47:05Z</dc:date>
    </item>
    <item>
      <title>Re: Help with lisp routine</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-with-lisp-routine/m-p/863323#M159598</link>
      <description>I have a simple lisp routine which allows me to number up parking stalls -&lt;BR /&gt;
and for some reason it's not working - my brain has been disabled from a&lt;BR /&gt;
weekend of carousing - it must be something really simple that I'm&lt;BR /&gt;
overlooking. Any help would be appreciated.&lt;BR /&gt;
&lt;BR /&gt;
Thanks&lt;BR /&gt;
&lt;BR /&gt;
Jamie Duncan&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
(defun c:FAIAPKNO (/ n1 n2 inc pt1 pt3 temp stallangle stallwidth)&lt;BR /&gt;
(arctvsav)                          ; Save and set system variables&lt;BR /&gt;
&lt;BR /&gt;
(setvar "cmdecho" 0)(setvar "osmode" 0)&lt;BR /&gt;
(command "layer" "m" "CRONO" "")&lt;BR /&gt;
&lt;BR /&gt;
(setq n1 (getint "\nEnter first number: ")&lt;BR /&gt;
      n2 (getint "\nEnter last number: ")&lt;BR /&gt;
      inc 1&lt;BR /&gt;
      pt1 (getpoint "\nSelect starting point: "))&lt;BR /&gt;
(setvar "orthomode" 1)&lt;BR /&gt;
  (initget 1)&lt;BR /&gt;
  (setq pt3 (getpoint pt1 "\nPick direction for text: ")&lt;BR /&gt;
        stallangle (angle pt1 pt3))&lt;BR /&gt;
 (princ stallangle)&lt;BR /&gt;
 (if (= ARCTSTWD nil)(setq stallwidth (* ARCTSCALS 120.0))(setq stallwidth&lt;BR /&gt;
ARCTSTWD));; global variable that sets stallwidths&lt;BR /&gt;
  (setq temp (getdist (strcat "\nDistance between text&amp;lt; " (itoa stallwidth)&lt;BR /&gt;
" &amp;gt;: ")))&lt;BR /&gt;
  (if temp (setq stallwidth temp))&lt;BR /&gt;
&lt;BR /&gt;
(while (&amp;lt;= n1 n2)&lt;BR /&gt;
     (command "text" "c" pt1 "" "0" (itoa n1))&lt;BR /&gt;
     (setq pt1 (polar pt1 stallangle stallwidth))&lt;BR /&gt;
     (setq n1 (+ n1 inc))&lt;BR /&gt;
)&lt;BR /&gt;
 (arctvrst)                          ; Reset system variables&lt;BR /&gt;
)</description>
      <pubDate>Mon, 28 May 2001 08:12:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-with-lisp-routine/m-p/863323#M159598</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2001-05-28T08:12:00Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-with-lisp-routine/m-p/863324#M159599</link>
      <description>Jamie,&lt;BR /&gt;
&lt;BR /&gt;
Change the line:&lt;BR /&gt;
(strcat "\nDistance between text&amp;lt; " (itoa stallwidth)" &amp;gt;: ")&lt;BR /&gt;
&lt;BR /&gt;
To this:&lt;BR /&gt;
(strcat "\nDistance between text&amp;lt; " (rtos stallwidth)" &amp;gt;:" )&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Regards,&lt;BR /&gt;
Steve Doman</description>
      <pubDate>Mon, 28 May 2001 08:54:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-with-lisp-routine/m-p/863324#M159599</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2001-05-28T08:54:55Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-with-lisp-routine/m-p/863325#M159600</link>
      <description>Thanks Steve,&lt;BR /&gt;
I'm afraid this routine stubbornly refuses to work - I changed it as you&lt;BR /&gt;
suggested and got a 0 for each number - if it's set to itoa the routine dies&lt;BR /&gt;
before asking the stallwidth!&lt;BR /&gt;
&lt;BR /&gt;
I'm resigned to being just clueless here.&lt;BR /&gt;
&lt;BR /&gt;
Jamie&lt;BR /&gt;
&lt;BR /&gt;
Steve Doman &lt;SDOMAN&gt; wrote in message&lt;BR /&gt;
news:5330E1EB1C119E3AF2F0D3DD6984996B@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt;&lt;/SDOMAN&gt;</description>
      <pubDate>Mon, 28 May 2001 10:06:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-with-lisp-routine/m-p/863325#M159600</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2001-05-28T10:06:38Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-with-lisp-routine/m-p/863326#M159601</link>
      <description>Does your current style have a fixed height? If so, it's reading the "0" for&lt;BR /&gt;
the angle as the text itself, and ignoring the actual text. This is a major&lt;BR /&gt;
annoyance with (command ...) and those AutoCAD commands that change syntax&lt;BR /&gt;
depending on various conditions.&lt;BR /&gt;
___&lt;BR /&gt;
&lt;BR /&gt;
"Jamie Duncan" &lt;JDUNCAN&gt; wrote in message&lt;BR /&gt;
news:9A71C2898F61EBEA28A4889DAEAAEFCB@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; I changed it as you&lt;BR /&gt;
&amp;gt; suggested and got a 0 for each number&lt;/JDUNCAN&gt;</description>
      <pubDate>Mon, 28 May 2001 11:50:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-with-lisp-routine/m-p/863326#M159601</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2001-05-28T11:50:43Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-with-lisp-routine/m-p/863327#M159602</link>
      <description>Shouldn't " layer" be "-layer"&lt;BR /&gt;
Might Want to make a variable for the text height, Multiplying it by the&lt;BR /&gt;
dimscale and substitute it for "" in the text command, just in case the&lt;BR /&gt;
height is not set in the Style command or is 0&lt;BR /&gt;
&lt;BR /&gt;
Steve&lt;BR /&gt;
&lt;BR /&gt;
"Jamie Duncan" &lt;JDUNCAN&gt; wrote in message&lt;BR /&gt;
news:114E69E6D531677733B4E15CC0092299@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; I have a simple lisp routine which allows me to number up parking stalls -&lt;BR /&gt;
&amp;gt; and for some reason it's not working - my brain has been disabled from a&lt;BR /&gt;
&amp;gt; weekend of carousing - it must be something really simple that I'm&lt;BR /&gt;
&amp;gt; overlooking. Any help would be appreciated.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Thanks&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Jamie Duncan&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; (defun c:FAIAPKNO (/ n1 n2 inc pt1 pt3 temp stallangle stallwidth)&lt;BR /&gt;
&amp;gt; (arctvsav)                          ; Save and set system variables&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; (setvar "cmdecho" 0)(setvar "osmode" 0)&lt;BR /&gt;
&amp;gt; (command "layer" "m" "CRONO" "")&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; (setq n1 (getint "\nEnter first number: ")&lt;BR /&gt;
&amp;gt;       n2 (getint "\nEnter last number: ")&lt;BR /&gt;
&amp;gt;       inc 1&lt;BR /&gt;
&amp;gt;       pt1 (getpoint "\nSelect starting point: "))&lt;BR /&gt;
&amp;gt; (setvar "orthomode" 1)&lt;BR /&gt;
&amp;gt;   (initget 1)&lt;BR /&gt;
&amp;gt;   (setq pt3 (getpoint pt1 "\nPick direction for text: ")&lt;BR /&gt;
&amp;gt;         stallangle (angle pt1 pt3))&lt;BR /&gt;
&amp;gt;  (princ stallangle)&lt;BR /&gt;
&amp;gt;  (if (= ARCTSTWD nil)(setq stallwidth (* ARCTSCALS 120.0))(setq stallwidth&lt;BR /&gt;
&amp;gt; ARCTSTWD));; global variable that sets stallwidths&lt;BR /&gt;
&amp;gt;   (setq temp (getdist (strcat "\nDistance between text&amp;lt; " (itoa&lt;BR /&gt;
stallwidth)&lt;BR /&gt;
&amp;gt; " &amp;gt;: ")))&lt;BR /&gt;
&amp;gt;   (if temp (setq stallwidth temp))&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; (while (&amp;lt;= n1 n2)&lt;BR /&gt;
&amp;gt;      (command "text" "c" pt1 "" "0" (itoa n1))&lt;BR /&gt;
&amp;gt;      (setq pt1 (polar pt1 stallangle stallwidth))&lt;BR /&gt;
&amp;gt;      (setq n1 (+ n1 inc))&lt;BR /&gt;
&amp;gt; )&lt;BR /&gt;
&amp;gt;  (arctvrst)                          ; Reset system variables&lt;BR /&gt;
&amp;gt; )&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;/JDUNCAN&gt;</description>
      <pubDate>Mon, 28 May 2001 15:15:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-with-lisp-routine/m-p/863327#M159602</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2001-05-28T15:15:51Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-with-lisp-routine/m-p/863328#M159603</link>
      <description>Jamie,&lt;BR /&gt;
&lt;BR /&gt;
I'm guessing the reason the code runs on my machine after making my&lt;BR /&gt;
suggested fix, has something to do with those global variables the program&lt;BR /&gt;
is using.  I'm assuming that those globals are real numbers since they are&lt;BR /&gt;
used as scalars.&lt;BR /&gt;
&lt;BR /&gt;
Since you're still having problems, and because I thought this program might&lt;BR /&gt;
be useful to myself, I took the liberty (and time) to rewrite the code.  Now&lt;BR /&gt;
I hope you don't take offense to what I've done, but my rearranging of the&lt;BR /&gt;
code is primarilly for the purpose of checking the user input.  It also&lt;BR /&gt;
helps me to debug by formatting the code to my taste.  You can change the&lt;BR /&gt;
formatting to your taste if you want once we know it works on your machine.&lt;BR /&gt;
I've also added a simple error routine to catch the error that occurs on the&lt;BR /&gt;
event of the user hitting the ESC button.&lt;BR /&gt;
&lt;BR /&gt;
I've also added a condition for handling fixed or nonfixed text height&lt;BR /&gt;
(thanks to Paul Turvill for pointing that out).  While I could have avoided&lt;BR /&gt;
the fixed height condition (and layer making for that matter) by using the&lt;BR /&gt;
'Entmake function, I left the text creation as was written (almost) so as to&lt;BR /&gt;
not deviate to far from the original program, and to take advantage of&lt;BR /&gt;
implementing a simple, yet cool little Undo feature.&lt;BR /&gt;
&lt;BR /&gt;
The program runs well on my machine but consider it still a work in&lt;BR /&gt;
progress.  The undo feature for example, will bomb if undo happens to be&lt;BR /&gt;
turned off.  This can be fixed too but I leave that for another day.&lt;BR /&gt;
&lt;BR /&gt;
If your still having trouble when running this version, then let us know as&lt;BR /&gt;
best as you can what/when/how the error is occuring.  Also let us know what&lt;BR /&gt;
type of data any global symbols contain.&lt;BR /&gt;
&lt;BR /&gt;
Please see attached file.&lt;BR /&gt;
&lt;BR /&gt;
Regards,&lt;BR /&gt;
Steve Doman&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Jamie Duncan wrote:&lt;BR /&gt;
&amp;gt; Thanks Steve,&lt;BR /&gt;
&amp;gt; I'm afraid this routine stubbornly refuses to work - I changed&lt;BR /&gt;
&amp;gt; it as you suggested and got a 0 for each number - if it's set&lt;BR /&gt;
&amp;gt; to itoa the routine dies before asking the stallwidth!&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; I'm resigned to being just clueless here.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Jamie</description>
      <pubDate>Mon, 28 May 2001 19:03:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-with-lisp-routine/m-p/863328#M159603</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2001-05-28T19:03:25Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-with-lisp-routine/m-p/863329#M159604</link>
      <description>Hi Steve&lt;BR /&gt;
&lt;BR /&gt;
Thanks - I figured out what was wrong with my function I was trying to apply&lt;BR /&gt;
itoa to a real - didn't like it. Your enhancements to the function make it&lt;BR /&gt;
much better.&lt;BR /&gt;
&lt;BR /&gt;
Jamie Duncan&lt;BR /&gt;
&lt;BR /&gt;
Steve Doman &lt;SDOMAN&gt; wrote in message&lt;BR /&gt;
news:E4C7C1E3EC7893840B0509C3163B67BF@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt;&lt;/SDOMAN&gt;</description>
      <pubDate>Tue, 29 May 2001 05:39:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-with-lisp-routine/m-p/863329#M159604</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2001-05-29T05:39:16Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-with-lisp-routine/m-p/863330#M159605</link>
      <description>Jamie Duncan wrote:&lt;BR /&gt;
&amp;gt; Thanks - I figured out what was wrong with my function I was trying to&lt;BR /&gt;
apply&lt;BR /&gt;
&amp;gt; itoa to a real - didn't like it.&lt;BR /&gt;
&lt;BR /&gt;
That's what I was trying to say in my first reply to your post.&lt;BR /&gt;
&lt;BR /&gt;
&amp;gt; Your enhancements to the function make it&lt;BR /&gt;
&amp;gt; much better.&lt;BR /&gt;
&lt;BR /&gt;
Glad you liked it.  I'm going to use a variation of this routine to array&lt;BR /&gt;
automatically incremented numbered text.&lt;BR /&gt;
&lt;BR /&gt;
So Jamie, a question for you:&lt;BR /&gt;
&lt;BR /&gt;
What does "FAIAPKNO" mean?  Something, something, parking numbers?  I'm not&lt;BR /&gt;
an Architectural draftsman so if that's some kinda Architect lingo, I&lt;BR /&gt;
wouln't know.  Just curious.&lt;BR /&gt;
&lt;BR /&gt;
Regards,&lt;BR /&gt;
Steve Doman</description>
      <pubDate>Tue, 29 May 2001 08:12:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-with-lisp-routine/m-p/863330#M159605</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2001-05-29T08:12:13Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-with-lisp-routine/m-p/863331#M159606</link>
      <description>Hi Steve&lt;BR /&gt;
&lt;BR /&gt;
We are an architectural firm (FAIA) and yes, it's for parking numbers. This&lt;BR /&gt;
way we can easily number up spaces. We use an off the shelf 2D package&lt;BR /&gt;
called ArchSoft which we have extensively enhanced. This autonumbering&lt;BR /&gt;
routine was one of my first attempts at lisp - and thus as you noted was&lt;BR /&gt;
rather primitive in terms of error handling etc.&lt;BR /&gt;
&lt;BR /&gt;
Jamie Duncan&lt;BR /&gt;
&lt;BR /&gt;
Steve Doman &lt;SDOMAN&gt; wrote in message&lt;BR /&gt;
news:5F0DD52D511973C65F01FE77FFAD8642@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt;&lt;/SDOMAN&gt;</description>
      <pubDate>Tue, 29 May 2001 09:44:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-with-lisp-routine/m-p/863331#M159606</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2001-05-29T09:44:14Z</dc:date>
    </item>
    <item>
      <title>Re: Help with lisp routine</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-with-lisp-routine/m-p/863332#M159607</link>
      <description>Can anybody help me with this lisp routine. I am new to lisp programming but&lt;BR /&gt;
am willing to learn, I have attached the first few lines of a programme I am&lt;BR /&gt;
tring to write. I want the routine to prompt me to pick a selection set of&lt;BR /&gt;
text and then enclose all the selected text in brackets,&lt;BR /&gt;
&lt;BR /&gt;
i.e.&lt;BR /&gt;
pick 08&lt;BR /&gt;
returns (08)&lt;BR /&gt;
&lt;BR /&gt;
We import survey drawing information into our drawings and generally want&lt;BR /&gt;
existing site levels to be enclosed in brackets to differentiate it from&lt;BR /&gt;
proposed levels.&lt;BR /&gt;
&lt;BR /&gt;
I realise the routine is miising som info but I'm at a loss of what the&lt;BR /&gt;
programme needs to do next.&lt;BR /&gt;
&lt;BR /&gt;
TIA&lt;BR /&gt;
&lt;BR /&gt;
Chris&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
(DEFUN C:BRACKETS (/ TEXT)&lt;BR /&gt;
 (SETQ TEXT (SSGET))&lt;BR /&gt;
 (SETQ TEXT (strcat  "(" TEXT ")")))</description>
      <pubDate>Thu, 02 Aug 2001 05:28:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-with-lisp-routine/m-p/863332#M159607</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2001-08-02T05:28:42Z</dc:date>
    </item>
    <item>
      <title>Re: Help with lisp routine</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-with-lisp-routine/m-p/863333#M159608</link>
      <description>Can anybody help me with this lisp routine. I am new to lisp programming but&lt;BR /&gt;
am willing to learn, I have attached the first few lines of a programme I am&lt;BR /&gt;
tring to write. I want the routine to prompt me to pick a selection set of&lt;BR /&gt;
text and then enclose all the selected text in brackets,&lt;BR /&gt;
&lt;BR /&gt;
i.e.&lt;BR /&gt;
pick 08&lt;BR /&gt;
returns (08)&lt;BR /&gt;
&lt;BR /&gt;
We import survey drawing information into our drawings and generally want&lt;BR /&gt;
existing site levels to be enclosed in brackets to differentiate it from&lt;BR /&gt;
proposed levels.&lt;BR /&gt;
&lt;BR /&gt;
I realise the routine is miising som info but I'm at a loss of what the&lt;BR /&gt;
programme needs to do next.&lt;BR /&gt;
&lt;BR /&gt;
TIA&lt;BR /&gt;
&lt;BR /&gt;
Chris&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
(DEFUN C:BRACKETS (/ TEXT)&lt;BR /&gt;
 (SETQ TEXT (SSGET))&lt;BR /&gt;
 (SETQ TEXT (strcat  "(" TEXT ")")))</description>
      <pubDate>Thu, 02 Aug 2001 05:31:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-with-lisp-routine/m-p/863333#M159608</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2001-08-02T05:31:23Z</dc:date>
    </item>
    <item>
      <title>Re: Help with lisp routine</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-with-lisp-routine/m-p/863334#M159609</link>
      <description>Can anybody help me with this lisp routine. I am new to lisp programming but&lt;BR /&gt;
am willing to learn, I have attached the first few lines of a programme I am&lt;BR /&gt;
tring to write. I want the routine to prompt me to pick a selection set of&lt;BR /&gt;
text and then enclose all the selected text in brackets,&lt;BR /&gt;
&lt;BR /&gt;
i.e.&lt;BR /&gt;
pick 08&lt;BR /&gt;
returns (08)&lt;BR /&gt;
&lt;BR /&gt;
We import survey drawing information into our drawings and generally want&lt;BR /&gt;
existing site levels to be enclosed in brackets to differentiate it from&lt;BR /&gt;
proposed levels.&lt;BR /&gt;
&lt;BR /&gt;
I realise the routine is miising som info but I'm at a loss of what the&lt;BR /&gt;
programme needs to do next.&lt;BR /&gt;
&lt;BR /&gt;
TIA&lt;BR /&gt;
&lt;BR /&gt;
Chris&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
(DEFUN C:BRACKETS (/ TEXT)&lt;BR /&gt;
 (SETQ TEXT (SSGET))&lt;BR /&gt;
 (SETQ TEXT (strcat  "(" TEXT ")")))</description>
      <pubDate>Thu, 02 Aug 2001 05:38:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-with-lisp-routine/m-p/863334#M159609</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2001-08-02T05:38:41Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-with-lisp-routine/m-p/863335#M159610</link>
      <description>(defun c:brackets ( / a b c d e f g n)&lt;BR /&gt;
(princ "\nSelect text to enclose in brackets: ")&lt;BR /&gt;
(setq a (ssget))&lt;BR /&gt;
(setq b (sslength a))&lt;BR /&gt;
(setq n 0)&lt;BR /&gt;
(repeat b&lt;BR /&gt;
 (setq c (ssname a n))&lt;BR /&gt;
 (setq d (entget c))&lt;BR /&gt;
 (setq e (assoc 1 d))&lt;BR /&gt;
 (setq f (cdr e))&lt;BR /&gt;
 (setq g (strcat "\(" f "\)"))&lt;BR /&gt;
 (setq h (cons 1 g))&lt;BR /&gt;
 (setq d (subst h e d))&lt;BR /&gt;
 (entmod d)&lt;BR /&gt;
 (setq n (1+ n))&lt;BR /&gt;
)&lt;BR /&gt;
(princ)&lt;BR /&gt;
)&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
"Chris" &lt;CHRIS.BOYD&gt; wrote in message&lt;BR /&gt;
news:9D45CB8318EF132E60E1BBE00356C6C4@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; Can anybody help me with this lisp routine. I am new to lisp programming&lt;BR /&gt;
but&lt;BR /&gt;
&amp;gt; am willing to learn, I have attached the first few lines of a programme I&lt;BR /&gt;
am&lt;BR /&gt;
&amp;gt; tring to write. I want the routine to prompt me to pick a selection set of&lt;BR /&gt;
&amp;gt; text and then enclose all the selected text in brackets,&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; i.e.&lt;BR /&gt;
&amp;gt; pick 08&lt;BR /&gt;
&amp;gt; returns (08)&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; We import survey drawing information into our drawings and generally want&lt;BR /&gt;
&amp;gt; existing site levels to be enclosed in brackets to differentiate it from&lt;BR /&gt;
&amp;gt; proposed levels.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; I realise the routine is miising som info but I'm at a loss of what the&lt;BR /&gt;
&amp;gt; programme needs to do next.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; TIA&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Chris&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; (DEFUN C:BRACKETS (/ TEXT)&lt;BR /&gt;
&amp;gt;  (SETQ TEXT (SSGET))&lt;BR /&gt;
&amp;gt;  (SETQ TEXT (strcat  "(" TEXT ")")))&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;/CHRIS.BOYD&gt;</description>
      <pubDate>Thu, 02 Aug 2001 05:41:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-with-lisp-routine/m-p/863335#M159610</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2001-08-02T05:41:35Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-with-lisp-routine/m-p/863336#M159611</link>
      <description>(I forgot to sign it before sending)&lt;BR /&gt;
By the way, since you're a lisp novice, I thought I'd leave the routine long&lt;BR /&gt;
and clear to help you understand what is happening. Some parts of it may be&lt;BR /&gt;
combined for a 'clean routine'.&lt;BR /&gt;
~ Doug&lt;BR /&gt;
&lt;BR /&gt;
"Doug Barr" &lt;DBARR&gt; wrote in message&lt;BR /&gt;
news:66939CF5F98104BDE3E67B55E2492633@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; (defun c:brackets ( / a b c d e f g n)&lt;BR /&gt;
&amp;gt; (princ "\nSelect text to enclose in brackets: ")&lt;BR /&gt;
&amp;gt; (setq a (ssget))&lt;BR /&gt;
&amp;gt; (setq b (sslength a))&lt;BR /&gt;
&amp;gt; (setq n 0)&lt;BR /&gt;
&amp;gt; (repeat b&lt;BR /&gt;
&amp;gt;  (setq c (ssname a n))&lt;BR /&gt;
&amp;gt;  (setq d (entget c))&lt;BR /&gt;
&amp;gt;  (setq e (assoc 1 d))&lt;BR /&gt;
&amp;gt;  (setq f (cdr e))&lt;BR /&gt;
&amp;gt;  (setq g (strcat "\(" f "\)"))&lt;BR /&gt;
&amp;gt;  (setq h (cons 1 g))&lt;BR /&gt;
&amp;gt;  (setq d (subst h e d))&lt;BR /&gt;
&amp;gt;  (entmod d)&lt;BR /&gt;
&amp;gt;  (setq n (1+ n))&lt;BR /&gt;
&amp;gt; )&lt;BR /&gt;
&amp;gt; (princ)&lt;BR /&gt;
&amp;gt; )&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; "Chris" &lt;CHRIS.BOYD&gt; wrote in message&lt;BR /&gt;
&amp;gt; news:9D45CB8318EF132E60E1BBE00356C6C4@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; &amp;gt; Can anybody help me with this lisp routine. I am new to lisp programming&lt;BR /&gt;
&amp;gt; but&lt;BR /&gt;
&amp;gt; &amp;gt; am willing to learn, I have attached the first few lines of a programme&lt;BR /&gt;
I&lt;BR /&gt;
&amp;gt; am&lt;BR /&gt;
&amp;gt; &amp;gt; tring to write. I want the routine to prompt me to pick a selection set&lt;BR /&gt;
of&lt;BR /&gt;
&amp;gt; &amp;gt; text and then enclose all the selected text in brackets,&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; i.e.&lt;BR /&gt;
&amp;gt; &amp;gt; pick 08&lt;BR /&gt;
&amp;gt; &amp;gt; returns (08)&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; We import survey drawing information into our drawings and generally&lt;BR /&gt;
want&lt;BR /&gt;
&amp;gt; &amp;gt; existing site levels to be enclosed in brackets to differentiate it from&lt;BR /&gt;
&amp;gt; &amp;gt; proposed levels.&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; I realise the routine is miising som info but I'm at a loss of what the&lt;BR /&gt;
&amp;gt; &amp;gt; programme needs to do next.&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; TIA&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; Chris&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; (DEFUN C:BRACKETS (/ TEXT)&lt;BR /&gt;
&amp;gt; &amp;gt;  (SETQ TEXT (SSGET))&lt;BR /&gt;
&amp;gt; &amp;gt;  (SETQ TEXT (strcat  "(" TEXT ")")))&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;/CHRIS.BOYD&gt;&lt;/DBARR&gt;</description>
      <pubDate>Thu, 02 Aug 2001 06:07:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-with-lisp-routine/m-p/863336#M159611</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2001-08-02T06:07:30Z</dc:date>
    </item>
  </channel>
</rss>

