<?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: Auto Offset Dimensions in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/auto-offset-dimensions/m-p/12198141#M24903</link>
    <description>&lt;P&gt;OK.&lt;/P&gt;&lt;P&gt;I added.&lt;/P&gt;</description>
    <pubDate>Sat, 26 Aug 2023 06:17:22 GMT</pubDate>
    <dc:creator>W_T_</dc:creator>
    <dc:date>2023-08-26T06:17:22Z</dc:date>
    <item>
      <title>Auto Offset Dimensions</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/auto-offset-dimensions/m-p/12197848#M24901</link>
      <description>&lt;P&gt;I'm using a LISP,&lt;BR /&gt;I want it to align while,&lt;BR /&gt;Automatically shift upwards or to the right by 10mm&lt;BR /&gt;Not sure if it can be fixed?&lt;BR /&gt;Thanks for all the help.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="W_T__0-1693030539410.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1258451iC12AF8190A02F2DB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="W_T__0-1693030539410.png" alt="W_T__0-1693030539410.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 26 Aug 2023 06:16:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/auto-offset-dimensions/m-p/12197848#M24901</guid>
      <dc:creator>W_T_</dc:creator>
      <dc:date>2023-08-26T06:16:10Z</dc:date>
    </item>
    <item>
      <title>Re: Auto Offset Dimensions</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/auto-offset-dimensions/m-p/12197995#M24902</link>
      <description>&lt;P&gt;Post a dwg with before and after.&lt;/P&gt;</description>
      <pubDate>Sat, 26 Aug 2023 02:36:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/auto-offset-dimensions/m-p/12197995#M24902</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2023-08-26T02:36:04Z</dc:date>
    </item>
    <item>
      <title>Re: Auto Offset Dimensions</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/auto-offset-dimensions/m-p/12198141#M24903</link>
      <description>&lt;P&gt;OK.&lt;/P&gt;&lt;P&gt;I added.&lt;/P&gt;</description>
      <pubDate>Sat, 26 Aug 2023 06:17:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/auto-offset-dimensions/m-p/12198141#M24903</guid>
      <dc:creator>W_T_</dc:creator>
      <dc:date>2023-08-26T06:17:22Z</dc:date>
    </item>
    <item>
      <title>Re: Auto Offset Dimensions</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/auto-offset-dimensions/m-p/12198265#M24904</link>
      <description>&lt;P&gt;Preselect them, DIMSPACE, pick the top/bottom one, type 10. Done.&lt;/P&gt;</description>
      <pubDate>Sat, 26 Aug 2023 08:51:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/auto-offset-dimensions/m-p/12198265#M24904</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2023-08-26T08:51:23Z</dc:date>
    </item>
    <item>
      <title>Re: Auto Offset Dimensions</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/auto-offset-dimensions/m-p/12198338#M24905</link>
      <description>&lt;P&gt;thanks for the reply.&lt;BR /&gt;I know DIMSPACE.&lt;BR /&gt;But I would like to have a faster operation.&lt;BR /&gt;Because I have many operations like this. . .&lt;/P&gt;</description>
      <pubDate>Sat, 26 Aug 2023 10:30:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/auto-offset-dimensions/m-p/12198338#M24905</guid>
      <dc:creator>W_T_</dc:creator>
      <dc:date>2023-08-26T10:30:35Z</dc:date>
    </item>
    <item>
      <title>Re: Auto Offset Dimensions</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/auto-offset-dimensions/m-p/12199271#M24906</link>
      <description>&lt;P&gt;You can do say pick dim point 1, then dim point2, dim point2 dim point3 etc You would need say 2 versions of dim VER and dim HOR.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SeaHaven_0-1693115487015.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1258595iB3E4B03D852559F2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SeaHaven_0-1693115487015.png" alt="SeaHaven_0-1693115487015.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;(defun c:dimhorup (  / pt pt1 pt3 lst ymax x )
(setq lst '())
(while (setq pt (getpoint "\nPick dim points in order"))
(setq lst (cons pt lst))
)
(setq lst (reverse lst))
(setq pt1 (car lst))
(setq ymax -1000.0)
(foreach pts lst
(if (&amp;lt; ymax (cadr pts))(setq ymax (cadr pts)))
)
(setq pt3 (mapcar '+ (list (car pt1) ymax 0.0) (list 0.0 10 0.0)))
(setq x 1)
(repeat (- (length lst) 1)
(command "DIM" "HOR" pt1 (nth x lst) pt3 "" "exit")
(setq x (1+ x))
(setq pt3 (mapcar '+ pt3 (list 0.0 10 0.0)))
)
(princ)
)
(c:dimhorup)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 27 Aug 2023 05:51:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/auto-offset-dimensions/m-p/12199271#M24906</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2023-08-27T05:51:59Z</dc:date>
    </item>
    <item>
      <title>Re: Auto Offset Dimensions</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/auto-offset-dimensions/m-p/12199302#M24907</link>
      <description>&lt;P&gt;Thank you so much.&lt;/P&gt;&lt;P&gt;But this LISP,&lt;BR /&gt;Quick labeling can only be achieved in the X direction,&lt;BR /&gt;Not in the Y direction&lt;/P&gt;</description>
      <pubDate>Sun, 27 Aug 2023 06:26:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/auto-offset-dimensions/m-p/12199302#M24907</guid>
      <dc:creator>W_T_</dc:creator>
      <dc:date>2023-08-27T06:26:09Z</dc:date>
    </item>
    <item>
      <title>Re: Auto Offset Dimensions</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/auto-offset-dimensions/m-p/12199560#M24908</link>
      <description>&lt;P&gt;Yes did say 4 versions needed. I only did 1 you should be able to work out the other 3.&lt;/P&gt;</description>
      <pubDate>Sun, 27 Aug 2023 11:57:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/auto-offset-dimensions/m-p/12199560#M24908</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2023-08-27T11:57:03Z</dc:date>
    </item>
    <item>
      <title>Re: Auto Offset Dimensions</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/auto-offset-dimensions/m-p/12201403#M24909</link>
      <description>... and if I may add to the fray: creating what you want in the first place remains the best solution &lt;A href="https://resources.imaginit.com/support-blog/autocad-ordinate-dimensions-setting-it-up-correctly-the-first-time" target="_blank"&gt;https://resources.imaginit.com/support-blog/autocad-ordinate-dimensions-setting-it-up-correctly-the-first-time&lt;/A&gt;</description>
      <pubDate>Mon, 28 Aug 2023 13:25:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/auto-offset-dimensions/m-p/12201403#M24909</guid>
      <dc:creator>pendean</dc:creator>
      <dc:date>2023-08-28T13:25:01Z</dc:date>
    </item>
    <item>
      <title>Re: Auto Offset Dimensions</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/auto-offset-dimensions/m-p/12201789#M24910</link>
      <description>&lt;P&gt;Perhaps it's about time to learn how to customize things... especially if you're&amp;nbsp;obsessed with efficiency.&lt;/P&gt;
&lt;P&gt;Try this one. Do the selection +- orthogonally. It works with orthogonal dims only.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;(defun c:DDT ( / *error* ort osm o p r s l a f d m) ; dim d=10
  
  (defun *error* (errmsg)
    (if (not (wcmatch errmsg "Function cancelled,quit / exit abort,console break,end"))
      (princ (strcat "\nError: " errmsg)))
    (if osm (setvar 'osmode osm))
    (if ort (setvar 'orthomode ort))
    (princ))
  
  (setq osm (getvar 'osmode)) 		(setvar 'osmode (boole 7 osm 16384))
  (setq ort (getvar 'orthomode))	(setvar 'orthomode 0)
  
  (while (and (setq p (getpoint "\rSelect from Base Dimension: "))
	      (setq r (getpoint p " ...all dimensions: "))
	      (setq s (ssget "_c" p r))
	      (&amp;gt; (sslength s) 1)
	      (setq l (vl-remove-if 'listp (mapcar 'cadr (ssnamex s))))
	      (setq a (strcat "DimLinePoint/" (if (&amp;gt; (abs (- (car p) (car r))) (abs (- (cadr p) (cadr r)))) "X" "Y")))
	      (setq f ((if (&amp;gt; (abs (- (car p) (car r)))) car cadr) (trans p 1 0)))
	      (setq l (vl-sort l '(lambda (e1 e2) (&amp;lt; (abs (- (getpropertyvalue e1 a) f))
						     (abs (- (getpropertyvalue e2 a) f))))))
	      (setq f (getpropertyvalue (car l) a))
	      (setq d (if (&amp;gt; (getpropertyvalue (cadr l) a) (getpropertyvalue (car l) a)) 10 -10))
	      (setq m 0)
	      )
    (foreach e (cdr l)
      (setpropertyvalue e a (+ f (* d (setq m (1+ m)))))
      ))
  (*error* "end")
  )
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Aug 2023 17:09:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/auto-offset-dimensions/m-p/12201789#M24910</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2023-08-28T17:09:56Z</dc:date>
    </item>
    <item>
      <title>Re: Auto Offset Dimensions</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/auto-offset-dimensions/m-p/12201977#M24911</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/37212"&gt;@pendean&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;... creating what you want in the first place remains the best solution ....&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I agree.&amp;nbsp;&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/11626331"&gt;@W_T_&lt;/a&gt;&amp;nbsp;, if you are talking about Dimensions that are &lt;EM&gt;already drawn&lt;/EM&gt;, this won't help, but for &lt;EM&gt;new&lt;/EM&gt; Dimensions, &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/37212"&gt;@pendean&lt;/a&gt;'s link mentions the way to get what you illustrate in the "after" situation, though in passing, and heading for describing a different approach.&amp;nbsp; You can get your illustration directly, if you first draw the closest-in Dimension, and then use &lt;STRONG&gt;DIMBASELINE&lt;/STRONG&gt; for more of them.&amp;nbsp; They will automatically space their dimension-line locations equally, at the distance specified by the &lt;STRONG&gt;DIMDLI&lt;/STRONG&gt; System Variable [= &lt;STRONG&gt;DIM&lt;/STRONG&gt;ension &lt;STRONG&gt;D&lt;/STRONG&gt;imension-&lt;STRONG&gt;L&lt;/STRONG&gt;ine &lt;STRONG&gt;I&lt;/STRONG&gt;ncrement or may &lt;STRONG&gt;I&lt;/STRONG&gt;nterval].&lt;/P&gt;</description>
      <pubDate>Mon, 28 Aug 2023 16:55:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/auto-offset-dimensions/m-p/12201977#M24911</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2023-08-28T16:55:54Z</dc:date>
    </item>
  </channel>
</rss>

