<?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/is-this-a-bug/m-p/903928#M163382</link>
    <description>Sorry Kevin, should have looked at your post better.&lt;BR /&gt;
Using tblsearch works. So am I correct in saying that&lt;BR /&gt;
defaults aren't listed in the entity lists?&lt;BR /&gt;
&lt;BR /&gt;
--&lt;BR /&gt;
Ken Alexander&lt;BR /&gt;
Acad 2000&lt;BR /&gt;
Win 2000&lt;BR /&gt;
"Kevin Nehls" &lt;KEVINN at="" safeworks="" dot="" com=""&gt; wrote in message&lt;BR /&gt;
news:C9F22CC5FFCFE2A0C91E5637D078E8C2@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; I find the 271 info for the dimstyle when I do this:&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; (setq&lt;BR /&gt;
&amp;gt;   diminfo (tblsearch "DIMSTYLE" "STANDARD")&lt;BR /&gt;
&amp;gt;   dimprec (cdr (assoc 271 diminfo))&lt;BR /&gt;
&amp;gt; )&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; --&lt;BR /&gt;
&amp;gt; Kevin Nehls&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; "Ken Alexander" &lt;KALEX&gt; wrote in message&lt;BR /&gt;
&amp;gt; news:6765F17858CE3EC463F822E2BEA871C2@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; &amp;gt; If precision is set to 4 (default value) for a dimstyle this routine&lt;BR /&gt;
will&lt;BR /&gt;
&amp;gt; &amp;gt; return nil, anyother precesion setting and the routine returns the&lt;BR /&gt;
dimdec&lt;BR /&gt;
&amp;gt; &amp;gt; sys var for that sytle.&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; (defun C:test (/ diminfo dimprec)&lt;BR /&gt;
&amp;gt; &amp;gt;   (setq&lt;BR /&gt;
&amp;gt; &amp;gt;     diminfo (entget (tblobjname "DIMSTYLE" "STANDARD"))&lt;BR /&gt;
&amp;gt; &amp;gt;     dimprec (cdr (assoc 271 diminfo))&lt;BR /&gt;
&amp;gt; &amp;gt;   )&lt;BR /&gt;
&amp;gt; &amp;gt;   dimprec&lt;BR /&gt;
&amp;gt; &amp;gt;   )&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; --&lt;BR /&gt;
&amp;gt; &amp;gt; Ken Alexander&lt;BR /&gt;
&amp;gt; &amp;gt; Acad 2000&lt;BR /&gt;
&amp;gt; &amp;gt; Win 2000&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;/KALEX&gt;&lt;/KEVINN&gt;</description>
    <pubDate>Mon, 03 Jun 2002 07:23:33 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2002-06-03T07:23:33Z</dc:date>
    <item>
      <title>Is this a bug?</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/is-this-a-bug/m-p/903917#M163371</link>
      <description>Command: !aa&lt;BR /&gt;
("a" "b" "c" "d")&lt;BR /&gt;
&lt;BR /&gt;
Command: (subst "xx" "z" aa)&lt;BR /&gt;
("a" "b" "c" "d")&lt;BR /&gt;
&lt;BR /&gt;
Command: (= aa (subst "xx" "z" aa))&lt;BR /&gt;
nil&lt;BR /&gt;
&lt;BR /&gt;
I was expecting a 'T'. Is this a bug or am I misunderstanding something?</description>
      <pubDate>Wed, 27 Oct 1999 20:31:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/is-this-a-bug/m-p/903917#M163371</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>1999-10-27T20:31:56Z</dc:date>
    </item>
    <item>
      <title>Re: Is this a bug?</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/is-this-a-bug/m-p/903918#M163372</link>
      <description>I'll bet (equal aa (subst "xx" "z" aa)) returns T.&lt;BR /&gt;
