<?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: SV: DIM Lisp routine in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/dim-lisp-routine/m-p/845647#M160105</link>
    <description>Since Jimmy hasn't responded yet, here is a dump of a linear dimension, in&lt;BR /&gt;
paper space, with a parent style that is a copy of the Standard style, with&lt;BR /&gt;
the exception of "Scale dimensions to layout (paperspace)" which is set&lt;BR /&gt;
(DimScale=0).&lt;BR /&gt;
&lt;BR /&gt;
((-1 . &lt;ENTITY ="" 19b1238=""&gt;)&lt;BR /&gt;
 (0 . "DIMENSION")&lt;BR /&gt;
 (330 . &lt;ENTITY ="" 19b10d8=""&gt;)&lt;BR /&gt;
 (5 . "5F")&lt;BR /&gt;
 (100 . "AcDbEntity")&lt;BR /&gt;
 (67 . 1)&lt;BR /&gt;
 (410 . "Layout1")&lt;BR /&gt;
 (8 . "0")&lt;BR /&gt;
 (100 . "AcDbDimension")&lt;BR /&gt;
 (2 . "*D2")&lt;BR /&gt;
 (10 3.52668 4.71551 0.0)&lt;BR /&gt;
 (11 4.23168 4.71551 0.0)&lt;BR /&gt;
 (12 0.0 0.0 0.0)&lt;BR /&gt;
 (70 . 32)&lt;BR /&gt;
 (1 . "")&lt;BR /&gt;
 (71 . 5)&lt;BR /&gt;
 (72 . 1)&lt;BR /&gt;
 (41 . 1.0)&lt;BR /&gt;
 (42 . 0.984754)&lt;BR /&gt;
 (52 . 0.0)&lt;BR /&gt;
 (53 . 0.0)&lt;BR /&gt;
 (54 . 0.0)&lt;BR /&gt;
 (51 . 0.0)&lt;BR /&gt;
 (210 0.0 0.0 1.0)&lt;BR /&gt;
 (3 . "Copy of Standard")&lt;BR /&gt;
 (100 . "AcDbAlignedDimension")&lt;BR /&gt;
 (13 2.54193 4.0 0.0)&lt;BR /&gt;
 (14 3.52668 4.0 0.0)&lt;BR /&gt;
 (15 0.0 0.0 0.0)&lt;BR /&gt;
 (16 0.0 0.0 0.0)&lt;BR /&gt;
 (40 . 0.0)&lt;BR /&gt;
 (50 . 0.0)&lt;BR /&gt;
 (100 . "AcDbRotatedDimension")&lt;BR /&gt;
 (-3&lt;BR /&gt;
  ("ACAD"&lt;BR /&gt;
   (1000 . "DSTYLE")&lt;BR /&gt;
   (1002 . "{")&lt;BR /&gt;
    (1070 . 40)&lt;BR /&gt;
    (1040 . 1.0)&lt;BR /&gt;
   (1002 . "}")&lt;BR /&gt;
  )&lt;BR /&gt;
 )&lt;BR /&gt;
)&lt;BR /&gt;
&lt;BR /&gt;
Here is the same type of dim within a viewport. Doesn't look weird to me.&lt;BR /&gt;
&lt;BR /&gt;
((-1 . &lt;ENTITY ="" 19b12b8=""&gt;)&lt;BR /&gt;
 (0 . "DIMENSION")&lt;BR /&gt;
 (330 . &lt;ENTITY ="" 19b10f8=""&gt;)&lt;BR /&gt;
 (5 . "6F")&lt;BR /&gt;
 (100 . "AcDbEntity")&lt;BR /&gt;
 (67 . 0)&lt;BR /&gt;
 (410 . "Model")&lt;BR /&gt;
 (8 . "0")&lt;BR /&gt;
 (100 . "AcDbDimension")&lt;BR /&gt;
 (2 . "*D3")&lt;BR /&gt;
 (10 10.2381 10.8514 0.0)&lt;BR /&gt;
 (11 19.5981 10.8514 0.0)&lt;BR /&gt;
 (12 0.0 0.0 0.0)&lt;BR /&gt;
 (70 . 32)&lt;BR /&gt;
 (1 . "")&lt;BR /&gt;
 (71 . 5)&lt;BR /&gt;
 (72 . 1)&lt;BR /&gt;
 (41 . 1.0)&lt;BR /&gt;
 (42 . 13.7737)&lt;BR /&gt;
 (52 . 0.0)&lt;BR /&gt;
 (53 . 0.0)&lt;BR /&gt;
 (54 . 0.0)&lt;BR /&gt;
 (51 . 0.0)&lt;BR /&gt;
 (210 0.0 0.0 1.0)&lt;BR /&gt;
 (3 . "Copy of Standard")&lt;BR /&gt;
 (100 . "AcDbAlignedDimension")&lt;BR /&gt;
 (13 -3.53564 2.38287 0.0)&lt;BR /&gt;
 (14 10.2381 2.38287 0.0)&lt;BR /&gt;
 (15 0.0 0.0 0.0)&lt;BR /&gt;
 (16 0.0 0.0 0.0)&lt;BR /&gt;
 (40 . 0.0)&lt;BR /&gt;
 (50 . 0.0)&lt;BR /&gt;
 (100 . "AcDbRotatedDimension")&lt;BR /&gt;
 (-3&lt;BR /&gt;
  ("ACAD"&lt;BR /&gt;
   (1000 . "DSTYLE")&lt;BR /&gt;
    (1002 . "{")&lt;BR /&gt;
     (1070 . 40)&lt;BR /&gt;
     (1040 . 12.0)&lt;BR /&gt;
    (1002 . "}"&lt;BR /&gt;
   )&lt;BR /&gt;
  )&lt;BR /&gt;
 )&lt;BR /&gt;
)&lt;BR /&gt;
&lt;BR /&gt;
--&lt;BR /&gt;
R. Robert Bell, MCSE&lt;BR /&gt;
Network Administrator (or, Modern-day Wizard)&lt;BR /&gt;
(remove the "not." in my address for direct e-mail)&lt;/ENTITY&gt;&lt;/ENTITY&gt;&lt;/ENTITY&gt;&lt;/ENTITY&gt;</description>
    <pubDate>Thu, 24 Feb 2000 15:44:32 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2000-02-24T15:44:32Z</dc:date>
    <item>
      <title>DIM Lisp routine</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/dim-lisp-routine/m-p/845629#M160087</link>
      <description>I am not a real lisp expert, but I have written a number of routines which I&lt;BR /&gt;
use in everyday work.  I have been trying to do the following:&lt;BR /&gt;
Select a dimension from on screen and have autocad change to that layer&lt;BR /&gt;
and set dtimscale equal to the picked object .  I've been able to do the&lt;BR /&gt;
layer part, but have not been able to retrieve the dimscale in a usable&lt;BR /&gt;
form.&lt;BR /&gt;
Any help would be appreciated.&lt;BR /&gt;
Thanks&lt;BR /&gt;
Clifford Leblang</description>
      <pubDate>Mon, 14 Feb 2000 00:25:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/dim-lisp-routine/m-p/845629#M160087</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-02-14T00:25:49Z</dc:date>
    </item>
    <item>
      <title>Re: DIM Lisp routine</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/dim-lisp-routine/m-p/845630#M160088</link>
      <description>It takes a couple of steps. After you select the dimension, you'll find&lt;BR /&gt;
the dimstyle in dxf group 3, i.e.,&lt;BR /&gt;
&lt;BR /&gt;
(setq dimstl (cdr (assoc 3 ent)))&lt;BR /&gt;
&lt;BR /&gt;
Given this, you need to search the Dimstyle Table to determine the&lt;BR /&gt;
dimscale assigned to that style:&lt;BR /&gt;
&lt;BR /&gt;
(setq dimscl (cdr (assoc 40 (tblsearch "dimstyle" dimstl))))&lt;BR /&gt;
&lt;BR /&gt;
This assumes, of course, that the selected dimension uses the dimscale&lt;BR /&gt;
assigned to its style, and wasn't overridden.&lt;BR /&gt;
___&lt;BR /&gt;
"Clifford Leblang" &lt;CLIFFLEB&gt; wrote in message&lt;BR /&gt;
news:887i15$oi53@adesknews2.autodesk.com...&lt;BR /&gt;
&amp;gt; I am not a real lisp expert, but I have written a number of routines&lt;BR /&gt;
which I&lt;BR /&gt;
&amp;gt; use in everyday work.  I have been trying to do the following:&lt;BR /&gt;
&amp;gt; Select a dimension from on screen and have autocad change to that layer&lt;BR /&gt;
&amp;gt; and set dtimscale equal to the picked object .  I've been able to do&lt;BR /&gt;
the&lt;BR /&gt;
&amp;gt; layer part, but have not been able to retrieve the dimscale in a usable&lt;BR /&gt;
&amp;gt; form.&lt;BR /&gt;
&amp;gt; Any help would be appreciated.&lt;BR /&gt;
&amp;gt; Thanks&lt;BR /&gt;
&amp;gt; Clifford Leblang&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;/CLIFFLEB&gt;</description>
      <pubDate>Mon, 14 Feb 2000 02:10:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/dim-lisp-routine/m-p/845630#M160088</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-02-14T02:10:51Z</dc:date>
    </item>
    <item>
      <title>Re: DIM Lisp routine</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/dim-lisp-routine/m-p/845631#M160089</link>
      <description>I am not a real lisp expert, but I have written a number of routines which I&lt;BR /&gt;
