<?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: Scale LISP in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/scale-lisp/m-p/8281519#M99349</link>
    <description>&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;sorry for this delay but i'm still at work so i will be here tonight and we will solve this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 20 Sep 2018 14:01:33 GMT</pubDate>
    <dc:creator>Moshe-A</dc:creator>
    <dc:date>2018-09-20T14:01:33Z</dc:date>
    <item>
      <title>Scale LISP</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/scale-lisp/m-p/8276790#M99339</link>
      <description>&lt;P&gt;Hello all&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is my idea. You are at a layout and there is a viewport. Then you draw a line at paperspace of 10 units (mm) for example and you say it is 1 meter in real scale. So the lisp should display the scale. In this sample, it will prompt 1/100.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I ask for this because i usually work with rescaled drawings and the viewport scale is not the final scale.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Sep 2018 22:10:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/scale-lisp/m-p/8276790#M99339</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-09-18T22:10:32Z</dc:date>
    </item>
    <item>
      <title>Betreff: Scale LISP</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/scale-lisp/m-p/8276857#M99340</link>
      <description>You really want a program that calculate 1000/10? If your plot-scale is 1:1.&lt;BR /&gt;&lt;BR /&gt;You can use the quickcalc&lt;BR /&gt;&lt;A href="http://help.autodesk.com/view/ACD/2018/ENU/?guid=GUID-0797E82E-FE80-43D6-8464-398725546A2A" target="_blank"&gt;http://help.autodesk.com/view/ACD/2018/ENU/?guid=GUID-0797E82E-FE80-43D6-8464-398725546A2A&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Type on the length or use the object selection option, then calculate *10&lt;BR /&gt;&lt;BR /&gt;Curious or missunderstood?</description>
      <pubDate>Tue, 18 Sep 2018 23:00:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/scale-lisp/m-p/8276857#M99340</guid>
      <dc:creator>cadffm</dc:creator>
      <dc:date>2018-09-18T23:00:00Z</dc:date>
    </item>
    <item>
      <title>Betreff: Scale LISP</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/scale-lisp/m-p/8276859#M99341</link>
      <description>And also this feature for other units&lt;BR /&gt;&lt;A href="http://help.autodesk.com/view/ACD/2018/ENU/?guid=GUID-A577C7E0-5E97-4D46-B431-FE7477924BDC" target="_blank"&gt;http://help.autodesk.com/view/ACD/2018/ENU/?guid=GUID-A577C7E0-5E97-4D46-B431-FE7477924BDC&lt;/A&gt; &lt;BR /&gt;</description>
      <pubDate>Tue, 18 Sep 2018 23:02:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/scale-lisp/m-p/8276859#M99341</guid>
      <dc:creator>cadffm</dc:creator>
      <dc:date>2018-09-18T23:02:02Z</dc:date>
    </item>
    <item>
      <title>Re: Scale LISP</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/scale-lisp/m-p/8277270#M99342</link>
      <description>&lt;P&gt;Casals,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;in AutoCAD you draw your 2d/3d model in model space (always) at 1:1 scale, whereas in paper space you only put your title block also at 1:1 scale and set the plot scale for the viewport - are we agree with that?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;in paper space you can measure any linear graphics seen from model space with DIST command and get the real (scaled) measurement. you can also use&amp;nbsp;dimension commands to draw dimensions on paper space of object on model space.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Moshe&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Sep 2018 06:19:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/scale-lisp/m-p/8277270#M99342</guid>
      <dc:creator>Moshe-A</dc:creator>
      <dc:date>2018-09-19T06:19:09Z</dc:date>
    </item>
    <item>
      <title>Re: Scale LISP</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/scale-lisp/m-p/8277329#M99343</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN class="login-bold"&gt;&lt;A href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/71745" target="_self"&gt;CADffm&lt;/A&gt;&amp;nbsp;and&amp;nbsp;&lt;A href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/52747" target="_self"&gt;&lt;SPAN class=""&gt;Moshe-A&lt;/SPAN&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="login-bold"&gt;Yes, I draw in model space at 1:1 scale, of course, but i ussually receive drawings for others who not draw at 1:1 scale in model space (they scale in model space and later they scale the viewport too). So, sometimes it's a bit confusing, when you have may drawings with many layouts, So i have to calculate for each one the total scale.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="login-bold"&gt;That's the reason of my post hehe (1000:10 is very easy).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="login-bold"&gt;Thanks.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Sep 2018 07:02:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/scale-lisp/m-p/8277329#M99343</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-09-19T07:02:34Z</dc:date>
    </item>
    <item>
      <title>Re: Scale LISP</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/scale-lisp/m-p/8277421#M99344</link>
      <description>&lt;P&gt;well, it's clear 'your' other peoples do not think about anyone beside them selves.&amp;nbsp;they don't even mind or aware the damage they leave in drawings.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;you can not fix the 'world'.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Sep 2018 07:45:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/scale-lisp/m-p/8277421#M99344</guid>
      <dc:creator>Moshe-A</dc:creator>
      <dc:date>2018-09-19T07:45:23Z</dc:date>
    </item>
    <item>
      <title>Re: Scale LISP</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/scale-lisp/m-p/8277628#M99345</link>
      <description>&lt;P&gt;well, after more thoughts...are you familiar&amp;nbsp; with dimension line factor (dimlfac)?&lt;/P&gt;&lt;P&gt;then you could set some dimstyles with the appropriate dimlfac.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;another tool is to create a special DIST command that make use of the current dimlfac&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;something like this called NDIST&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;enjoy&lt;/P&gt;&lt;P&gt;moshe&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;(defun c:ndist (/ prtm calc_angle_from_xy  ; local functions
		  dimlfac pt1 pt2)

 (defun prtm (lst)
  (foreach a lst (princ a))
 )

 (defun calc_angle_from_xy (/ cx hx)
  (setq cx (distance (list (car pt1) (cadr pt1)) (list (car pt2) (cadr pt2))))
  (setq hx (- (caddr pt2) (caddr pt1)))
  (atan (/ hx cx)) 
 )
  
 (setq dimlfac (getvar "dimlfac"))

 (if (and
       (setq pt1 (getpoint "\nSpecify first point: ")) 
       (setq pt2 (getpoint pt1 "\nSpecify first point: ")) 
     )
  (progn
   (prtm (list "\nDistance = " (rtos (* (distance pt1 pt2) dimlfac))
	       ",  Angle in XY plane = "   (angtos (angle pt1 pt2))
	       ",  Angle from XY plane = " (angtos (calc_angle_from_xy))
	 )
   )
	 
   (prtm (list  "\nDelta X = " (rtos (* (- (car   pt2) (car   pt1)) dimlfac))
	       ",  Detla Y = " (rtos (* (- (cadr  pt2) (cadr  pt1)) dimlfac))
	       ",  Delta Z = " (rtos (* (- (caddr pt2) (caddr pt1)) dimlfac))
	 )
   )
  ); progn
 ); if

 (princ)
) &lt;/PRE&gt;</description>
      <pubDate>Wed, 19 Sep 2018 09:07:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/scale-lisp/m-p/8277628#M99345</guid>
      <dc:creator>Moshe-A</dc:creator>
      <dc:date>2018-09-19T09:07:42Z</dc:date>
    </item>
    <item>
      <title>Re: Scale LISP</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/scale-lisp/m-p/8279249#M99346</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;A href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/52747" target="_self"&gt;&lt;SPAN class=""&gt;Moshe-A&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I am not familiar&amp;nbsp;&lt;SPAN&gt;with dimension line factor. I tried your tool and I think I dont know to use it.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;My goal is:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;1. Specify first and last points (parperspace). For example 10 units&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2. Now you enter the real distance (model space). For example 1 meter&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;3. It prompts the final scale. In the example, 1/100.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Sep 2018 18:55:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/scale-lisp/m-p/8279249#M99346</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-09-19T18:55:46Z</dc:date>
    </item>
    <item>
      <title>Re: Scale LISP</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/scale-lisp/m-p/8280266#M99347</link>
      <description>&lt;P&gt;Casals,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;some how i now notice that the situation you are talking about is this:&lt;/P&gt;&lt;P&gt;model space units is in &lt;FONT color="#0000ff"&gt;cm&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;paper space units is in &lt;FONT color="#0000ff"&gt;mm&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;view port scale is &lt;FONT color="#0000ff"&gt;1:10&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;acutual&amp;nbsp;drawing scale&amp;nbsp;is at 1/100&lt;/P&gt;&lt;P&gt;is this right?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;moshe&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Sep 2018 05:18:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/scale-lisp/m-p/8280266#M99347</guid>
      <dc:creator>Moshe-A</dc:creator>
      <dc:date>2018-09-20T05:18:14Z</dc:date>
    </item>
    <item>
      <title>Re: Scale LISP</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/scale-lisp/m-p/8280517#M99348</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;A href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/52747" target="_self"&gt;&lt;SPAN class=""&gt;Moshe-A&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The example i am talking is this.&lt;/P&gt;&lt;P&gt;model space units is in&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;FONT color="#0000ff"&gt;m (meters). An example 1 meter (1000 milimeters)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;paper space units is in&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;FONT color="#0000ff"&gt;mm (milimeters) An example 10 milimeters&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;view port scale i think is not usefull because it's not real&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So the final scale (mix between model and viewport strange scales), will be 1000/10--&amp;gt; 1/100&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is very easy to do once, but... in the same drawing 10 or 15 times with differents scales and many viewports in the same layout....my head explodes...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I expect you understand my example hehe..&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Sep 2018 07:28:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/scale-lisp/m-p/8280517#M99348</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-09-20T07:28:58Z</dc:date>
    </item>
    <item>
      <title>Re: Scale LISP</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/scale-lisp/m-p/8281519#M99349</link>
      <description>&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;sorry for this delay but i'm still at work so i will be here tonight and we will solve this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Sep 2018 14:01:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/scale-lisp/m-p/8281519#M99349</guid>
      <dc:creator>Moshe-A</dc:creator>
      <dc:date>2018-09-20T14:01:33Z</dc:date>
    </item>
    <item>
      <title>Re: Scale LISP</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/scale-lisp/m-p/8281947#M99350</link>
      <description>&lt;P&gt;Like this ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="iframe-container"&gt;&lt;IFRAME width="640" height="590" src="https://screencast.autodesk.com/Embed/Timeline/979bd614-f610-44f0-9188-7773317512a7" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Sep 2018 16:06:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/scale-lisp/m-p/8281947#M99350</guid>
      <dc:creator>maratovich</dc:creator>
      <dc:date>2018-09-20T16:06:54Z</dc:date>
    </item>
    <item>
      <title>Re: Scale LISP</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/scale-lisp/m-p/8282162#M99351</link>
      <description>&lt;P&gt;@Anonymous,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;although this not the way AutoDesk 'thought' us to use AutoCAD unfortunately many user do&amp;nbsp;and this is a direct result of lowtech&amp;nbsp;&amp;nbsp;AutoCAD course\training plus working without&amp;nbsp;template or lack of&amp;nbsp;&amp;nbsp;supervision&amp;nbsp;at offices.&lt;/P&gt;&lt;P&gt;anyhow&amp;nbsp;the paper&amp;nbsp;space is totally unsynchronized with model space (there is a&amp;nbsp;gap of 1000mm between them) but it works and the plot (plot scale 1=1) will come out ok.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the viewport scale by the way is:&lt;/P&gt;&lt;P&gt;for 1:100 is zoom 10xp&lt;/P&gt;&lt;P&gt;for 1:50&amp;nbsp;&amp;nbsp; is zoom 20xp&lt;/P&gt;&lt;P&gt;for 1:25&amp;nbsp;&amp;nbsp; is zoom 40xp&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the mathematics here is simple 1000mm div by scale&amp;nbsp; (e.g 1000 : 100 = 10xp)&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;now you have 2 options:&lt;/P&gt;&lt;P&gt;flow with it&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;scale down the layouts by 1/1000 (make&amp;nbsp;in meters) than set the right scale for the viewports&lt;/P&gt;&lt;P&gt;e.g 1/100xp for 1:100, 1/50 for 1:50 and so on.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and remember that the plot scale should now&amp;nbsp;be 1000=1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if you post an example dwg I will fix the first layout for you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Moshe&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;HR /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Sep 2018 17:30:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/scale-lisp/m-p/8282162#M99351</guid>
      <dc:creator>Moshe-A</dc:creator>
      <dc:date>2018-09-20T17:30:10Z</dc:date>
    </item>
    <item>
      <title>Re: Scale LISP</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/scale-lisp/m-p/8283381#M99352</link>
      <description>&lt;P&gt;if you choose the second option then there is another issue i forgot to mention last night and it is&amp;nbsp;linetypes\linetype scale but that also has solution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Sep 2018 07:30:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/scale-lisp/m-p/8283381#M99352</guid>
      <dc:creator>Moshe-A</dc:creator>
      <dc:date>2018-09-21T07:30:15Z</dc:date>
    </item>
    <item>
      <title>Re: Scale LISP</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/scale-lisp/m-p/8283782#M99353</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;A href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/52747" target="_self"&gt;&lt;SPAN class=""&gt;Moshe-A&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes i know how works scale in modelspace and paperspace if you work with meters.&lt;/P&gt;&lt;P&gt;I am trying to make the code on my own, but i am not very good at lisp. This is my code now (based on yours):&lt;/P&gt;&lt;PRE&gt;(defun c:ndist ()
       (setq pt1 (getpoint "\nSpecify first point: ")) 
       (setq pt2 (getpoint pt1 "\nSpecify second point: ")) 
	(setq ptt (getdist "\nSpecify real distance in meters: "))
	(setq pttx (* ptt 1000))
	(setq pttd (/ pttx pt2))
   	(prompt "Scale = 1/!pttd")
 (princ)
) &lt;/PRE&gt;</description>
      <pubDate>Fri, 21 Sep 2018 10:55:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/scale-lisp/m-p/8283782#M99353</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-09-21T10:55:23Z</dc:date>
    </item>
    <item>
      <title>Re: Scale LISP</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/scale-lisp/m-p/8284416#M99354</link>
      <description>&lt;P&gt;to tell you the truth i do not understand to where are you going?&lt;/P&gt;&lt;P&gt;cause if you are in paper space and use dist command you will get the real measurement you need (also with dimensions)&lt;/P&gt;&lt;P&gt;under each viewport add a text to specify the scale.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;does this solves you problem?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Sep 2018 14:43:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/scale-lisp/m-p/8284416#M99354</guid>
      <dc:creator>Moshe-A</dc:creator>
      <dc:date>2018-09-21T14:43:26Z</dc:date>
    </item>
    <item>
      <title>Re: Scale LISP</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/scale-lisp/m-p/8285710#M99355</link>
      <description>&lt;P&gt;Casalas,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;here is an extension to the previous lisp now called VPDIST cause it works only in paper space&lt;/P&gt;&lt;P&gt;the view port scale will show along the second prompt of 'dist' command.&lt;/P&gt;&lt;P&gt;it work only with rectangle viewports.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;enjoy&lt;/P&gt;&lt;P&gt;moshe&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;(defun c:vpdist (/ prtm calc_angle_from_xy get_vp_scale ; local functions
		   p0 p1 ss0 ss1 i ename0 ename1 elist0 vpscale flag)

 (defun prtm (lst)
  (foreach a lst (princ a))
 )

 (defun calc_angle_from_xy (/ cx hx)
  (setq cx (distance (list (car p0) (cadr p0)) (list (car p1) (cadr p1))))
  (setq hx (- (caddr p1) (caddr p0)))
  (atan (/ hx cx)) 
 )
  
 (defun get_vp_scale (/ cen c40 c41 c45 pt0 pt1 ss1)
  (if (not (assoc '340 elist0))      ; only rectangle viewport allowed
   (progn 	   
    (setq cen (cdr (assoc '10 elist0)))
    (setq c40 (cdr (assoc '40 elist0)))
    (setq c41 (cdr (assoc '41 elist0)))
    (setq c45 (cdr (assoc '45 elist0)))
    (setq pt0 (list (- (car cen) (/ c40 2)) (- (cadr cen) (/ c41 2))))
    (setq pt1 (list (+ (car cen) (/ c40 2)) (+ (cadr cen) (/ c41 2))))

    (if (and
	 (setq ss1 (ssget "_c" pt0 pt1 (list '(0 . "line") (cons '410 (getvar "ctab")))))
	 (ssmemb ename1 ss1)
	)
     (/ c45 c41) ; return viewport scale
    ); if
   ); progn
  ); if
 ); get_vp_scale

  
 (setvar "tilemode" 0) ; switch to layout
 (command "_.pspace")  ; make sure in paper space

 (if (and
      (setq p0 (getpoint "\nSpecify first point: "))
      (setq p1 (getpoint p0 "\nSpecify second point: "))
     ) 
  (if (setq ss0 (ssget "_x" (list '(0 . "viewport") (cons '410 (getvar "ctab")))))
   (progn
    (command "._line" p0 p1 "")
    (setq ename1 (entlast))
    (setq i -1)
    (while (and (not flag)
		(setq ename0 (ssname ss0 (setq i (1+ i))))
	   )
     (setq elist0 (entget ename0))
     (if (&amp;gt; (cdr (assoc '69 elist0)) 1) ; skip main viewport
      (if (setq vpscale (get_vp_scale))
       (progn
        (prtm (list "\nDistance = " (rtos (* (distance p0 p1) vpscale))
	            ",  Angle in XY plane = "   (angtos (angle p0 p1))
	            ",  Angle from XY plane = " (angtos (calc_angle_from_xy))
	      )
        )
	 
        (prtm (list  "\nDelta X = "  (rtos (* (- (car   p1) (car   p0)) vpscale))
	             ",  Detla Y = " (rtos (* (- (cadr  p1) (cadr  p0)) vpscale))
	             ",  Delta Z = " (rtos (* (- (caddr p1) (caddr p0)) vpscale))
		     ",  Scale = 1:" (rtos (* vpscale 1000) 2 0)
	      )
        )

	(setq flag nil) ; stop while
       ); progn
      ); if
     ); if
    ); while
    (entdel ename1)  
   ); progn
  ); if  
 ); if
 
 (princ)
); c:ndist

&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 22 Sep 2018 09:05:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/scale-lisp/m-p/8285710#M99355</guid>
      <dc:creator>Moshe-A</dc:creator>
      <dc:date>2018-09-22T09:05:09Z</dc:date>
    </item>
    <item>
      <title>Re: Scale LISP</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/scale-lisp/m-p/8287498#M99356</link>
      <description>&lt;P&gt;Casals,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Attached ndist.lsp my last update. i have changed it again to NDIST cause now it will work in any space meaning if you invoke it in model space it would work like standard DIST command.&amp;nbsp;&lt;/P&gt;&lt;P&gt;it's now also support non rectangular viewports who basiclly contains straight lines.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;enjoy&lt;/P&gt;&lt;P&gt;moshe&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Sep 2018 07:58:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/scale-lisp/m-p/8287498#M99356</guid>
      <dc:creator>Moshe-A</dc:creator>
      <dc:date>2018-09-24T07:58:53Z</dc:date>
    </item>
    <item>
      <title>Re: Scale LISP</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/scale-lisp/m-p/8287801#M99357</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;A href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/52747" target="_self"&gt;&lt;SPAN class=""&gt;Moshe-A&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry for late, I have been very busy. I dont see your last attached lsp.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In general my idea is to specify the distance in paperspace (first part of the lisp that you have code) and then you write the real length, so the lisp will show the real scale (for special drawings like mine). If you dont understad, it doesnt matter, i am trying to make myself.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the effort.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Sep 2018 11:21:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/scale-lisp/m-p/8287801#M99357</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-09-24T11:21:36Z</dc:date>
    </item>
    <item>
      <title>Re: Scale LISP</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/scale-lisp/m-p/8287818#M99358</link>
      <description>&lt;P&gt;&lt;SPAN class="short_text"&gt;&lt;SPAN class=""&gt;I asked you, did you see the video?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Sep 2018 11:29:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/scale-lisp/m-p/8287818#M99358</guid>
      <dc:creator>maratovich</dc:creator>
      <dc:date>2018-09-24T11:29:03Z</dc:date>
    </item>
  </channel>
</rss>