&lt;BR /&gt;
Mark Holder&lt;BR /&gt;
&lt;BR /&gt;
Jon Crouch wrote:&lt;BR /&gt;
&lt;BR /&gt;
&amp;gt; Command: !aa&lt;BR /&gt;
&amp;gt; ("a" "b" "c" "d")&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Command: (subst "xx" "z" aa)&lt;BR /&gt;
&amp;gt; ("a" "b" "c" "d")&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Command: (= aa (subst "xx" "z" aa))&lt;BR /&gt;
&amp;gt; nil&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; I was expecting a 'T'. Is this a bug or am I misunderstanding something?</description>
      <pubDate>Wed, 27 Oct 1999 20:43:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/is-this-a-bug/m-p/903918#M163372</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>1999-10-27T20:43:01Z</dc:date>
    </item>
    <item>
      <title>Re: Is this a bug?</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/is-this-a-bug/m-p/903919#M163373</link>
      <description>Jon,&lt;BR /&gt;
&lt;BR /&gt;
This is how you could do it:&lt;BR /&gt;
&lt;BR /&gt;
(setq aa (list "a" "b" "c" "d"))&lt;BR /&gt;
(setq aa (subst "z" (car aa) aa))&lt;BR /&gt;
&lt;BR /&gt;
"aa" now = ("z" "b" "c" "d")&lt;BR /&gt;
&lt;BR /&gt;
Of course add to it to accomplish what you're after&lt;BR /&gt;
&lt;BR /&gt;
Jon Crouch wrote in message &amp;lt;7v7ngr$j0s21@adesknews2.autodesk.com&amp;gt;...&lt;BR /&gt;
&amp;gt;Command: !aa&lt;BR /&gt;
&amp;gt;("a" "b" "c" "d")&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;Command: (subst "xx" "z" aa)&lt;BR /&gt;
&amp;gt;("a" "b" "c" "d")&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;Command: (= aa (subst "xx" "z" aa))&lt;BR /&gt;
&amp;gt;nil&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;I was expecting a 'T'. Is this a bug or am I misunderstanding something?&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;</description>
      <pubDate>Wed, 27 Oct 1999 20:48:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/is-this-a-bug/m-p/903919#M163373</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>1999-10-27T20:48:07Z</dc:date>
    </item>
    <item>
      <title>Re: Is this a bug?</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/is-this-a-bug/m-p/903920#M163374</link>
      <description>The (=) function does not compare list contents, it&lt;BR /&gt;
just tells whether the two arguments are the same&lt;BR /&gt;
list.&lt;BR /&gt;
&lt;BR /&gt;
Try:&lt;BR /&gt;
&lt;BR /&gt;
  (equal aaa (subst "xx" "z" aa))&lt;BR /&gt;
&lt;BR /&gt;
Jon Crouch wrote:&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; Command: !aa&lt;BR /&gt;
&amp;gt; ("a" "b" "c" "d")&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; Command: (subst "xx" "z" aa)&lt;BR /&gt;
&amp;gt; ("a" "b" "c" "d")&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; Command: (= aa (subst "xx" "z" aa))&lt;BR /&gt;
&amp;gt; nil&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; I was expecting a 'T'. Is this a bug or am I misunderstanding something?&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
/*********************************************************/&lt;BR /&gt;
/*    Tony Tanzillo     Design Automation Consulting     */&lt;BR /&gt;
/* Programming &amp;amp; Customization for AutoCAD &amp;amp; Compatibles */&lt;BR /&gt;
/* ----------------------------------------------------- */&lt;BR /&gt;
/*            tony.tanzillo@worldnet.att.net             */&lt;BR /&gt;
/*    http://ourworld.compuserve.com/homepages/tonyt     */&lt;BR /&gt;
/*********************************************************/</description>
      <pubDate>Wed, 27 Oct 1999 20:48:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/is-this-a-bug/m-p/903920#M163374</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>1999-10-27T20:48:19Z</dc:date>
    </item>
    <item>
      <title>Re: Is this a bug?</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/is-this-a-bug/m-p/903921#M163375</link>
      <description>Jon;&lt;BR /&gt;