use in everyday work.  I have been trying to do the following:&lt;BR /&gt;
Select a dimension from on screen and have autocad change to that layer&lt;BR /&gt;
and set dtimscale equal to the picked object .  I've been able to do the&lt;BR /&gt;
layer part, but have not been able to retrieve the dimscale in a usable&lt;BR /&gt;
form.&lt;BR /&gt;
Any help would be appreciated.&lt;BR /&gt;
Thanks&lt;BR /&gt;
Clifford Leblang</description>
      <pubDate>Sat, 19 Feb 2000 00:11:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/dim-lisp-routine/m-p/845631#M160089</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-02-19T00:11:10Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/dim-lisp-routine/m-p/845632#M160090</link>
      <description>This might not be the best way.  But, couldn't you find the dimension style&lt;BR /&gt;
of the selected dimension, then set the current dimension style to that&lt;BR /&gt;
(via something like (command "dim" "res" selected_dim)).  Now do (getvar&lt;BR /&gt;
"dimscale") this should return the dimscale of the current dimstyle&lt;BR /&gt;
(atleast it works that way in R12).&lt;BR /&gt;
&lt;BR /&gt;
Just a thought.  &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;
-- &lt;BR /&gt;
Kevin Nehls&lt;BR /&gt;
for reply remove -ns-&lt;BR /&gt;
&lt;BR /&gt;
Clifford Leblang &lt;CLIFFLEB&gt; wrote in article&lt;BR /&gt;
&amp;lt;88kn1e$c2t11@adesknews2.autodesk.com&amp;gt;...&lt;BR /&gt;
&amp;gt; I am not a real lisp expert, but I have written a number of routines&lt;BR /&gt;
which I&lt;BR /&gt;
&amp;gt; use in everyday work.  I have been trying to do the following:&lt;BR /&gt;
&amp;gt; Select a dimension from on screen and have autocad change to that layer&lt;BR /&gt;
&amp;gt; and set dtimscale equal to the picked object .  I've been able to do the&lt;BR /&gt;
&amp;gt; layer part, but have not been able to retrieve the dimscale in a usable&lt;BR /&gt;
&amp;gt; form.&lt;BR /&gt;
&amp;gt; Any help would be appreciated.&lt;BR /&gt;
&amp;gt; Thanks&lt;BR /&gt;
&amp;gt; Clifford Leblang&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt;&lt;/CLIFFLEB&gt;</description>
      <pubDate>Sat, 19 Feb 2000 00:20:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/dim-lisp-routine/m-p/845632#M160090</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-02-19T00:20:53Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/dim-lisp-routine/m-p/845633#M160091</link>
      <description>Kevin,&lt;BR /&gt;
Thanks for your quick reply, but what I believe you're suggesting won't work&lt;BR /&gt;
in this case.  I have my sysvar "dimscale" set to zero, so that dimensions&lt;BR /&gt;
created in "floating model space" (as it used to be called??) will&lt;BR /&gt;
automatically be created with an override to match the scale of the&lt;BR /&gt;
viewport.  Then, working in (tiled) model space, I would want to add&lt;BR /&gt;
additional dimensions which will show in that paper space viewport at the&lt;BR /&gt;
correct scale. This can of course be accomplished manually, but I'm looking&lt;BR /&gt;
for a way to automate the process.&lt;BR /&gt;
thanks,&lt;BR /&gt;
Cliff&lt;BR /&gt;
&lt;BR /&gt;
Kevin Nehls &lt;KEVINN&gt; wrote in message&lt;BR /&gt;
news:01bf7a6f$2c93b760$6b0c10ac@toc0156...&lt;BR /&gt;
&amp;gt; This might not be the best way.  But, couldn't you find the dimension&lt;BR /&gt;
style&lt;BR /&gt;
&amp;gt; of the selected dimension, then set the current dimension style to that&lt;BR /&gt;
&amp;gt; (via something like (command "dim" "res" selected_dim)).  Now do (getvar&lt;BR /&gt;
&amp;gt; "dimscale") this should return the dimscale of the current dimstyle&lt;BR /&gt;
&amp;gt; (atleast it works that way in R12).&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Just a thought.  &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;
&amp;gt; --&lt;BR /&gt;
&amp;gt; Kevin Nehls&lt;BR /&gt;
&amp;gt; for reply remove -ns-&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Clifford Leblang &lt;CLIFFLEB&gt; wrote in article&lt;BR /&gt;
&amp;gt; &amp;lt;88kn1e$c2t11@adesknews2.autodesk.com&amp;gt;...&lt;BR /&gt;
&amp;gt; &amp;gt; I am not a real lisp expert, but I have written a number of routines&lt;BR /&gt;
&amp;gt; which I&lt;BR /&gt;
&amp;gt; &amp;gt; use in everyday work.  I have been trying to do the following:&lt;BR /&gt;
&amp;gt; &amp;gt; Select a dimension from on screen and have autocad change to that layer&lt;BR /&gt;
&amp;gt; &amp;gt; and set dtimscale equal to the picked object .  I've been able to do the&lt;BR /&gt;
&amp;gt; &amp;gt; layer part, but have not been able to retrieve the dimscale in a usable&lt;BR /&gt;
&amp;gt; &amp;gt; form.&lt;BR /&gt;
&amp;gt; &amp;gt; Any help would be appreciated.&lt;BR /&gt;
&amp;gt; &amp;gt; Thanks&lt;BR /&gt;
&amp;gt; &amp;gt; Clifford Leblang&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;&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;/CLIFFLEB&gt;&lt;/KEVINN&gt;</description>
      <pubDate>Sat, 19 Feb 2000 14:05:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/dim-lisp-routine/m-p/845633#M160091</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-02-19T14:05:45Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/dim-lisp-routine/m-p/845634#M160092</link>
      <description>Clifford,&lt;BR /&gt;
