<?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: Autodimension Max Height and Width in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autodimension-max-height-and-width/m-p/6262584#M133954</link>
    <description>&lt;P&gt;Is it possible to save values of these dimmensions in output file?&lt;/P&gt;</description>
    <pubDate>Mon, 11 Apr 2016 05:14:57 GMT</pubDate>
    <dc:creator>danglar</dc:creator>
    <dc:date>2016-04-11T05:14:57Z</dc:date>
    <item>
      <title>Autodimension Max Height and Width</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autodimension-max-height-and-width/m-p/6204988#M133951</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I am looking for a lisp to autodimension the maximum height and width of a sheet metal flat patern polyline. It is hard for me to code from scratch but i am posting this thinking someone may have encountered the same problem and lisp is hidden somewhere.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;See attached image showing what i am trying to achive.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Mar 2016 17:26:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autodimension-max-height-and-width/m-p/6204988#M133951</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-03-08T17:26:25Z</dc:date>
    </item>
    <item>
      <title>Re: Autodimension Max Height and Width</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autodimension-max-height-and-width/m-p/6207436#M133952</link>
      <description>&lt;P&gt;Hi, try this routine:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-SPOILER&gt;
&lt;PRE&gt;;; Selection Set Bounding Box  -  Lee Mac
;; Returns a list of the lower-left and upper-right WCS coordinates of a
;; rectangular frame bounding all objects in a supplied selection set.
;; s - [sel] Selection set for which to return bounding box

(defun LM:ssboundingbox ( s / a b i m n o )
    (repeat (setq i (sslength s))
        (if
            (and
                (setq o (vlax-ename-&amp;gt;vla-object (ssname s (setq i (1- i)))))
                (vlax-method-applicable-p o 'getboundingbox)
                (not (vl-catch-all-error-p (vl-catch-all-apply 'vla-getboundingbox (list o 'a 'b))))
            )
            (setq m (cons (vlax-safearray-&amp;gt;list a) m)
                  n (cons (vlax-safearray-&amp;gt;list b) n)
            )
        )
    )
    (if (and m n)
        (mapcar '(lambda ( a b ) (apply 'mapcar (cons a b))) '(min max) (list m n))
    )
)


(defun c:DimMax ( / b s )
    (if (and (setq s (ssget))
	     (setq b (LM:ssboundingbox s))
	     )
      (command "_.DIMLINEAR"
	       "_none" (car b)
	       "_none" (list (caadr b) (cadar b))
	       "_none" "@0,-2"
	       "_.DIMLINEAR"
	       "_none" (list (caadr b) (cadar b))
	       "_none" (cadr b)
	       "_none" "@2,0"
	       ))
  (princ)
)

(vl-load-com)&lt;/PRE&gt;
&lt;/LI-SPOILER&gt;
&lt;P&gt;...where were used Lee Mac's&amp;nbsp;&lt;A href="http://www.lee-mac.com/ssboundingbox.html" target="_self"&gt;Selection Set Bounding Box funtion&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Next time pls post the DWG&amp;nbsp;sample!&lt;/STRONG&gt;&amp;nbsp;We don't know if you used polyline, or lines, what units you're using...&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Mar 2016 21:19:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autodimension-max-height-and-width/m-p/6207436#M133952</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2016-03-09T21:19:20Z</dc:date>
    </item>
    <item>
      <title>Re: Autodimension Max Height and Width</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autodimension-max-height-and-width/m-p/6207462#M133953</link>
      <description>&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1779365" target="_self"&gt;&lt;SPAN&gt;BeekeeCZ&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The Lisp works Great.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using Polyline and Units are inches and&amp;nbsp;it also adapts the standard dimension style.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a ton.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Mar 2016 21:33:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autodimension-max-height-and-width/m-p/6207462#M133953</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-03-09T21:33:35Z</dc:date>
    </item>
    <item>
      <title>Re: Autodimension Max Height and Width</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autodimension-max-height-and-width/m-p/6262584#M133954</link>
      <description>&lt;P&gt;Is it possible to save values of these dimmensions in output file?&lt;/P&gt;</description>
      <pubDate>Mon, 11 Apr 2016 05:14:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autodimension-max-height-and-width/m-p/6262584#M133954</guid>
      <dc:creator>danglar</dc:creator>
      <dc:date>2016-04-11T05:14:57Z</dc:date>
    </item>
    <item>
      <title>Re: Autodimension Max Height and Width</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autodimension-max-height-and-width/m-p/6262596#M133955</link>
      <description>&lt;P&gt;I tried to solve a problem of publishing a real paper sizes of layouts using&amp;nbsp;dimensions of MIN MAX boundary points of selected objects in each layout by&amp;nbsp;combining some functions founded here. Now I have a routine can do it&amp;nbsp;(see attached Real Paper Size For All Layouts - REA.lsp)&amp;nbsp;but I want to publish it in a table form&lt;/P&gt;&lt;P&gt;Is it possible to do it in this way?&lt;/P&gt;&lt;P&gt;Any help or suggestions will be very appreciated&lt;/P&gt;</description>
      <pubDate>Mon, 11 Apr 2016 05:32:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autodimension-max-height-and-width/m-p/6262596#M133955</guid>
      <dc:creator>danglar</dc:creator>
      <dc:date>2016-04-11T05:32:06Z</dc:date>
    </item>
  </channel>
</rss>