&lt;BR /&gt;
Following is a cut and paste from ACAD help on =/eq/equal and might give you&lt;BR /&gt;
an idea...&lt;BR /&gt;
&lt;BR /&gt;
The "=" function works only for numbers and strings, thus:&lt;BR /&gt;
&lt;BR /&gt;
Command: (= aa (subst "xx" "z" aa))&lt;BR /&gt;
nil&lt;BR /&gt;
&lt;BR /&gt;
The eq function determines whether expr1 and expr2 are bound to the same&lt;BR /&gt;
object (by setq, for example). Returns T if the two expressions are&lt;BR /&gt;
identical, and returns nil otherwise.&lt;BR /&gt;
&lt;BR /&gt;
Command: (eq aa (subst "xx" "z" aa))&lt;BR /&gt;
nil&lt;BR /&gt;
&lt;BR /&gt;
but the equal function determines whether expr1 and expr2 evaluate to the&lt;BR /&gt;
same thing.&lt;BR /&gt;
&lt;BR /&gt;
Command: (equal aa (subst "xx" "z" aa))&lt;BR /&gt;
T&lt;BR /&gt;
&lt;BR /&gt;
:-)&lt;BR /&gt;
&lt;BR /&gt;
Bo Nielsen&lt;BR /&gt;
&lt;BR /&gt;
Jon Crouch &lt;BETHJON&gt; wrote in message&lt;BR /&gt;
news:7v7ngr$j0s21@adesknews2.autodesk.com...&lt;BR /&gt;
&amp;gt; Command: !aa&lt;BR /&gt;
&amp;gt; ("a" "b" "c" "d")&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Command: (subst "xx" "z" aa)&lt;BR /&gt;
&amp;gt; ("a" "b" "c" "d")&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Command: (= aa (subst "xx" "z" aa))&lt;BR /&gt;
&amp;gt; nil&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; I was expecting a 'T'. Is this a bug or am I misunderstanding something?&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;/BETHJON&gt;</description>
      <pubDate>Wed, 27 Oct 1999 20:52:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/is-this-a-bug/m-p/903921#M163375</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>1999-10-27T20:52:50Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/is-this-a-bug/m-p/903922#M163376</link>
      <description>Tony,&lt;BR /&gt;