&lt;BR /&gt;
If I understand correctly, you want to get the dimscale of a selected&lt;BR /&gt;
dimension.  If the dimension does not have a dimscale override, then you can&lt;BR /&gt;
obtain dimscale by getting the dimension style name and then using the&lt;BR /&gt;
combination of "tblobject" and "entget" on the dimstyle name.  However, if&lt;BR /&gt;
the selected dimension has a dimscale override, then you will need to get&lt;BR /&gt;
your scale via the "entsel" function with the "applist" option.&lt;BR /&gt;
&lt;BR /&gt;
Below is a example:&lt;BR /&gt;
&lt;BR /&gt;
(defun c:test ( / ent applist dimscale dimstyle dimstyledata)&lt;BR /&gt;
  (setq ent (entsel "\nSelect a dimension: "))&lt;BR /&gt;
  (if&lt;BR /&gt;
    (and&lt;BR /&gt;
      ent&lt;BR /&gt;
      (= "DIMENSION" (cdr (assoc 0 (setq ent (entget (car ent)&lt;BR /&gt;
'("ACAD"))))))&lt;BR /&gt;
    )&lt;BR /&gt;
    (if&lt;BR /&gt;
      (and&lt;BR /&gt;
        (setq applist (assoc -3 ent))&lt;BR /&gt;
        (setq applist (assoc 1040 (cdadr applist)))&lt;BR /&gt;
      )&lt;BR /&gt;
      (setq dimscale (cdr applist))&lt;BR /&gt;
      (progn&lt;BR /&gt;
        (setq dimstyle (cdr (assoc 3 ent)))&lt;BR /&gt;
        (setq dimstyledata (entget (tblobjname "DIMSTYLE" dimstyle )))&lt;BR /&gt;
        (setq dimscale (cdr (assoc 40 dimstyledata)))&lt;BR /&gt;
      )&lt;BR /&gt;
    )&lt;BR /&gt;
    (progn&lt;BR /&gt;
      (princ "\nPlease try again. ")&lt;BR /&gt;
      (princ)&lt;BR /&gt;
    )&lt;BR /&gt;
  )&lt;BR /&gt;
)&lt;BR /&gt;
&lt;BR /&gt;
Hope that helps.&lt;BR /&gt;
&lt;BR /&gt;
Regards,&lt;BR /&gt;
Steve Doman&lt;BR /&gt;
&lt;BR /&gt;
"Clifford Leblang" wrote:&lt;BR /&gt;
&amp;gt; I am not a real lisp expert, but I have written a number&lt;BR /&gt;
&amp;gt; of routines which I use in everyday work.  I have been&lt;BR /&gt;
&amp;gt; trying to do the following: Select a dimension from on&lt;BR /&gt;
&amp;gt; screen and have autocad change to that layer and set&lt;BR /&gt;
&amp;gt; dtimscale equal to the picked object .  I've been able to&lt;BR /&gt;
&amp;gt; do the layer part, but have not been able to retrieve the&lt;BR /&gt;
&amp;gt; dimscale in a usable form.&lt;BR /&gt;
&amp;gt; Any help would be appreciated.&lt;BR /&gt;
&amp;gt; Thanks&lt;BR /&gt;
&amp;gt; Clifford Leblang</description>
      <pubDate>Sat, 19 Feb 2000 15:00:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/dim-lisp-routine/m-p/845634#M160092</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-02-19T15:00:08Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/dim-lisp-routine/m-p/845635#M160093</link>
      <description>Steve,&lt;BR /&gt;
Thank you, Thank you&lt;BR /&gt;
I believe you have solved my problem.  I tested your routine quick quick in&lt;BR /&gt;
Acad&lt;BR /&gt;
and it indeed returns to dimscale needed (except if dimscale = 1, it seems&lt;BR /&gt;
to return nil)&lt;BR /&gt;
I don't quite understand this, but I'll try to incorporate the routine into&lt;BR /&gt;
the lisp program I've been trying to write.  I hope its OK to use your&lt;BR /&gt;
routine, and share it around the office.  I'll let you know if all is&lt;BR /&gt;
successful.&lt;BR /&gt;
Thanks again&lt;BR /&gt;
Cliff&lt;BR /&gt;
&lt;BR /&gt;
Steve Doman &lt;LETSKEEPITTOTHENEWGROUP&gt; wrote in message&lt;BR /&gt;
news:88n71b$fg516@adesknews2.autodesk.com...&lt;BR /&gt;
&amp;gt; Clifford,&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; If I understand correctly, you want to get the dimscale of a selected&lt;BR /&gt;
&amp;gt; dimension.  If the dimension does not have a dimscale override, then you&lt;BR /&gt;
can&lt;BR /&gt;
&amp;gt; obtain dimscale by getting the dimension style name and then using the&lt;BR /&gt;
&amp;gt; combination of "tblobject" and "entget" on the dimstyle name.  However, if&lt;BR /&gt;
&amp;gt; the selected dimension has a dimscale override, then you will need to get&lt;BR /&gt;
&amp;gt; your scale via the "entsel" function with the "applist" option.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Below is a example:&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; (defun c:test ( / ent applist dimscale dimstyle dimstyledata)&lt;BR /&gt;
&amp;gt;   (setq ent (entsel "\nSelect a dimension: "))&lt;BR /&gt;
&amp;gt;   (if&lt;BR /&gt;
&amp;gt;     (and&lt;BR /&gt;
&amp;gt;       ent&lt;BR /&gt;
&amp;gt;       (= "DIMENSION" (cdr (assoc 0 (setq ent (entget (car ent)&lt;BR /&gt;
&amp;gt; '("ACAD"))))))&lt;BR /&gt;
&amp;gt;     )&lt;BR /&gt;
&amp;gt;     (if&lt;BR /&gt;
&amp;gt;       (and&lt;BR /&gt;
&amp;gt;         (setq applist (assoc -3 ent))&lt;BR /&gt;
&amp;gt;         (setq applist (assoc 1040 (cdadr applist)))&lt;BR /&gt;
&amp;gt;       )&lt;BR /&gt;
&amp;gt;       (setq dimscale (cdr applist))&lt;BR /&gt;
&amp;gt;       (progn&lt;BR /&gt;
&amp;gt;         (setq dimstyle (cdr (assoc 3 ent)))&lt;BR /&gt;
&amp;gt;         (setq dimstyledata (entget (tblobjname "DIMSTYLE" dimstyle )))&lt;BR /&gt;
&amp;gt;         (setq dimscale (cdr (assoc 40 dimstyledata)))&lt;BR /&gt;
&amp;gt;       )&lt;BR /&gt;
&amp;gt;     )&lt;BR /&gt;
&amp;gt;     (progn&lt;BR /&gt;
&amp;gt;       (princ "\nPlease try again. ")&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;&lt;BR /&gt;
&amp;gt; Hope that helps.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Regards,&lt;BR /&gt;
&amp;gt; Steve Doman&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; "Clifford Leblang" wrote:&lt;BR /&gt;
&amp;gt; &amp;gt; I am not a real lisp expert, but I have written a number&lt;BR /&gt;
&amp;gt; &amp;gt; of routines which I use in everyday work.  I have been&lt;BR /&gt;
&amp;gt; &amp;gt; trying to do the following: Select a dimension from on&lt;BR /&gt;
&amp;gt; &amp;gt; screen and have autocad change to that layer and set&lt;BR /&gt;
&amp;gt; &amp;gt; dtimscale equal to the picked object .  I've been able to&lt;BR /&gt;
&amp;gt; &amp;gt; do the layer part, but have not been able to retrieve the&lt;BR /&gt;
&amp;gt; &amp;gt; dimscale in a usable form.&lt;BR /&gt;
&amp;gt; &amp;gt; Any help would be appreciated.&lt;BR /&gt;
&amp;gt; &amp;gt; Thanks&lt;BR /&gt;
&amp;gt; &amp;gt; Clifford Leblang&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;/LETSKEEPITTOTHENEWGROUP&gt;</description>
      <pubDate>Sun, 20 Feb 2000 14:09:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/dim-lisp-routine/m-p/845635#M160093</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-02-20T14:09:09Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/dim-lisp-routine/m-p/845636#M160094</link>
      <description>Clifford,&lt;BR /&gt;
&lt;BR /&gt;
Glad to have helped and please use the code any way you&lt;BR /&gt;
wish.  It was an interesting problem.&lt;BR /&gt;
&lt;BR /&gt;
I don't know why the routine returns nill when dimscale&lt;BR /&gt;
equal to 1 for I am unable to reproduce that error.  I've&lt;BR /&gt;
tested the routine on a dimension where the dimscale (equal&lt;BR /&gt;
to 1) was controlled by the dimstyle.  And I also tested on&lt;BR /&gt;
a dimension where the dimcale was controlled by a user&lt;BR /&gt;
applied dimoverride, as well as an AutoCAD applied&lt;BR /&gt;
dimoverride (per vport where the dimstyle's dimscale is set&lt;BR /&gt;
at 0 and the vport vscale is 1).&lt;BR /&gt;
&lt;BR /&gt;
Perhaps you can send me a small drawing with the problematic&lt;BR /&gt;
dimension?  If so, please send to the address below.&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
&lt;BR /&gt;
Steve Doman&lt;BR /&gt;
sdoman@teleport.com&lt;BR /&gt;
&lt;BR /&gt;
"Clifford Leblang" wrote:&lt;BR /&gt;
&amp;gt; Steve,&lt;BR /&gt;
&amp;gt; Thank you, Thank you&lt;BR /&gt;
&amp;gt; I believe you have solved my problem.  I tested your&lt;BR /&gt;
&amp;gt; routine quick quick in Acad and it indeed returns to&lt;BR /&gt;
&amp;gt; dimscale needed (except if dimscale = 1, it seems to&lt;BR /&gt;
&amp;gt; return nil) I don't quite understand this, but I'll try to&lt;BR /&gt;
&amp;gt; incorporate the routine into the lisp program I've been&lt;BR /&gt;
&amp;gt; trying to write.  I hope its OK to use your routine, and&lt;BR /&gt;
&amp;gt; share it around the office.  I'll let you know if all is&lt;BR /&gt;
&amp;gt; successful.&lt;BR /&gt;
&amp;gt; Thanks again&lt;BR /&gt;
&amp;gt; Cliff</description>
      <pubDate>Sun, 20 Feb 2000 15:00:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/dim-lisp-routine/m-p/845636#M160094</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-02-20T15:00:47Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/dim-lisp-routine/m-p/845637#M160095</link>
      <description>Hello!&lt;BR /&gt;
&lt;BR /&gt;
I've been interested in this thread and would like to add 2 small changes.&lt;BR /&gt;
&lt;BR /&gt;
(defun c:test ( / ent applist dimscale dimstyle dimstyledata)&lt;BR /&gt;
   (setq applist nil)&lt;BR /&gt;
  (setq ent (entsel "\nSelect a dimension: "))&lt;BR /&gt;
  (if&lt;BR /&gt;
    (and&lt;BR /&gt;
      ent&lt;BR /&gt;
      (= "DIMENSION" (cdr (assoc 0 (setq ent (entget (car ent) '("ACAD"))))))&lt;BR /&gt;
    )&lt;BR /&gt;
    (if&lt;BR /&gt;
      (and&lt;BR /&gt;
        (setq applist (assoc -3 ent))&lt;BR /&gt;
        (setq applist (assoc 1040 (member '(1070 . 40)(cdadr applist)))) ; changed by JB&lt;BR /&gt;
      )&lt;BR /&gt;
      (setq dimscale (cdr applist))&lt;BR /&gt;
      (progn&lt;BR /&gt;
        (setq dimstyle (cdr (assoc 3 ent)))&lt;BR /&gt;
        (setq dimstyledata (entget (tblobjname "DIMSTYLE" dimstyle )))&lt;BR /&gt;
        (setq dimscale (cdr (assoc 40 dimstyledata)))&lt;BR /&gt;
        (if (not dimscale) (setq dimscale 1)); added by JB&lt;BR /&gt;
      )&lt;BR /&gt;
    )&lt;BR /&gt;
    (progn&lt;BR /&gt;
      (princ "\nPlease try again. ")&lt;BR /&gt;
      (princ)&lt;BR /&gt;
    )&lt;BR /&gt;
  )&lt;BR /&gt;
)&lt;BR /&gt;
&lt;BR /&gt;
;;;(1070 . 144) for dimlfac&lt;BR /&gt;
;;;(1070 . 40) for dimscale&lt;BR /&gt;
;;;etc.&lt;BR /&gt;
&lt;BR /&gt;
For the above see the group codes for DIMSTYLE&lt;BR /&gt;
 &lt;BR /&gt;
-- &lt;BR /&gt;
Best regards: Jimmy B&lt;BR /&gt;
CAD coordinator at Emtunga International AB&lt;BR /&gt;
www.emtunga.com&lt;BR /&gt;
Steve Doman &lt;LETSKEEPITTOTHENEWGROUP&gt; skrev i diskussionsgruppsmeddelandet:88ov8l$idt6@adesknews2.autodesk.com...&lt;BR /&gt;
&amp;gt; Clifford,&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; Glad to have helped and please use the code any way you&lt;BR /&gt;
&amp;gt; wish.  It was an interesting problem.&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; I don't know why the routine returns nill when dimscale&lt;BR /&gt;
&amp;gt; equal to 1 for I am unable to reproduce that error.  I've&lt;BR /&gt;
&amp;gt; tested the routine on a dimension where the dimscale (equal&lt;BR /&gt;
&amp;gt; to 1) was controlled by the dimstyle.  And I also tested on&lt;BR /&gt;
&amp;gt; a dimension where the dimcale was controlled by a user&lt;BR /&gt;
&amp;gt; applied dimoverride, as well as an AutoCAD applied&lt;BR /&gt;
&amp;gt; dimoverride (per vport where the dimstyle's dimscale is set&lt;BR /&gt;
&amp;gt; at 0 and the vport vscale is 1).&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; Perhaps you can send me a small drawing with the problematic&lt;BR /&gt;
&amp;gt; dimension?  If so, please send to the address below.&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; Thanks,&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; Steve Doman&lt;BR /&gt;
&amp;gt; sdoman@teleport.com&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; "Clifford Leblang" wrote:&lt;BR /&gt;
&amp;gt; &amp;gt; Steve,&lt;BR /&gt;
&amp;gt; &amp;gt; Thank you, Thank you&lt;BR /&gt;
&amp;gt; &amp;gt; I believe you have solved my problem.  I tested your&lt;BR /&gt;
&amp;gt; &amp;gt; routine quick quick in Acad and it indeed returns to&lt;BR /&gt;
&amp;gt; &amp;gt; dimscale needed (except if dimscale = 1, it seems to&lt;BR /&gt;
&amp;gt; &amp;gt; return nil) I don't quite understand this, but I'll try to&lt;BR /&gt;
&amp;gt; &amp;gt; incorporate the routine into the lisp program I've been&lt;BR /&gt;
&amp;gt; &amp;gt; trying to write.  I hope its OK to use your routine, and&lt;BR /&gt;
&amp;gt; &amp;gt; share it around the office.  I'll let you know if all is&lt;BR /&gt;
&amp;gt; &amp;gt; successful.&lt;BR /&gt;
&amp;gt; &amp;gt; Thanks again&lt;BR /&gt;
&amp;gt; &amp;gt; Cliff&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt;&lt;/LETSKEEPITTOTHENEWGROUP&gt;</description>
      <pubDate>Tue, 22 Feb 2000 17:40:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/dim-lisp-routine/m-p/845637#M160095</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-02-22T17:40:29Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/dim-lisp-routine/m-p/845638#M160096</link>
      <description>Jimmy,&lt;BR /&gt;
Thanks for your interest and help.  I gave the routine a quick try, and as&lt;BR /&gt;
before, acad returns the correct response at the command line, but still&lt;BR /&gt;
doesn't actually change to dimension variable "dimscale" to match.  That's&lt;BR /&gt;
the part (some of it) that I've been having trouble with.  I know it's in&lt;BR /&gt;
there someplace.  I'll add some history &amp;gt;&lt;BR /&gt;
&lt;BR /&gt;
Lets say I've drawn several layers of a floor plan and different layers will&lt;BR /&gt;
be&lt;BR /&gt;
plotted w/ different scales from layout.  I use one dimension style, and&lt;BR /&gt;
let acad automatically scale the dimensions properly from a floating&lt;BR /&gt;
viewport.&lt;BR /&gt;
Later, in model space I want to add more dimensions to a given layer (with&lt;BR /&gt;
its associated dim layer; one for each viewport) and I just want to make&lt;BR /&gt;
one pick to set my variables and add my new dimensions.  I've added in some&lt;BR /&gt;
lines&lt;BR /&gt;
from a previous routine to set my layer from a picked object. but none of&lt;BR /&gt;
that part is working.  I'll include a copy of my routine.  Perhaps you can&lt;BR /&gt;
help.&lt;BR /&gt;
Thanks very much,&lt;BR /&gt;
Cliff&lt;BR /&gt;
&lt;BR /&gt;
Jimmy B &lt;CADMAN&gt; wrote in message&lt;BR /&gt;
news:88uhs7$5l01@adesknews2.autodesk.com...&lt;BR /&gt;
Hello!&lt;BR /&gt;
&lt;BR /&gt;
I've been interested in this thread and would like to add 2 small changes.&lt;BR /&gt;
&lt;BR /&gt;
(defun c:test ( / ent applist dimscale dimstyle dimstyledata)&lt;BR /&gt;
   (setq applist nil)&lt;BR /&gt;
  (setq ent (entsel "\nSelect a dimension: "))&lt;BR /&gt;
  (if&lt;BR /&gt;
    (and&lt;BR /&gt;
      ent&lt;BR /&gt;
      (= "DIMENSION" (cdr (assoc 0 (setq ent (entget (car ent)&lt;BR /&gt;
'("ACAD"))))))&lt;BR /&gt;
    )&lt;BR /&gt;
    (if&lt;BR /&gt;
      (and&lt;BR /&gt;
        (setq applist (assoc -3 ent))&lt;BR /&gt;
        (setq applist (assoc 1040 (member '(1070 . 40)(cdadr applist)))) ;&lt;BR /&gt;
changed by JB&lt;BR /&gt;
      )&lt;BR /&gt;
      (setq dimscale (cdr applist))&lt;BR /&gt;
      (progn&lt;BR /&gt;
        (setq dimstyle (cdr (assoc 3 ent)))&lt;BR /&gt;
        (setq dimstyledata (entget (tblobjname "DIMSTYLE" dimstyle )))&lt;BR /&gt;
        (setq dimscale (cdr (assoc 40 dimstyledata)))&lt;BR /&gt;
        (if (not dimscale) (setq dimscale 1)); added by JB&lt;BR /&gt;
      )&lt;BR /&gt;
    )&lt;BR /&gt;
    (progn&lt;BR /&gt;
      (princ "\nPlease try again. ")&lt;BR /&gt;
      (princ)&lt;BR /&gt;
    )&lt;BR /&gt;
  )&lt;BR /&gt;
)&lt;BR /&gt;
&lt;BR /&gt;
;;;(1070 . 144) for dimlfac&lt;BR /&gt;
;;;(1070 . 40) for dimscale&lt;BR /&gt;
;;;etc.&lt;BR /&gt;
&lt;BR /&gt;
For the above see the group codes for DIMSTYLE&lt;BR /&gt;
&lt;BR /&gt;
--&lt;BR /&gt;
Best regards: Jimmy B&lt;BR /&gt;
CAD coordinator at Emtunga International AB&lt;BR /&gt;
www.emtunga.com&lt;BR /&gt;
Steve Doman &lt;LETSKEEPITTOTHENEWGROUP&gt; skrev i&lt;BR /&gt;
diskussionsgruppsmeddelandet:88ov8l$idt6@adesknews2.autodesk.com...&lt;BR /&gt;
&amp;gt; Clifford,&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Glad to have helped and please use the code any way you&lt;BR /&gt;
&amp;gt; wish.  It was an interesting problem.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; I don't know why the routine returns nill when dimscale&lt;BR /&gt;
&amp;gt; equal to 1 for I am unable to reproduce that error.  I've&lt;BR /&gt;
&amp;gt; tested the routine on a dimension where the dimscale (equal&lt;BR /&gt;
&amp;gt; to 1) was controlled by the dimstyle.  And I also tested on&lt;BR /&gt;
&amp;gt; a dimension where the dimcale was controlled by a user&lt;BR /&gt;
&amp;gt; applied dimoverride, as well as an AutoCAD applied&lt;BR /&gt;
&amp;gt; dimoverride (per vport where the dimstyle's dimscale is set&lt;BR /&gt;
&amp;gt; at 0 and the vport vscale is 1).&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Perhaps you can send me a small drawing with the problematic&lt;BR /&gt;
&amp;gt; dimension?  If so, please send to the address below.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Thanks,&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Steve Doman&lt;BR /&gt;
&amp;gt; sdoman@teleport.com&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; "Clifford Leblang" wrote:&lt;BR /&gt;
&amp;gt; &amp;gt; Steve,&lt;BR /&gt;
&amp;gt; &amp;gt; Thank you, Thank you&lt;BR /&gt;
&amp;gt; &amp;gt; I believe you have solved my problem.  I tested your&lt;BR /&gt;
&amp;gt; &amp;gt; routine quick quick in Acad and it indeed returns to&lt;BR /&gt;
&amp;gt; &amp;gt; dimscale needed (except if dimscale = 1, it seems to&lt;BR /&gt;
&amp;gt; &amp;gt; return nil) I don't quite understand this, but I'll try to&lt;BR /&gt;
&amp;gt; &amp;gt; incorporate the routine into the lisp program I've been&lt;BR /&gt;
&amp;gt; &amp;gt; trying to write.  I hope its OK to use your routine, and&lt;BR /&gt;
&amp;gt; &amp;gt; share it around the office.  I'll let you know if all is&lt;BR /&gt;
&amp;gt; &amp;gt; successful.&lt;BR /&gt;
&amp;gt; &amp;gt; Thanks again&lt;BR /&gt;
&amp;gt; &amp;gt; Cliff&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;/LETSKEEPITTOTHENEWGROUP&gt;&lt;/CADMAN&gt;</description>
      <pubDate>Tue, 22 Feb 2000 23:35:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/dim-lisp-routine/m-p/845638#M160096</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-02-22T23:35:41Z</dc:date>
    </item>
    <item>
      <title>SV: DIM Lisp routine</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/dim-lisp-routine/m-p/845639#M160097</link>
      <description>Maybee this is what you want?&lt;BR /&gt;
&lt;BR /&gt;
;sets dimstyle, dimscale and layer associated with the selected dimension&lt;BR /&gt;
(defun c:gds (/ ent applist dimscale dimstyle dimstyledata)&lt;BR /&gt;
  (setq applist nil)&lt;BR /&gt;
  (setq ent (entsel "\nSelect a dimension: "))&lt;BR /&gt;
  (if&lt;BR /&gt;
    (and&lt;BR /&gt;
      ent&lt;BR /&gt;
      (= "DIMENSION" (cdr (assoc 0 (setq ent (entget (car ent)&lt;BR /&gt;
          '("ACAD"))))))&lt;BR /&gt;
    )&lt;BR /&gt;
     (if&lt;BR /&gt;
       (and&lt;BR /&gt;
  (setq applist (assoc -3 ent))&lt;BR /&gt;
  (setq&lt;BR /&gt;
    applist (assoc 1040 (member '(1070 . 40) (cdadr applist)))&lt;BR /&gt;
  )&lt;BR /&gt;
       )&lt;BR /&gt;
 (setq dimscale (cdr applist))&lt;BR /&gt;
 (progn&lt;BR /&gt;
   (setq dimstyle (cdr (assoc 3 ent)))&lt;BR /&gt;
   (setq dimstyledata (entget (tblobjname "DIMSTYLE" dimstyle)))&lt;BR /&gt;
   (setq dimscale (cdr (assoc 40 dimstyledata)))&lt;BR /&gt;
   (if (not dimscale)&lt;BR /&gt;
     (setq dimscale 1)&lt;BR /&gt;
   )&lt;BR /&gt;
   (setvar "dimscale" dimscale)&lt;BR /&gt;
   (setq 1name (cdr (assoc 8 ent)))&lt;BR /&gt;
   (command "layer" "s" 1name "")&lt;BR /&gt;
   (command "dimstyle" "r" dimstyle)&lt;BR /&gt;
 )&lt;BR /&gt;
     )&lt;BR /&gt;
     (progn&lt;BR /&gt;
       (princ "\nPlease try again. ")&lt;BR /&gt;
       (princ)&lt;BR /&gt;
     )&lt;BR /&gt;
  )&lt;BR /&gt;
)&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
Best regards: Jimmy B&lt;BR /&gt;
CAD coordinator at Emtunga International AB&lt;BR /&gt;
www.emtunga.com</description>
      <pubDate>Wed, 23 Feb 2000 02:36:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/dim-lisp-routine/m-p/845639#M160097</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-02-23T02:36:26Z</dc:date>
    </item>
    <item>
      <title>Re: SV: DIM Lisp routine</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/dim-lisp-routine/m-p/845640#M160098</link>
      <description>Dear Jimmy,&lt;BR /&gt;
I don't know, but the same thing is still happening.  I pick a dimension,&lt;BR /&gt;
and the correct dimscale reads out at the command line, but nothing else&lt;BR /&gt;
happens.  The dimvar dimscale is still set to zero, and I'm not on the&lt;BR /&gt;
picked layer.  I just don't get it. I'll attatch the dwg I'm using which is&lt;BR /&gt;
saved as a rel 14 dwg.&lt;BR /&gt;
Thanks very much for your help.  Maybe we can get it working&lt;BR /&gt;
Cliff&lt;BR /&gt;
&lt;BR /&gt;
Jimmy B &lt;CADMAN&gt; wrote in message&lt;BR /&gt;
news:88vh96$7te15@adesknews2.autodesk.com...&lt;BR /&gt;
Maybee this is what you want?&lt;BR /&gt;
&lt;BR /&gt;
;sets dimstyle, dimscale and layer associated with the selected dimension&lt;BR /&gt;
(defun c:gds (/ ent applist dimscale dimstyle dimstyledata)&lt;BR /&gt;
  (setq applist nil)&lt;BR /&gt;
  (setq ent (entsel "\nSelect a dimension: "))&lt;BR /&gt;
  (if&lt;BR /&gt;
    (and&lt;BR /&gt;
      ent&lt;BR /&gt;
      (= "DIMENSION" (cdr (assoc 0 (setq ent (entget (car ent)&lt;BR /&gt;
          '("ACAD"))))))&lt;BR /&gt;
    )&lt;BR /&gt;
     (if&lt;BR /&gt;
       (and&lt;BR /&gt;
  (setq applist (assoc -3 ent))&lt;BR /&gt;
  (setq&lt;BR /&gt;
    applist (assoc 1040 (member '(1070 . 40) (cdadr applist)))&lt;BR /&gt;
  )&lt;BR /&gt;
       )&lt;BR /&gt;
 (setq dimscale (cdr applist))&lt;BR /&gt;
 (progn&lt;BR /&gt;
   (setq dimstyle (cdr (assoc 3 ent)))&lt;BR /&gt;
   (setq dimstyledata (entget (tblobjname "DIMSTYLE" dimstyle)))&lt;BR /&gt;
   (setq dimscale (cdr (assoc 40 dimstyledata)))&lt;BR /&gt;
   (if (not dimscale)&lt;BR /&gt;
     (setq dimscale 1)&lt;BR /&gt;
   )&lt;BR /&gt;
   (setvar "dimscale" dimscale)&lt;BR /&gt;
   (setq 1name (cdr (assoc 8 ent)))&lt;BR /&gt;
   (command "layer" "s" 1name "")&lt;BR /&gt;
   (command "dimstyle" "r" dimstyle)&lt;BR /&gt;
 )&lt;BR /&gt;
     )&lt;BR /&gt;
     (progn&lt;BR /&gt;
       (princ "\nPlease try again. ")&lt;BR /&gt;
       (princ)&lt;BR /&gt;
     )&lt;BR /&gt;
  )&lt;BR /&gt;
)&lt;BR /&gt;
&lt;BR /&gt;
--&lt;BR /&gt;
Best regards: Jimmy B&lt;BR /&gt;
CAD coordinator at Emtunga International AB&lt;BR /&gt;
www.emtunga.com&lt;/CADMAN&gt;</description>
      <pubDate>Thu, 24 Feb 2000 00:33:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/dim-lisp-routine/m-p/845640#M160098</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-02-24T00:33:14Z</dc:date>
    </item>
    <item>
      <title>Re: SV: DIM Lisp routine</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/dim-lisp-routine/m-p/845641#M160099</link>
      <description>Attached is my 2 cents worth.  Give it a try and see if it's what your&lt;BR /&gt;
looking for.&lt;BR /&gt;
&lt;BR /&gt;
Regards,&lt;BR /&gt;
Steve Doman&lt;BR /&gt;
&lt;BR /&gt;
"Clifford Leblang" wrote:&lt;BR /&gt;
&amp;gt; Dear Jimmy,&lt;BR /&gt;
&amp;gt; I don't know, but the same thing is still happening.  I pick a dimension,&lt;BR /&gt;
&amp;gt; and the correct dimscale reads out at the command line, but nothing else&lt;BR /&gt;
&amp;gt; happens.  The dimvar dimscale is still set to zero, and I'm not on the&lt;BR /&gt;
&amp;gt; picked layer.  I just don't get it. I'll attatch the dwg I'm using which&lt;BR /&gt;
is&lt;BR /&gt;
&amp;gt; saved as a rel 14 dwg.&lt;BR /&gt;
&amp;gt; Thanks very much for your help.  Maybe we can get it working&lt;BR /&gt;
&amp;gt; Cliff</description>
      <pubDate>Thu, 24 Feb 2000 06:06:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/dim-lisp-routine/m-p/845641#M160099</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-02-24T06:06:08Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/dim-lisp-routine/m-p/845642#M160100</link>
      <description>Thanks Jimmy,&lt;BR /&gt;
&lt;BR /&gt;
I agree about the extra checking where you have added the MEMBER call.  I&lt;BR /&gt;
came to the same conclusion but happened to use ASSOC. I also added a check&lt;BR /&gt;
for ACAD xdata, just in case some other application's xdata might be there&lt;BR /&gt;
(who knows).  I'm using R14 by the way.&lt;BR /&gt;
&lt;BR /&gt;
However, I don't understand your use of setting dimscale to 1.  Seems to me&lt;BR /&gt;
that the picked dimension must have either a dimscale from the dimension&lt;BR /&gt;
style, or an applied dimoverride dimscale.&lt;BR /&gt;
&lt;BR /&gt;
From my limited testing, it seems that a dimension's dimscale will be found&lt;BR /&gt;
either in the dimension's -3 Acad xdata if a dimscale override exists, or it&lt;BR /&gt;
will default to the dimscale found within the dimension style definition.&lt;BR /&gt;
From what I can tell, when the user creates a dimstyle with a zero dimscale&lt;BR /&gt;
("Scale to Paper Space"), AutoCAD automatically applies a dimscale override&lt;BR /&gt;
per the vport scale.  If no vport exist, AutoCAD seems to default to a&lt;BR /&gt;
dimscale override of 1.&lt;BR /&gt;
&lt;BR /&gt;
Just my two cents.  Thanks.&lt;BR /&gt;
&lt;BR /&gt;
Regards,&lt;BR /&gt;
Steve Doman&lt;BR /&gt;
&lt;BR /&gt;
"Jimmy B" wrote:&lt;BR /&gt;
&amp;gt; Hello!&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; I've been interested in this thread and would like&lt;BR /&gt;
&amp;gt; to add 2 small changes.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; (member '(1070 . 40)(cdadr applist)) ; changed by JB&lt;BR /&gt;
&amp;gt; ...&lt;BR /&gt;
&amp;gt; (if (not dimscale) (setq dimscale 1)); added by JB&lt;BR /&gt;
&amp;gt;</description>
      <pubDate>Thu, 24 Feb 2000 06:29:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/dim-lisp-routine/m-p/845642#M160100</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-02-24T06:29:57Z</dc:date>
    </item>
    <item>
      <title>Re: SV: DIM Lisp routine</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/dim-lisp-routine/m-p/845643#M160101</link>
      <description>Steve,&lt;BR /&gt;
At last, At last &amp;gt; it works.  Obviously, it was quite a bit more complicated&lt;BR /&gt;
than I first imagined.  I'll look thru the code and try to learn just how&lt;BR /&gt;
you did it.  I see that you addressed Jimmy B in the same thread, and that&lt;BR /&gt;
message helps me to understand a little more.  Thanks so much for your help&lt;BR /&gt;
(to both of you).  It's nice to know that you guys are out there.  MUCH MUCH&lt;BR /&gt;
APPRECIATED.&lt;BR /&gt;
Clifford Leblang&lt;BR /&gt;
Steve Doman &lt;LETSKEEPITTOTHENEWGROUP&gt; wrote in message&lt;BR /&gt;
news:892hdu$i2110@adesknews2.autodesk.com...&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Attached is my 2 cents worth.  Give it a try and see if it's what your&lt;BR /&gt;
&amp;gt; looking for.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Regards,&lt;BR /&gt;
&amp;gt; Steve Doman&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; "Clifford Leblang" wrote:&lt;BR /&gt;
&amp;gt; &amp;gt; Dear Jimmy,&lt;BR /&gt;
&amp;gt; &amp;gt; I don't know, but the same thing is still happening.  I pick a&lt;BR /&gt;
dimension,&lt;BR /&gt;
&amp;gt; &amp;gt; and the correct dimscale reads out at the command line, but nothing else&lt;BR /&gt;
&amp;gt; &amp;gt; happens.  The dimvar dimscale is still set to zero, and I'm not on the&lt;BR /&gt;
&amp;gt; &amp;gt; picked layer.  I just don't get it. I'll attatch the dwg I'm using which&lt;BR /&gt;
&amp;gt; is&lt;BR /&gt;
&amp;gt; &amp;gt; saved as a rel 14 dwg.&lt;BR /&gt;
&amp;gt; &amp;gt; Thanks very much for your help.  Maybe we can get it working&lt;BR /&gt;
&amp;gt; &amp;gt; Cliff&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;/LETSKEEPITTOTHENEWGROUP&gt;</description>
      <pubDate>Thu, 24 Feb 2000 09:58:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/dim-lisp-routine/m-p/845643#M160101</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-02-24T09:58:44Z</dc:date>
    </item>
    <item>
      <title>SV: DIM Lisp routine</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/dim-lisp-routine/m-p/845644#M160102</link>
      <description>Steve - I use 2000 and the dimensions dimscale doesn't exist when it's set to 1.&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
Best regards: Jimmy B&lt;BR /&gt;
CAD coordinator at Emtunga International AB&lt;BR /&gt;
www.emtunga.com&lt;BR /&gt;
Steve Doman &lt;LETSKEEPITTOTHENEWGROUP&gt; skrev i diskussionsgruppsmeddelandet:892irl$i2218@adesknews2.autodesk.com...&lt;BR /&gt;
&amp;gt; Thanks Jimmy,&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; I agree about the extra checking where you have added the MEMBER call.  I&lt;BR /&gt;
&amp;gt; came to the same conclusion but happened to use ASSOC. I also added a check&lt;BR /&gt;
&amp;gt; for ACAD xdata, just in case some other application's xdata might be there&lt;BR /&gt;
&amp;gt; (who knows).  I'm using R14 by the way.&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; However, I don't understand your use of setting dimscale to 1.  Seems to me&lt;BR /&gt;
&amp;gt; that the picked dimension must have either a dimscale from the dimension&lt;BR /&gt;
&amp;gt; style, or an applied dimoverride dimscale.&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; From my limited testing, it seems that a dimension's dimscale will be found&lt;BR /&gt;
&amp;gt; either in the dimension's -3 Acad xdata if a dimscale override exists, or it&lt;BR /&gt;
&amp;gt; will default to the dimscale found within the dimension style definition.&lt;BR /&gt;
&amp;gt; From what I can tell, when the user creates a dimstyle with a zero dimscale&lt;BR /&gt;
&amp;gt; ("Scale to Paper Space"), AutoCAD automatically applies a dimscale override&lt;BR /&gt;
&amp;gt; per the vport scale.  If no vport exist, AutoCAD seems to default to a&lt;BR /&gt;
&amp;gt; dimscale override of 1.&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; Just my two cents.  Thanks.&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; Regards,&lt;BR /&gt;
&amp;gt; Steve Doman&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; "Jimmy B" wrote:&lt;BR /&gt;
&amp;gt; &amp;gt; Hello!&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; I've been interested in this thread and would like&lt;BR /&gt;
&amp;gt; &amp;gt; to add 2 small changes.&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; (member '(1070 . 40)(cdadr applist)) ; changed by JB&lt;BR /&gt;
&amp;gt; &amp;gt; ...&lt;BR /&gt;
&amp;gt; &amp;gt; (if (not dimscale) (setq dimscale 1)); added by JB&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt;&lt;/LETSKEEPITTOTHENEWGROUP&gt;</description>
      <pubDate>Thu, 24 Feb 2000 11:49:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/dim-lisp-routine/m-p/845644#M160102</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-02-24T11:49:17Z</dc:date>
    </item>
    <item>
      <title>Re: SV: DIM Lisp routine</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/dim-lisp-routine/m-p/845645#M160103</link>
      <description>Aha!  Could you please show me a screen dump of a R2000 dimension entity&lt;BR /&gt;
data list?  Preferably by opening a new drawing with nothing in it, not even&lt;BR /&gt;
a paper space vport, and setting up a dimension style to scale by paper&lt;BR /&gt;
space.&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
Steve Doman&lt;BR /&gt;
&lt;BR /&gt;
"Jimmy B" &lt;CADMAN&gt; wrote in message&lt;BR /&gt;
news:89361e$i1933@adesknews2.autodesk.com...&lt;BR /&gt;
Steve - I use 2000 and the dimensions dimscale doesn't exist when it's set&lt;BR /&gt;
to 1.&lt;BR /&gt;
&lt;BR /&gt;
--&lt;BR /&gt;
Best regards: Jimmy B&lt;BR /&gt;
CAD coordinator at Emtunga International AB&lt;BR /&gt;
www.emtunga.com&lt;/CADMAN&gt;</description>
      <pubDate>Thu, 24 Feb 2000 13:55:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/dim-lisp-routine/m-p/845645#M160103</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-02-24T13:55:29Z</dc:date>
    </item>
    <item>
      <title>Re: SV: DIM Lisp routine</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/dim-lisp-routine/m-p/845646#M160104</link>
      <description>Glad to have helped.  I found it an interesting problem, one which I hope to&lt;BR /&gt;
incorporate the coding into some other routines.&lt;BR /&gt;
&lt;BR /&gt;
Regards,&lt;BR /&gt;
Steve Doman&lt;BR /&gt;
&lt;BR /&gt;
"Clifford Leblang" &lt;CLIFFLEB&gt; wrote in message&lt;BR /&gt;
news:892vau$i2227@adesknews2.autodesk.com...&lt;BR /&gt;
&amp;gt; Steve,&lt;BR /&gt;
&amp;gt; At last, At last &amp;gt; it works.  Obviously, it was quite a bit more&lt;BR /&gt;
complicated&lt;BR /&gt;
&amp;gt; than I first imagined.  I'll look thru the code and try to learn just how&lt;BR /&gt;
&amp;gt; you did it.  I see that you addressed Jimmy B in the same thread, and that&lt;BR /&gt;
&amp;gt; message helps me to understand a little more.  Thanks so much for your&lt;BR /&gt;
help&lt;BR /&gt;
&amp;gt; (to both of you).  It's nice to know that you guys are out there.  MUCH&lt;BR /&gt;
MUCH&lt;BR /&gt;
&amp;gt; APPRECIATED.&lt;BR /&gt;
&amp;gt; Clifford Leblang&lt;/CLIFFLEB&gt;</description>
      <pubDate>Thu, 24 Feb 2000 13:57:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/dim-lisp-routine/m-p/845646#M160104</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-02-24T13:57:14Z</dc:date>
    </item>
    <item>
      <title>Re: SV: DIM Lisp routine</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/dim-lisp-routine/m-p/845647#M160105</link>
      <description>Since Jimmy hasn't responded yet, here is a dump of a linear dimension, in&lt;BR /&gt;
paper space, with a parent style that is a copy of the Standard style, with&lt;BR /&gt;
the exception of "Scale dimensions to layout (paperspace)" which is set&lt;BR /&gt;
(DimScale=0).&lt;BR /&gt;
&lt;BR /&gt;
((-1 . &lt;ENTITY ="" 19b1238=""&gt;)&lt;BR /&gt;
 (0 . "DIMENSION")&lt;BR /&gt;
 (330 . &lt;ENTITY ="" 19b10d8=""&gt;)&lt;BR /&gt;
 (5 . "5F")&lt;BR /&gt;
 (100 . "AcDbEntity")&lt;BR /&gt;
 (67 . 1)&lt;BR /&gt;
 (410 . "Layout1")&lt;BR /&gt;
 (8 . "0")&lt;BR /&gt;
 (100 . "AcDbDimension")&lt;BR /&gt;
 (2 . "*D2")&lt;BR /&gt;
 (10 3.52668 4.71551 0.0)&lt;BR /&gt;
 (11 4.23168 4.71551 0.0)&lt;BR /&gt;
 (12 0.0 0.0 0.0)&lt;BR /&gt;
 (70 . 32)&lt;BR /&gt;
 (1 . "")&lt;BR /&gt;
 (71 . 5)&lt;BR /&gt;
 (72 . 1)&lt;BR /&gt;
 (41 . 1.0)&lt;BR /&gt;
 (42 . 0.984754)&lt;BR /&gt;
 (52 . 0.0)&lt;BR /&gt;
 (53 . 0.0)&lt;BR /&gt;
 (54 . 0.0)&lt;BR /&gt;
 (51 . 0.0)&lt;BR /&gt;
 (210 0.0 0.0 1.0)&lt;BR /&gt;
 (3 . "Copy of Standard")&lt;BR /&gt;
 (100 . "AcDbAlignedDimension")&lt;BR /&gt;
 (13 2.54193 4.0 0.0)&lt;BR /&gt;
 (14 3.52668 4.0 0.0)&lt;BR /&gt;
 (15 0.0 0.0 0.0)&lt;BR /&gt;
 (16 0.0 0.0 0.0)&lt;BR /&gt;
 (40 . 0.0)&lt;BR /&gt;
 (50 . 0.0)&lt;BR /&gt;
 (100 . "AcDbRotatedDimension")&lt;BR /&gt;
 (-3&lt;BR /&gt;
  ("ACAD"&lt;BR /&gt;
   (1000 . "DSTYLE")&lt;BR /&gt;
   (1002 . "{")&lt;BR /&gt;
    (1070 . 40)&lt;BR /&gt;
    (1040 . 1.0)&lt;BR /&gt;
   (1002 . "}")&lt;BR /&gt;
  )&lt;BR /&gt;
 )&lt;BR /&gt;
)&lt;BR /&gt;
&lt;BR /&gt;
Here is the same type of dim within a viewport. Doesn't look weird to me.&lt;BR /&gt;
&lt;BR /&gt;
((-1 . &lt;ENTITY ="" 19b12b8=""&gt;)&lt;BR /&gt;
 (0 . "DIMENSION")&lt;BR /&gt;
 (330 . &lt;ENTITY ="" 19b10f8=""&gt;)&lt;BR /&gt;
 (5 . "6F")&lt;BR /&gt;
 (100 . "AcDbEntity")&lt;BR /&gt;
 (67 . 0)&lt;BR /&gt;
 (410 . "Model")&lt;BR /&gt;
 (8 . "0")&lt;BR /&gt;
 (100 . "AcDbDimension")&lt;BR /&gt;
 (2 . "*D3")&lt;BR /&gt;
 (10 10.2381 10.8514 0.0)&lt;BR /&gt;
 (11 19.5981 10.8514 0.0)&lt;BR /&gt;
 (12 0.0 0.0 0.0)&lt;BR /&gt;
 (70 . 32)&lt;BR /&gt;
 (1 . "")&lt;BR /&gt;
 (71 . 5)&lt;BR /&gt;
 (72 . 1)&lt;BR /&gt;
 (41 . 1.0)&lt;BR /&gt;
 (42 . 13.7737)&lt;BR /&gt;
 (52 . 0.0)&lt;BR /&gt;
 (53 . 0.0)&lt;BR /&gt;
 (54 . 0.0)&lt;BR /&gt;
 (51 . 0.0)&lt;BR /&gt;
 (210 0.0 0.0 1.0)&lt;BR /&gt;
 (3 . "Copy of Standard")&lt;BR /&gt;
 (100 . "AcDbAlignedDimension")&lt;BR /&gt;
 (13 -3.53564 2.38287 0.0)&lt;BR /&gt;
 (14 10.2381 2.38287 0.0)&lt;BR /&gt;
 (15 0.0 0.0 0.0)&lt;BR /&gt;
 (16 0.0 0.0 0.0)&lt;BR /&gt;
 (40 . 0.0)&lt;BR /&gt;
 (50 . 0.0)&lt;BR /&gt;
 (100 . "AcDbRotatedDimension")&lt;BR /&gt;
 (-3&lt;BR /&gt;
  ("ACAD"&lt;BR /&gt;
   (1000 . "DSTYLE")&lt;BR /&gt;
    (1002 . "{")&lt;BR /&gt;
     (1070 . 40)&lt;BR /&gt;
     (1040 . 12.0)&lt;BR /&gt;
    (1002 . "}"&lt;BR /&gt;
   )&lt;BR /&gt;
  )&lt;BR /&gt;
 )&lt;BR /&gt;
)&lt;BR /&gt;
&lt;BR /&gt;
--&lt;BR /&gt;
R. Robert Bell, MCSE&lt;BR /&gt;
Network Administrator (or, Modern-day Wizard)&lt;BR /&gt;
(remove the "not." in my address for direct e-mail)&lt;/ENTITY&gt;&lt;/ENTITY&gt;&lt;/ENTITY&gt;&lt;/ENTITY&gt;</description>
      <pubDate>Thu, 24 Feb 2000 15:44:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/dim-lisp-routine/m-p/845647#M160105</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-02-24T15:44:32Z</dc:date>
    </item>
    <item>
      <title>Re: SV: DIM Lisp routine</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/dim-lisp-routine/m-p/845648#M160106</link>
      <description>Thanks Robert.  Looks like there isn't a difference in the dimoverride data&lt;BR /&gt;
between R14 and R15.&lt;BR /&gt;
&lt;BR /&gt;
However!&lt;BR /&gt;
&lt;BR /&gt;
This GDS routine is still not right.  After actually using the program in&lt;BR /&gt;
the real world situations, I discover my logic to getting the dimscale is&lt;BR /&gt;
all garbage because the xdata can have more then one 1040 list!  Apparently&lt;BR /&gt;
I need to get the 1040 list that follows a '(1070 . 40).  Anyone have any&lt;BR /&gt;
ideas on how to do this?&lt;BR /&gt;
&lt;BR /&gt;
Dimscale dimoverride:&lt;BR /&gt;
(-3&lt;BR /&gt;
  ("ACAD"&lt;BR /&gt;
    (1000 . "DSTYLE")&lt;BR /&gt;
    (1002 . "{")&lt;BR /&gt;
    (1070 . 40)    &amp;lt;--- dimscale&lt;BR /&gt;
    (1040 . 4.0)&lt;BR /&gt;
    (1002 . "}")&lt;BR /&gt;
  )&lt;BR /&gt;
)&lt;BR /&gt;
&lt;BR /&gt;
Dimexo dimoverride:&lt;BR /&gt;
(-3&lt;BR /&gt;
  ("ACAD"&lt;BR /&gt;
    (1000 . "DSTYLE")&lt;BR /&gt;
    (1002 . "{")&lt;BR /&gt;
    (1070 . 42)&lt;BR /&gt;
    (1040 . 0.125) &amp;lt;--- dimexo&lt;BR /&gt;
    (1002 . "}")&lt;BR /&gt;
  )&lt;BR /&gt;
)&lt;BR /&gt;
&lt;BR /&gt;
Both dimscale and dimexo overrides:&lt;BR /&gt;
(-3&lt;BR /&gt;
  ("ACAD"&lt;BR /&gt;
    (1000 . "DSTYLE")&lt;BR /&gt;
    (1002 . "{")&lt;BR /&gt;
    (1070 . 40)    &amp;lt;--- dimscale&lt;BR /&gt;
    (1040 . 4.0)&lt;BR /&gt;
    (1070 . 42)&lt;BR /&gt;
    (1040 . 0.125) &amp;lt;--- dimexo&lt;BR /&gt;
    (1002 . "}")&lt;BR /&gt;
  )&lt;BR /&gt;
)&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
Steve Doman&lt;BR /&gt;
&lt;BR /&gt;
R. Robert Bell &lt;NOT.ROBERTB&gt; wrote in message&lt;BR /&gt;
news:893jl3$kkv17@adesknews2.autodesk.com...&lt;BR /&gt;
&amp;gt; Since Jimmy hasn't responded yet, here is a dump of a linear dimension, in&lt;BR /&gt;
&amp;gt; paper space, with a parent style that is a copy of the Standard style,&lt;BR /&gt;
with&lt;BR /&gt;
&amp;gt; the exception of "Scale dimensions to layout (paperspace)" which is set&lt;BR /&gt;
&amp;gt; (DimScale=0).&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; ((-1 . &lt;ENTITY ="" 19b1238=""&gt;)&lt;BR /&gt;
&amp;gt;  (0 . "DIMENSION")&lt;BR /&gt;
&amp;gt;  (330 . &lt;ENTITY ="" 19b10d8=""&gt;)&lt;BR /&gt;
&amp;gt;  (5 . "5F")&lt;BR /&gt;
&amp;gt;  (100 . "AcDbEntity")&lt;BR /&gt;
&amp;gt;  (67 . 1)&lt;BR /&gt;
&amp;gt;  (410 . "Layout1")&lt;BR /&gt;
&amp;gt;  (8 . "0")&lt;BR /&gt;
&amp;gt;  (100 . "AcDbDimension")&lt;BR /&gt;
&amp;gt;  (2 . "*D2")&lt;BR /&gt;
&amp;gt;  (10 3.52668 4.71551 0.0)&lt;BR /&gt;
&amp;gt;  (11 4.23168 4.71551 0.0)&lt;BR /&gt;
&amp;gt;  (12 0.0 0.0 0.0)&lt;BR /&gt;
&amp;gt;  (70 . 32)&lt;BR /&gt;
&amp;gt;  (1 . "")&lt;BR /&gt;
&amp;gt;  (71 . 5)&lt;BR /&gt;
&amp;gt;  (72 . 1)&lt;BR /&gt;
&amp;gt;  (41 . 1.0)&lt;BR /&gt;
&amp;gt;  (42 . 0.984754)&lt;BR /&gt;
&amp;gt;  (52 . 0.0)&lt;BR /&gt;
&amp;gt;  (53 . 0.0)&lt;BR /&gt;
&amp;gt;  (54 . 0.0)&lt;BR /&gt;
&amp;gt;  (51 . 0.0)&lt;BR /&gt;
&amp;gt;  (210 0.0 0.0 1.0)&lt;BR /&gt;
&amp;gt;  (3 . "Copy of Standard")&lt;BR /&gt;
&amp;gt;  (100 . "AcDbAlignedDimension")&lt;BR /&gt;
&amp;gt;  (13 2.54193 4.0 0.0)&lt;BR /&gt;
&amp;gt;  (14 3.52668 4.0 0.0)&lt;BR /&gt;
&amp;gt;  (15 0.0 0.0 0.0)&lt;BR /&gt;
&amp;gt;  (16 0.0 0.0 0.0)&lt;BR /&gt;
&amp;gt;  (40 . 0.0)&lt;BR /&gt;
&amp;gt;  (50 . 0.0)&lt;BR /&gt;
&amp;gt;  (100 . "AcDbRotatedDimension")&lt;BR /&gt;
&amp;gt;  (-3&lt;BR /&gt;
&amp;gt;   ("ACAD"&lt;BR /&gt;
&amp;gt;    (1000 . "DSTYLE")&lt;BR /&gt;
&amp;gt;    (1002 . "{")&lt;BR /&gt;
&amp;gt;     (1070 . 40)&lt;BR /&gt;
&amp;gt;     (1040 . 1.0)&lt;BR /&gt;
&amp;gt;    (1002 . "}")&lt;BR /&gt;
&amp;gt;   )&lt;BR /&gt;
&amp;gt;  )&lt;BR /&gt;
&amp;gt; )&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Here is the same type of dim within a viewport. Doesn't look weird to me.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; ((-1 . &lt;ENTITY ="" 19b12b8=""&gt;)&lt;BR /&gt;
&amp;gt;  (0 . "DIMENSION")&lt;BR /&gt;
&amp;gt;  (330 . &lt;ENTITY ="" 19b10f8=""&gt;)&lt;BR /&gt;
&amp;gt;  (5 . "6F")&lt;BR /&gt;
&amp;gt;  (100 . "AcDbEntity")&lt;BR /&gt;
&amp;gt;  (67 . 0)&lt;BR /&gt;
&amp;gt;  (410 . "Model")&lt;BR /&gt;
&amp;gt;  (8 . "0")&lt;BR /&gt;
&amp;gt;  (100 . "AcDbDimension")&lt;BR /&gt;
&amp;gt;  (2 . "*D3")&lt;BR /&gt;
&amp;gt;  (10 10.2381 10.8514 0.0)&lt;BR /&gt;
&amp;gt;  (11 19.5981 10.8514 0.0)&lt;BR /&gt;
&amp;gt;  (12 0.0 0.0 0.0)&lt;BR /&gt;
&amp;gt;  (70 . 32)&lt;BR /&gt;
&amp;gt;  (1 . "")&lt;BR /&gt;
&amp;gt;  (71 . 5)&lt;BR /&gt;
&amp;gt;  (72 . 1)&lt;BR /&gt;
&amp;gt;  (41 . 1.0)&lt;BR /&gt;
&amp;gt;  (42 . 13.7737)&lt;BR /&gt;
&amp;gt;  (52 . 0.0)&lt;BR /&gt;
&amp;gt;  (53 . 0.0)&lt;BR /&gt;
&amp;gt;  (54 . 0.0)&lt;BR /&gt;
&amp;gt;  (51 . 0.0)&lt;BR /&gt;
&amp;gt;  (210 0.0 0.0 1.0)&lt;BR /&gt;
&amp;gt;  (3 . "Copy of Standard")&lt;BR /&gt;
&amp;gt;  (100 . "AcDbAlignedDimension")&lt;BR /&gt;
&amp;gt;  (13 -3.53564 2.38287 0.0)&lt;BR /&gt;
&amp;gt;  (14 10.2381 2.38287 0.0)&lt;BR /&gt;
&amp;gt;  (15 0.0 0.0 0.0)&lt;BR /&gt;
&amp;gt;  (16 0.0 0.0 0.0)&lt;BR /&gt;
&amp;gt;  (40 . 0.0)&lt;BR /&gt;
&amp;gt;  (50 . 0.0)&lt;BR /&gt;
&amp;gt;  (100 . "AcDbRotatedDimension")&lt;BR /&gt;
&amp;gt;  (-3&lt;BR /&gt;
&amp;gt;   ("ACAD"&lt;BR /&gt;
&amp;gt;    (1000 . "DSTYLE")&lt;BR /&gt;
&amp;gt;     (1002 . "{")&lt;BR /&gt;
&amp;gt;      (1070 . 40)&lt;BR /&gt;
&amp;gt;      (1040 . 12.0)&lt;BR /&gt;
&amp;gt;     (1002 . "}"&lt;BR /&gt;
&amp;gt;    )&lt;BR /&gt;
&amp;gt;   )&lt;BR /&gt;
&amp;gt;  )&lt;BR /&gt;
&amp;gt; )&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; --&lt;BR /&gt;
&amp;gt; R. Robert Bell, MCSE&lt;BR /&gt;
&amp;gt; Network Administrator (or, Modern-day Wizard)&lt;BR /&gt;
&amp;gt; (remove the "not." in my address for direct e-mail)&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;/ENTITY&gt;&lt;/ENTITY&gt;&lt;/ENTITY&gt;&lt;/ENTITY&gt;&lt;/NOT.ROBERTB&gt;</description>
      <pubDate>Thu, 24 Feb 2000 17:12:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/dim-lisp-routine/m-p/845648#M160106</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-02-24T17:12:09Z</dc:date>
    </item>
  </channel>
</rss>

