<?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 Betreff: Create Annotation Scales Using List in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/create-annotation-scales-using-list/m-p/10676858#M80334</link>
    <description>&lt;P&gt;Just wondering if this can be simplified.&lt;/P&gt;&lt;P&gt;For added scale list...&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;;&lt;BR /&gt;(defun C:M75 ( / myScaleList)&lt;BR /&gt;(command "measurement" "1")&lt;BR /&gt;(command "-scalelistedit" "r" "y" "e")&lt;BR /&gt;(setq myScaleList ; Using dotted pair list&lt;BR /&gt;'( ; "scale name" . "scale ratio"&lt;BR /&gt;("1:75" . "1:75")&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;(addScales myScaleList)&lt;BR /&gt;(princ)&lt;BR /&gt;(command "cannoscale" "1:75")&lt;BR /&gt;)&lt;BR /&gt;;&lt;BR /&gt;(defun C:M125 ( / myScaleList)&lt;BR /&gt;(command "measurement" "1")&lt;BR /&gt;(command "-scalelistedit" "r" "y" "e")&lt;BR /&gt;(setq myScaleList ; Using dotted pair list&lt;BR /&gt;'( ; "scale name" . "scale ratio"&lt;BR /&gt;("1:125" . "1:125")&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;(addScales myScaleList)&lt;BR /&gt;(princ)&lt;BR /&gt;(command "cannoscale" "1:125")&lt;BR /&gt;)&lt;BR /&gt;;&lt;BR /&gt;(defun C:M150 ( / myScaleList)&lt;BR /&gt;(command "measurement" "1")&lt;BR /&gt;(command "-scalelistedit" "r" "y" "e")&lt;BR /&gt;(setq myScaleList ; Using dotted pair list&lt;BR /&gt;'( ; "scale name" . "scale ratio"&lt;BR /&gt;("1:150" . "1:150")&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;(addScales myScaleList)&lt;BR /&gt;(princ)&lt;BR /&gt;(command "cannoscale" "1:150")&lt;BR /&gt;)&lt;BR /&gt;;&lt;BR /&gt;(defun C:M200 ( / myScaleList)&lt;BR /&gt;(command "measurement" "1")&lt;BR /&gt;(command "-scalelistedit" "r" "y" "e")&lt;BR /&gt;(setq myScaleList ; Using dotted pair list&lt;BR /&gt;'( ; "scale name" . "scale ratio"&lt;BR /&gt;("1:200" . "1:200")&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;(addScales myScaleList)&lt;BR /&gt;(princ)&lt;BR /&gt;(command "cannoscale" "1:200")&lt;BR /&gt;)&lt;BR /&gt;;&lt;BR /&gt;(defun C:M300 ( / myScaleList)&lt;BR /&gt;(command "measurement" "1")&lt;BR /&gt;(command "-scalelistedit" "r" "y" "e")&lt;BR /&gt;(setq myScaleList ; Using dotted pair list&lt;BR /&gt;'( ; "scale name" . "scale ratio"&lt;BR /&gt;("1:300" . "1:300")&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;(addScales myScaleList)&lt;BR /&gt;(princ)&lt;BR /&gt;(command "cannoscale" "1:300")&lt;BR /&gt;)&lt;BR /&gt;(defun C:M400 ( / myScaleList)&lt;BR /&gt;(command "measurement" "1")&lt;BR /&gt;(command "-scalelistedit" "r" "y" "e")&lt;BR /&gt;(setq myScaleList ; Using dotted pair list&lt;BR /&gt;'( ; "scale name" . "scale ratio"&lt;BR /&gt;("1:400" . "1:400")&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;(addScales myScaleList)&lt;BR /&gt;(princ)&lt;BR /&gt;(command "cannoscale" "1:400")&lt;BR /&gt;)&lt;BR /&gt;(defun C:M500 ( / myScaleList)&lt;BR /&gt;(command "measurement" "1")&lt;BR /&gt;(command "-scalelistedit" "r" "y" "e")&lt;BR /&gt;(setq myScaleList ; Using dotted pair list&lt;BR /&gt;'( ; "scale name" . "scale ratio"&lt;BR /&gt;("1:500" . "1:500")&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;(addScales myScaleList)&lt;BR /&gt;(princ)&lt;BR /&gt;(command "cannoscale" "1:500")&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;;&lt;BR /&gt;;&lt;BR /&gt;; --------------------------------------------------------------------------------------------------&lt;BR /&gt;; ------------------------------------ Main Code (Do Not Edit) -------------------------------------&lt;BR /&gt;; --------------------------------------------------------------------------------------------------&lt;BR /&gt;;&lt;BR /&gt;; Main Code:&lt;BR /&gt;(defun addScales (scaleList / cmde i)&lt;BR /&gt;; Begin silent mode:&lt;BR /&gt;(setq cmde (getvar 'cmdecho)) ; Store cmdEcho variable&lt;BR /&gt;(setvar 'cmdecho 0)&lt;BR /&gt;&lt;BR /&gt;; iterate through each item in the list:&lt;BR /&gt;(foreach i scaleList&lt;BR /&gt;(if (not (checkScale (car i))) ; if the scale does not already exist&lt;BR /&gt;(progn&lt;BR /&gt;(command "-ScaleListEdit" "Add" (car i) (cdr i) "e")&lt;BR /&gt;(princ (strcat "\nAdded " (car i) " to list"))&lt;BR /&gt;)&lt;BR /&gt;(princ (strcat "\nScale " (car i) " already in list"))&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;&lt;BR /&gt;; Restore cmdEcho mode:&lt;BR /&gt;(setvar 'cmdecho cmde)&lt;BR /&gt;(princ)&lt;BR /&gt;)&lt;BR /&gt;;&lt;BR /&gt;; Checks whether scale exist. Returns nil if not, or the full data if it does&lt;BR /&gt;; Sample call: (checkScale "1/8\" = 1'-0\"")&lt;BR /&gt;; Source code: &lt;A href="https://www.theswamp.org/index.php?topic=46328.0" target="_blank"&gt;https://www.theswamp.org/index.php?topic=46328.0&lt;/A&gt; (reply #11)&lt;BR /&gt;(defun checkScale (scaleName / )&lt;BR /&gt;(car&lt;BR /&gt;(vl-remove-if-not&lt;BR /&gt;(function (lambda (item) (eq scaleName (cdr (assoc 300 item)))))&lt;BR /&gt;(mapcar (function (lambda (item) (entget (cdr item))))&lt;BR /&gt;(vl-remove-if-not&lt;BR /&gt;(function (lambda (item) (= (car item) 350)))&lt;BR /&gt;(dictsearch (namedobjdict) "ACAD_SCALELIST")&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;Thanks to&amp;nbsp;&lt;SPAN&gt;ebsoares, sebastian and CADffm&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 08 Oct 2021 22:27:35 GMT</pubDate>
    <dc:creator>owitzki</dc:creator>
    <dc:date>2021-10-08T22:27:35Z</dc:date>
    <item>
      <title>Create Annotation Scales Using List</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/create-annotation-scales-using-list/m-p/9210619#M80331</link>
      <description>&lt;P&gt;Hi, everyone.&lt;/P&gt;&lt;P&gt;Wondering if someone can help me generate a lisp code to add scales to the annotative scale list (using the &lt;STRONG&gt;&lt;EM&gt;-scaleListEdit&lt;/EM&gt;&lt;/STRONG&gt; command) by iterating through a list as the one below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;(setq myScaleList
    (list
        "scaleName1" "1:1"
        "scaleName2" "1:5"&lt;BR /&gt;        "scaleName3" "1:10"
    )
)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The &lt;STRONG&gt;&lt;EM&gt;-scaleListEdit&lt;/EM&gt; &lt;/STRONG&gt;command asks for the name and then the ratio of the scale, so I don't think the&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;foreach&lt;/EM&gt;&lt;/STRONG&gt; function would help me there. I though of using the &lt;STRONG&gt;&lt;EM&gt;mapcar&lt;/EM&gt;&lt;/STRONG&gt; function, but is seems to returns a list (I haven't used that function before, so can't be sure)...&lt;/P&gt;&lt;P&gt;I would prefer to stick to a single list, as shown on the sample code above. Perhaps another option would be a single list of multiple lists, like so:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;(setq myScaleList
    (list
        (list "scaleName1" "1:1")
        (list "scaleName2" "1:5")&lt;BR /&gt;        (list "scaleName3" "1:10")
    )
)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help or guidance would be appreciated!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Dec 2019 21:35:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/create-annotation-scales-using-list/m-p/9210619#M80331</guid>
      <dc:creator>ebsoares</dc:creator>
      <dc:date>2019-12-18T21:35:24Z</dc:date>
    </item>
    <item>
      <title>Betreff: Create Annotation Scales Using List</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/create-annotation-scales-using-list/m-p/9210727#M80332</link>
      <description>&lt;P&gt;Foreach repeat while mapcar, all works, it's just the question how to create the code inside.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But it is simpler with a dotted pair list:&lt;/P&gt;
&lt;PRE&gt;(setq myScaleList
    '(
        ("scaleName1" . "1:1")
        ("scaleName2" . "1:5")&lt;BR /&gt;        ("scaleName3" . "1:10")
    )
)&lt;BR /&gt;&lt;BR /&gt;(foreach i myscalelist&lt;BR /&gt;(Command  .. (car i) (cdr i))&lt;BR /&gt;)&lt;BR /&gt;&lt;BR /&gt;And what is if your scales are present and you run this?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;These scales are standard scales?&lt;BR /&gt;Then you can also use the reset option and edit the system scale list,&lt;BR /&gt;you will find that list in your options.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 18 Dec 2019 22:42:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/create-annotation-scales-using-list/m-p/9210727#M80332</guid>
      <dc:creator>cadffm</dc:creator>
      <dc:date>2019-12-18T22:42:39Z</dc:date>
    </item>
    <item>
      <title>Betreff: Create Annotation Scales Using List</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/create-annotation-scales-using-list/m-p/9210804#M80333</link>
      <description>&lt;P&gt;Thank you, Sebastian! It worked just as I would have liked it to&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;&lt;/P&gt;&lt;P&gt;In regards to whether a particular scale already exists, I am using another piece of code that checks for that and, if it does exist it doesn't do anything.&lt;/P&gt;&lt;P&gt;For those in need, here the full code:&lt;/P&gt;&lt;PRE&gt;;
; --------------------------------------------------------------------------------------------------
; ---------------------------------------- User Functions ------------------------------------------
; --------------------------------------------------------------------------------------------------
;
; Main user call:
(defun C:AnnoScale ( / myScaleList)
    (setq myScaleList             ; Using dotted pair list
        '(                        ; "scale name" . "scale ratio"
            ("scaleName1" . "1:1")
            ("scaleName2" . "1:5")
            ("scaleName3" . "1:10")
        )
    )
    (addScales myScaleList)
    (princ)
)
;
; --------------------------------------------------------------------------------------------------
; ------------------------------------ Main Code (Do Not Edit) -------------------------------------
; --------------------------------------------------------------------------------------------------
;
; Main Code:
(defun addScales (scaleList / cmde i)
    ; Begin silent mode:
    (setq cmde (getvar 'cmdecho)) ; Store cmdEcho variable
    (setvar 'cmdecho 0)
    
    ; iterate through each item in the list:
    (foreach i scaleList
        (if (not (checkScale (car i)))    ; if the scale does not already exist
            (progn
                (command "-ScaleListEdit" "Add" (car i) (cdr i) "e")
                (princ (strcat "\nAdded " (car i) " to list"))
            )
            (princ (strcat "\nScale " (car i) " already in list"))
        )
    )
    
    ; Restore cmdEcho mode:
    (setvar 'cmdecho cmde)
    (princ)
)
;
; Checks whether scale exist. Returns nil if not, or the full data if it does
; Sample call: (checkScale "1/8\" = 1'-0\"")
; Source code: https://www.theswamp.org/index.php?topic=46328.0 (reply #11)
(defun checkScale  (scaleName / )
    (car
        (vl-remove-if-not
            (function (lambda (item) (eq scaleName (cdr (assoc 300 item)))))
            (mapcar (function (lambda (item) (entget (cdr item))))
                (vl-remove-if-not
                    (function (lambda (item) (= (car item) 350)))
                    (dictsearch (namedobjdict) "ACAD_SCALELIST")
                )
            )
        )
    )
)&lt;/PRE&gt;&lt;P&gt;Thanks again,&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/71745"&gt;@cadffm&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍🏼&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Dec 2019 23:53:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/create-annotation-scales-using-list/m-p/9210804#M80333</guid>
      <dc:creator>ebsoares</dc:creator>
      <dc:date>2019-12-18T23:53:17Z</dc:date>
    </item>
    <item>
      <title>Betreff: Create Annotation Scales Using List</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/create-annotation-scales-using-list/m-p/10676858#M80334</link>
      <description>&lt;P&gt;Just wondering if this can be simplified.&lt;/P&gt;&lt;P&gt;For added scale list...&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;;&lt;BR /&gt;(defun C:M75 ( / myScaleList)&lt;BR /&gt;(command "measurement" "1")&lt;BR /&gt;(command "-scalelistedit" "r" "y" "e")&lt;BR /&gt;(setq myScaleList ; Using dotted pair list&lt;BR /&gt;'( ; "scale name" . "scale ratio"&lt;BR /&gt;("1:75" . "1:75")&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;(addScales myScaleList)&lt;BR /&gt;(princ)&lt;BR /&gt;(command "cannoscale" "1:75")&lt;BR /&gt;)&lt;BR /&gt;;&lt;BR /&gt;(defun C:M125 ( / myScaleList)&lt;BR /&gt;(command "measurement" "1")&lt;BR /&gt;(command "-scalelistedit" "r" "y" "e")&lt;BR /&gt;(setq myScaleList ; Using dotted pair list&lt;BR /&gt;'( ; "scale name" . "scale ratio"&lt;BR /&gt;("1:125" . "1:125")&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;(addScales myScaleList)&lt;BR /&gt;(princ)&lt;BR /&gt;(command "cannoscale" "1:125")&lt;BR /&gt;)&lt;BR /&gt;;&lt;BR /&gt;(defun C:M150 ( / myScaleList)&lt;BR /&gt;(command "measurement" "1")&lt;BR /&gt;(command "-scalelistedit" "r" "y" "e")&lt;BR /&gt;(setq myScaleList ; Using dotted pair list&lt;BR /&gt;'( ; "scale name" . "scale ratio"&lt;BR /&gt;("1:150" . "1:150")&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;(addScales myScaleList)&lt;BR /&gt;(princ)&lt;BR /&gt;(command "cannoscale" "1:150")&lt;BR /&gt;)&lt;BR /&gt;;&lt;BR /&gt;(defun C:M200 ( / myScaleList)&lt;BR /&gt;(command "measurement" "1")&lt;BR /&gt;(command "-scalelistedit" "r" "y" "e")&lt;BR /&gt;(setq myScaleList ; Using dotted pair list&lt;BR /&gt;'( ; "scale name" . "scale ratio"&lt;BR /&gt;("1:200" . "1:200")&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;(addScales myScaleList)&lt;BR /&gt;(princ)&lt;BR /&gt;(command "cannoscale" "1:200")&lt;BR /&gt;)&lt;BR /&gt;;&lt;BR /&gt;(defun C:M300 ( / myScaleList)&lt;BR /&gt;(command "measurement" "1")&lt;BR /&gt;(command "-scalelistedit" "r" "y" "e")&lt;BR /&gt;(setq myScaleList ; Using dotted pair list&lt;BR /&gt;'( ; "scale name" . "scale ratio"&lt;BR /&gt;("1:300" . "1:300")&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;(addScales myScaleList)&lt;BR /&gt;(princ)&lt;BR /&gt;(command "cannoscale" "1:300")&lt;BR /&gt;)&lt;BR /&gt;(defun C:M400 ( / myScaleList)&lt;BR /&gt;(command "measurement" "1")&lt;BR /&gt;(command "-scalelistedit" "r" "y" "e")&lt;BR /&gt;(setq myScaleList ; Using dotted pair list&lt;BR /&gt;'( ; "scale name" . "scale ratio"&lt;BR /&gt;("1:400" . "1:400")&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;(addScales myScaleList)&lt;BR /&gt;(princ)&lt;BR /&gt;(command "cannoscale" "1:400")&lt;BR /&gt;)&lt;BR /&gt;(defun C:M500 ( / myScaleList)&lt;BR /&gt;(command "measurement" "1")&lt;BR /&gt;(command "-scalelistedit" "r" "y" "e")&lt;BR /&gt;(setq myScaleList ; Using dotted pair list&lt;BR /&gt;'( ; "scale name" . "scale ratio"&lt;BR /&gt;("1:500" . "1:500")&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;(addScales myScaleList)&lt;BR /&gt;(princ)&lt;BR /&gt;(command "cannoscale" "1:500")&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;;&lt;BR /&gt;;&lt;BR /&gt;; --------------------------------------------------------------------------------------------------&lt;BR /&gt;; ------------------------------------ Main Code (Do Not Edit) -------------------------------------&lt;BR /&gt;; --------------------------------------------------------------------------------------------------&lt;BR /&gt;;&lt;BR /&gt;; Main Code:&lt;BR /&gt;(defun addScales (scaleList / cmde i)&lt;BR /&gt;; Begin silent mode:&lt;BR /&gt;(setq cmde (getvar 'cmdecho)) ; Store cmdEcho variable&lt;BR /&gt;(setvar 'cmdecho 0)&lt;BR /&gt;&lt;BR /&gt;; iterate through each item in the list:&lt;BR /&gt;(foreach i scaleList&lt;BR /&gt;(if (not (checkScale (car i))) ; if the scale does not already exist&lt;BR /&gt;(progn&lt;BR /&gt;(command "-ScaleListEdit" "Add" (car i) (cdr i) "e")&lt;BR /&gt;(princ (strcat "\nAdded " (car i) " to list"))&lt;BR /&gt;)&lt;BR /&gt;(princ (strcat "\nScale " (car i) " already in list"))&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;&lt;BR /&gt;; Restore cmdEcho mode:&lt;BR /&gt;(setvar 'cmdecho cmde)&lt;BR /&gt;(princ)&lt;BR /&gt;)&lt;BR /&gt;;&lt;BR /&gt;; Checks whether scale exist. Returns nil if not, or the full data if it does&lt;BR /&gt;; Sample call: (checkScale "1/8\" = 1'-0\"")&lt;BR /&gt;; Source code: &lt;A href="https://www.theswamp.org/index.php?topic=46328.0" target="_blank"&gt;https://www.theswamp.org/index.php?topic=46328.0&lt;/A&gt; (reply #11)&lt;BR /&gt;(defun checkScale (scaleName / )&lt;BR /&gt;(car&lt;BR /&gt;(vl-remove-if-not&lt;BR /&gt;(function (lambda (item) (eq scaleName (cdr (assoc 300 item)))))&lt;BR /&gt;(mapcar (function (lambda (item) (entget (cdr item))))&lt;BR /&gt;(vl-remove-if-not&lt;BR /&gt;(function (lambda (item) (= (car item) 350)))&lt;BR /&gt;(dictsearch (namedobjdict) "ACAD_SCALELIST")&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;Thanks to&amp;nbsp;&lt;SPAN&gt;ebsoares, sebastian and CADffm&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Oct 2021 22:27:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/create-annotation-scales-using-list/m-p/10676858#M80334</guid>
      <dc:creator>owitzki</dc:creator>
      <dc:date>2021-10-08T22:27:35Z</dc:date>
    </item>
    <item>
      <title>Re: Create Annotation Scales Using List</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/create-annotation-scales-using-list/m-p/10677074#M80335</link>
      <description>&lt;P&gt;Why would you just not provide the scale as a question enter scale, the only thing different in the scale is the "1:" added to it. "1:xxx". Have say a (defun c:addscale. I know I answer lots using my radio buttons but you could have all the scales preset and just pick. 1:300, if metric is an odd scale and normally not used as you have to buy special scale rules. Yeah I know do not scale.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;(defun C:addscale ( / myScaleList)
(setq sc  (getstring "\nEnter scale "))
(setq sc2 (strcat "1:" sc))
(command "measurement" "1")
(command "-scalelistedit" "r" "y" "e")
(setq myScaleList
(list
(cons "scale name" "scale ratio")
(cons sc sc2)
)
)
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 09 Oct 2021 03:19:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/create-annotation-scales-using-list/m-p/10677074#M80335</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2021-10-09T03:19:16Z</dc:date>
    </item>
  </channel>
</rss>