would you try this:&lt;BR /&gt;
&lt;BR /&gt;
(setq a nil b nil)&lt;BR /&gt;
(repeat 5000 (setq a (cons 0 a) b (cons 0 b))&lt;BR /&gt;
(equal a b)&lt;BR /&gt;
&lt;BR /&gt;
R14.01 vanishes on any larger number but return T on, say 4000</description>
      <pubDate>Thu, 28 Oct 1999 14:04:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/is-this-a-bug/m-p/903922#M163376</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>1999-10-28T14:04:03Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/is-this-a-bug/m-p/903923#M163377</link>
      <description>More precisely, 4656/4657:&lt;BR /&gt;
&lt;BR /&gt;
Command: (setq a nil b nil)(repeat 4656(setq a(cons 0 a)b(cons 0&lt;BR /&gt;
b))(equal a b))&lt;BR /&gt;
T&lt;BR /&gt;
&lt;BR /&gt;
Command: (setq a nil b nil)(repeat 4657(setq a(cons 0 a)b(cons 0&lt;BR /&gt;
b))(equal a b))&lt;BR /&gt;
Unexpected exception in lisp main!&lt;BR /&gt;
*Cancel*&lt;BR /&gt;
__&lt;BR /&gt;
Quan Kieu &lt;QKIEU&gt; wrote in message&lt;BR /&gt;
news:7v9m08$npj7@adesknews2.autodesk.com...&lt;BR /&gt;
&amp;gt; Tony,&lt;BR /&gt;
&amp;gt; would you try this:&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; (setq a nil b nil)&lt;BR /&gt;
&amp;gt; (repeat 5000 (setq a (cons 0 a) b (cons 0 b))&lt;BR /&gt;
&amp;gt; (equal a b)&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; R14.01 vanishes on any larger number but return T on, say 4000&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;/QKIEU&gt;</description>
      <pubDate>Thu, 28 Oct 1999 15:39:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/is-this-a-bug/m-p/903923#M163377</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>1999-10-28T15:39:51Z</dc:date>
    </item>
    <item>
      <title>Re: Is this a bug?</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/is-this-a-bug/m-p/903924#M163378</link>
      <description>If precision is set to 4 (default value) for a dimstyle this routine will&lt;BR /&gt;
return nil, anyother precesion setting and the routine returns the dimdec&lt;BR /&gt;
sys var for that sytle.&lt;BR /&gt;
&lt;BR /&gt;
(defun C:test (/ diminfo dimprec)&lt;BR /&gt;
  (setq&lt;BR /&gt;
    diminfo (entget (tblobjname "DIMSTYLE" "STANDARD"))&lt;BR /&gt;
    dimprec (cdr (assoc 271 diminfo))&lt;BR /&gt;
  )&lt;BR /&gt;
  dimprec&lt;BR /&gt;
  )&lt;BR /&gt;
&lt;BR /&gt;
--&lt;BR /&gt;
Ken Alexander&lt;BR /&gt;
Acad 2000&lt;BR /&gt;
Win 2000</description>
      <pubDate>Mon, 03 Jun 2002 06:47:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/is-this-a-bug/m-p/903924#M163378</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2002-06-03T06:47:32Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/is-this-a-bug/m-p/903925#M163379</link>
      <description>I find the 271 info for the dimstyle when I do this:&lt;BR /&gt;
&lt;BR /&gt;
(setq&lt;BR /&gt;
  diminfo (tblsearch "DIMSTYLE" "STANDARD")&lt;BR /&gt;
  dimprec (cdr (assoc 271 diminfo))&lt;BR /&gt;
)&lt;BR /&gt;
&lt;BR /&gt;
--&lt;BR /&gt;
Kevin Nehls&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
"Ken Alexander" &lt;KALEX&gt; wrote in message&lt;BR /&gt;
news:6765F17858CE3EC463F822E2BEA871C2@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; If precision is set to 4 (default value) for a dimstyle this routine will&lt;BR /&gt;
&amp;gt; return nil, anyother precesion setting and the routine returns the dimdec&lt;BR /&gt;
&amp;gt; sys var for that sytle.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; (defun C:test (/ diminfo dimprec)&lt;BR /&gt;
&amp;gt;   (setq&lt;BR /&gt;
&amp;gt;     diminfo (entget (tblobjname "DIMSTYLE" "STANDARD"))&lt;BR /&gt;
&amp;gt;     dimprec (cdr (assoc 271 diminfo))&lt;BR /&gt;
&amp;gt;   )&lt;BR /&gt;
&amp;gt;   dimprec&lt;BR /&gt;
&amp;gt;   )&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; --&lt;BR /&gt;
&amp;gt; Ken Alexander&lt;BR /&gt;
&amp;gt; Acad 2000&lt;BR /&gt;
&amp;gt; Win 2000&lt;BR /&gt;
&amp;gt;&lt;/KALEX&gt;</description>
      <pubDate>Mon, 03 Jun 2002 07:00:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/is-this-a-bug/m-p/903925#M163379</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2002-06-03T07:00:12Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/is-this-a-bug/m-p/903926#M163380</link>
      <description>Strange, I can not get 4 returned in any dimstyle I make, always get nil.&lt;BR /&gt;
&lt;BR /&gt;
--&lt;BR /&gt;
Ken Alexander&lt;BR /&gt;
Acad 2000&lt;BR /&gt;
Win 2000&lt;BR /&gt;
"Kevin Nehls" &lt;KEVINN at="" safeworks="" dot="" com=""&gt; wrote in message&lt;BR /&gt;
news:C9F22CC5FFCFE2A0C91E5637D078E8C2@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; I find the 271 info for the dimstyle when I do this:&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; (setq&lt;BR /&gt;
&amp;gt;   diminfo (tblsearch "DIMSTYLE" "STANDARD")&lt;BR /&gt;
&amp;gt;   dimprec (cdr (assoc 271 diminfo))&lt;BR /&gt;
&amp;gt; )&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; --&lt;BR /&gt;
&amp;gt; Kevin Nehls&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; "Ken Alexander" &lt;KALEX&gt; wrote in message&lt;BR /&gt;
&amp;gt; news:6765F17858CE3EC463F822E2BEA871C2@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; &amp;gt; If precision is set to 4 (default value) for a dimstyle this routine&lt;BR /&gt;
will&lt;BR /&gt;
&amp;gt; &amp;gt; return nil, anyother precesion setting and the routine returns the&lt;BR /&gt;
dimdec&lt;BR /&gt;
&amp;gt; &amp;gt; sys var for that sytle.&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; (defun C:test (/ diminfo dimprec)&lt;BR /&gt;
&amp;gt; &amp;gt;   (setq&lt;BR /&gt;
&amp;gt; &amp;gt;     diminfo (entget (tblobjname "DIMSTYLE" "STANDARD"))&lt;BR /&gt;
&amp;gt; &amp;gt;     dimprec (cdr (assoc 271 diminfo))&lt;BR /&gt;
&amp;gt; &amp;gt;   )&lt;BR /&gt;
&amp;gt; &amp;gt;   dimprec&lt;BR /&gt;
&amp;gt; &amp;gt;   )&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; --&lt;BR /&gt;
&amp;gt; &amp;gt; Ken Alexander&lt;BR /&gt;
&amp;gt; &amp;gt; Acad 2000&lt;BR /&gt;
&amp;gt; &amp;gt; Win 2000&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;/KALEX&gt;&lt;/KEVINN&gt;</description>
      <pubDate>Mon, 03 Jun 2002 07:00:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/is-this-a-bug/m-p/903926#M163380</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2002-06-03T07:00:12Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/is-this-a-bug/m-p/903927#M163381</link>
      <description>If it's not in the (entget (tblobjname...)) then as Kevin says, look for it via&lt;BR /&gt;
(tblsearch).  You can change its value by appending '(271 . #) to the (entget&lt;BR /&gt;
...) and (entmod)ing it.&lt;BR /&gt;
&lt;BR /&gt;
--&lt;BR /&gt;
John Uhden, Cadlantic/formerly CADvantage&lt;BR /&gt;
http://www.cadlantic.com&lt;BR /&gt;
Sea Girt, NJ&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
"Ken Alexander" &lt;KALEX&gt; wrote in message&lt;BR /&gt;
news:6765F17858CE3EC463F822E2BEA871C2@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; If precision is set to 4 (default value) for a dimstyle this routine will&lt;BR /&gt;
&amp;gt; return nil, anyother precesion setting and the routine returns the dimdec&lt;BR /&gt;
&amp;gt; sys var for that sytle.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; (defun C:test (/ diminfo dimprec)&lt;BR /&gt;
&amp;gt;   (setq&lt;BR /&gt;
&amp;gt;     diminfo (entget (tblobjname "DIMSTYLE" "STANDARD"))&lt;BR /&gt;
&amp;gt;     dimprec (cdr (assoc 271 diminfo))&lt;BR /&gt;
&amp;gt;   )&lt;BR /&gt;
&amp;gt;   dimprec&lt;BR /&gt;
&amp;gt;   )&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; --&lt;BR /&gt;
&amp;gt; Ken Alexander&lt;BR /&gt;
&amp;gt; Acad 2000&lt;BR /&gt;
&amp;gt; Win 2000&lt;BR /&gt;
&amp;gt;&lt;/KALEX&gt;</description>
      <pubDate>Mon, 03 Jun 2002 07:17:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/is-this-a-bug/m-p/903927#M163381</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2002-06-03T07:17:23Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/is-this-a-bug/m-p/903928#M163382</link>
      <description>Sorry Kevin, should have looked at your post better.&lt;BR /&gt;
Using tblsearch works. So am I correct in saying that&lt;BR /&gt;
defaults aren't listed in the entity lists?&lt;BR /&gt;
&lt;BR /&gt;
--&lt;BR /&gt;
Ken Alexander&lt;BR /&gt;
Acad 2000&lt;BR /&gt;
Win 2000&lt;BR /&gt;
"Kevin Nehls" &lt;KEVINN at="" safeworks="" dot="" com=""&gt; wrote in message&lt;BR /&gt;
news:C9F22CC5FFCFE2A0C91E5637D078E8C2@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; I find the 271 info for the dimstyle when I do this:&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; (setq&lt;BR /&gt;
&amp;gt;   diminfo (tblsearch "DIMSTYLE" "STANDARD")&lt;BR /&gt;
&amp;gt;   dimprec (cdr (assoc 271 diminfo))&lt;BR /&gt;
&amp;gt; )&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; --&lt;BR /&gt;
&amp;gt; Kevin Nehls&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; "Ken Alexander" &lt;KALEX&gt; wrote in message&lt;BR /&gt;
&amp;gt; news:6765F17858CE3EC463F822E2BEA871C2@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; &amp;gt; If precision is set to 4 (default value) for a dimstyle this routine&lt;BR /&gt;
will&lt;BR /&gt;
&amp;gt; &amp;gt; return nil, anyother precesion setting and the routine returns the&lt;BR /&gt;
dimdec&lt;BR /&gt;
&amp;gt; &amp;gt; sys var for that sytle.&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; (defun C:test (/ diminfo dimprec)&lt;BR /&gt;
&amp;gt; &amp;gt;   (setq&lt;BR /&gt;
&amp;gt; &amp;gt;     diminfo (entget (tblobjname "DIMSTYLE" "STANDARD"))&lt;BR /&gt;
&amp;gt; &amp;gt;     dimprec (cdr (assoc 271 diminfo))&lt;BR /&gt;
&amp;gt; &amp;gt;   )&lt;BR /&gt;
&amp;gt; &amp;gt;   dimprec&lt;BR /&gt;
&amp;gt; &amp;gt;   )&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; --&lt;BR /&gt;
&amp;gt; &amp;gt; Ken Alexander&lt;BR /&gt;
&amp;gt; &amp;gt; Acad 2000&lt;BR /&gt;
&amp;gt; &amp;gt; Win 2000&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;/KALEX&gt;&lt;/KEVINN&gt;</description>
      <pubDate>Mon, 03 Jun 2002 07:23:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/is-this-a-bug/m-p/903928#M163382</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2002-06-03T07:23:33Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/is-this-a-bug/m-p/903929#M163383</link>
      <description>Some items are in the list returned by (tblsearch ...), some other items &lt;BR /&gt;
are in the list returned by (entget (tblobjname ...)), and some items &lt;BR /&gt;
aren't available in any list if they are set to the default value.  For &lt;BR /&gt;
AutoCAD 2000 and 2000i:&lt;BR /&gt;
&lt;BR /&gt;
  (setq TblsearchList  (tblsearch "DIMSTYLE" StyleName)&lt;BR /&gt;
        TblobjnameList (entget (tblobjname "DIMSTYLE" StyleName))&lt;BR /&gt;
        DefaultList    (list '(79 . 0)  ; DIMAZIN&lt;BR /&gt;
                         '(148 . 0)  ; DIMALTRND&lt;BR /&gt;
                         (cons 179 (getvar "DIMADEC")) ; DIMADEC&lt;BR /&gt;
                         '(276 . 0)  ; DIMFRAC&lt;BR /&gt;
                         '(277 . 2)  ; DIMLUNIT&lt;BR /&gt;
                         '(278 . ".")  ; DIMDSEP&lt;BR /&gt;
                         '(279 . 0)  ; DIMTMOVE&lt;BR /&gt;
                         '(289 . 3)  ; DIMATFIT&lt;BR /&gt;
                         '(341 . "")  ; DIMLDRBLK&lt;BR /&gt;
                         '(342 . "")  ; DIMBLK&lt;BR /&gt;
                         '(343 . "")  ; DIMBLK1&lt;BR /&gt;
                         '(344 . "")  ; DIMBLK2&lt;BR /&gt;
                         '(371 . -2)  ; DIMLWD&lt;BR /&gt;
                         '(372 . -2)  ; DIMLWE&lt;BR /&gt;
                        )&lt;BR /&gt;
  )&lt;BR /&gt;
  &lt;BR /&gt;
Then you search those three lists, in the order in which they were &lt;BR /&gt;
created, until you find what you want and stop searching.&lt;BR /&gt;
&lt;BR /&gt;
This also works for AutoCAD 2002 except I'm not positive that it always &lt;BR /&gt;
returns the correct value of DIMADEC (the handling of which changed in &lt;BR /&gt;
AutoCAD 2002).&lt;BR /&gt;
&lt;BR /&gt;
See the download page at http://www.fleming-group.com for a program that &lt;BR /&gt;
returns a list of all the settings of a dimension style in one list.&lt;BR /&gt;
&lt;BR /&gt;
jrf&lt;BR /&gt;
Member of the Autodesk Discussion Forum Moderator Program&lt;BR /&gt;
Please do not email questions unless you wish to hire my services&lt;BR /&gt;
&lt;BR /&gt;
In article &amp;lt;9B78D5C9D8F9C2A83ADE7FEE9D0AD853@in.WebX.maYIadrTaRb&amp;gt;, Ken &lt;BR /&gt;
Alexander wrote:&lt;BR /&gt;
&amp;gt; Sorry Kevin, should have looked at your post better.&lt;BR /&gt;
&amp;gt; Using tblsearch works. So am I correct in saying that&lt;BR /&gt;
&amp;gt; defaults aren't listed in the entity lists?&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; --&lt;BR /&gt;
&amp;gt; Ken Alexander&lt;BR /&gt;
&amp;gt; Acad 2000&lt;BR /&gt;
&amp;gt; Win 2000&lt;BR /&gt;
&amp;gt; "Kevin Nehls" &lt;KEVINN at="" safeworks="" dot="" com=""&gt; wrote in message&lt;BR /&gt;
&amp;gt; news:C9F22CC5FFCFE2A0C91E5637D078E8C2@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; &amp;gt; I find the 271 info for the dimstyle when I do this:&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; (setq&lt;BR /&gt;
&amp;gt; &amp;gt;   diminfo (tblsearch "DIMSTYLE" "STANDARD")&lt;BR /&gt;
&amp;gt; &amp;gt;   dimprec (cdr (assoc 271 diminfo))&lt;BR /&gt;
&amp;gt; &amp;gt; )&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; --&lt;BR /&gt;
&amp;gt; &amp;gt; Kevin Nehls&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; "Ken Alexander" &lt;KALEX&gt; wrote in message&lt;BR /&gt;
&amp;gt; &amp;gt; news:6765F17858CE3EC463F822E2BEA871C2@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; If precision is set to 4 (default value) for a dimstyle this routine&lt;BR /&gt;
&amp;gt; will&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; return nil, anyother precesion setting and the routine returns the&lt;BR /&gt;
&amp;gt; dimdec&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; sys var for that sytle.&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; (defun C:test (/ diminfo dimprec)&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;   (setq&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;     diminfo (entget (tblobjname "DIMSTYLE" "STANDARD"))&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;     dimprec (cdr (assoc 271 diminfo))&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;   )&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;   dimprec&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;   )&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; --&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; Ken Alexander&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; Acad 2000&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; Win 2000&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt;&lt;/KALEX&gt;&lt;/KEVINN&gt;</description>
      <pubDate>Tue, 04 Jun 2002 04:02:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/is-this-a-bug/m-p/903929#M163383</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2002-06-04T04:02:51Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/is-this-a-bug/m-p/903930#M163384</link>
      <description>Thanks Jon&lt;BR /&gt;
&lt;BR /&gt;
--&lt;BR /&gt;
Ken Alexander&lt;BR /&gt;
Acad 2000&lt;BR /&gt;
Win 2000&lt;BR /&gt;
"Jon Fleming" &lt;JONF&gt; wrote in message&lt;BR /&gt;
news:VA.00001187.3838176d@fleming-group.com...&lt;BR /&gt;
&amp;gt; Some items are in the list returned by (tblsearch ...), some other items&lt;BR /&gt;
&amp;gt; are in the list returned by (entget (tblobjname ...)), and some items&lt;BR /&gt;
&amp;gt; aren't available in any list if they are set to the default value.  For&lt;BR /&gt;
&amp;gt; AutoCAD 2000 and 2000i:&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;   (setq TblsearchList  (tblsearch "DIMSTYLE" StyleName)&lt;BR /&gt;
&amp;gt;         TblobjnameList (entget (tblobjname "DIMSTYLE" StyleName))&lt;BR /&gt;
&amp;gt;         DefaultList    (list '(79 . 0)  ; DIMAZIN&lt;BR /&gt;
&amp;gt;                          '(148 . 0)  ; DIMALTRND&lt;BR /&gt;
&amp;gt;                          (cons 179 (getvar "DIMADEC")) ; DIMADEC&lt;BR /&gt;
&amp;gt;                          '(276 . 0)  ; DIMFRAC&lt;BR /&gt;
&amp;gt;                          '(277 . 2)  ; DIMLUNIT&lt;BR /&gt;
&amp;gt;                          '(278 . ".")  ; DIMDSEP&lt;BR /&gt;
&amp;gt;                          '(279 . 0)  ; DIMTMOVE&lt;BR /&gt;
&amp;gt;                          '(289 . 3)  ; DIMATFIT&lt;BR /&gt;
&amp;gt;                          '(341 . "")  ; DIMLDRBLK&lt;BR /&gt;
&amp;gt;                          '(342 . "")  ; DIMBLK&lt;BR /&gt;
&amp;gt;                          '(343 . "")  ; DIMBLK1&lt;BR /&gt;
&amp;gt;                          '(344 . "")  ; DIMBLK2&lt;BR /&gt;
&amp;gt;                          '(371 . -2)  ; DIMLWD&lt;BR /&gt;
&amp;gt;                          '(372 . -2)  ; DIMLWE&lt;BR /&gt;
&amp;gt;                         )&lt;BR /&gt;
&amp;gt;   )&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Then you search those three lists, in the order in which they were&lt;BR /&gt;
&amp;gt; created, until you find what you want and stop searching.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; This also works for AutoCAD 2002 except I'm not positive that it always&lt;BR /&gt;
&amp;gt; returns the correct value of DIMADEC (the handling of which changed in&lt;BR /&gt;
&amp;gt; AutoCAD 2002).&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; See the download page at http://www.fleming-group.com for a program that&lt;BR /&gt;
&amp;gt; returns a list of all the settings of a dimension style in one list.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; jrf&lt;BR /&gt;
&amp;gt; Member of the Autodesk Discussion Forum Moderator Program&lt;BR /&gt;
&amp;gt; Please do not email questions unless you wish to hire my services&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; In article &amp;lt;9B78D5C9D8F9C2A83ADE7FEE9D0AD853@in.WebX.maYIadrTaRb&amp;gt;, Ken&lt;BR /&gt;
&amp;gt; Alexander wrote:&lt;BR /&gt;
&amp;gt; &amp;gt; Sorry Kevin, should have looked at your post better.&lt;BR /&gt;
&amp;gt; &amp;gt; Using tblsearch works. So am I correct in saying that&lt;BR /&gt;
&amp;gt; &amp;gt; defaults aren't listed in the entity lists?&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; --&lt;BR /&gt;
&amp;gt; &amp;gt; Ken Alexander&lt;BR /&gt;
&amp;gt; &amp;gt; Acad 2000&lt;BR /&gt;
&amp;gt; &amp;gt; Win 2000&lt;BR /&gt;
&amp;gt; &amp;gt; "Kevin Nehls" &lt;KEVINN at="" safeworks="" dot="" com=""&gt; wrote in message&lt;BR /&gt;
&amp;gt; &amp;gt; news:C9F22CC5FFCFE2A0C91E5637D078E8C2@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; I find the 271 info for the dimstyle when I do this:&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; (setq&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;   diminfo (tblsearch "DIMSTYLE" "STANDARD")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;   dimprec (cdr (assoc 271 diminfo))&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; )&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; --&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; Kevin Nehls&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; "Ken Alexander" &lt;KALEX&gt; wrote in message&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; news:6765F17858CE3EC463F822E2BEA871C2@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; If precision is set to 4 (default value) for a dimstyle this routine&lt;BR /&gt;
&amp;gt; &amp;gt; will&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; return nil, anyother precesion setting and the routine returns the&lt;BR /&gt;
&amp;gt; &amp;gt; dimdec&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; sys var for that sytle.&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; (defun C:test (/ diminfo dimprec)&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;   (setq&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;     diminfo (entget (tblobjname "DIMSTYLE" "STANDARD"))&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;     dimprec (cdr (assoc 271 diminfo))&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;   )&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;   dimprec&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;   )&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; --&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; Ken Alexander&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; Acad 2000&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; Win 2000&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;/KALEX&gt;&lt;/KEVINN&gt;&lt;/JONF&gt;</description>
      <pubDate>Tue, 04 Jun 2002 04:46:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/is-this-a-bug/m-p/903930#M163384</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2002-06-04T04:46:18Z</dc:date>
    </item>
  </channel>
</rss>

