<?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 Is it possible to add this effect to an arbitrary rectangle in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/is-it-possible-to-add-this-effect-to-an-arbitrary-rectangle/m-p/9371113#M77314</link>
    <description>&lt;P&gt;&lt;BR /&gt;Like the file&lt;BR /&gt;I want to add 5MM line segments in the middle of the horizontal and vertical of any rectangle&lt;BR /&gt;Rectangle 8MM inward and add the circle of the following size&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Is this feasible?&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 11 Mar 2020 09:34:24 GMT</pubDate>
    <dc:creator>a22663564</dc:creator>
    <dc:date>2020-03-11T09:34:24Z</dc:date>
    <item>
      <title>Is it possible to add this effect to an arbitrary rectangle</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/is-it-possible-to-add-this-effect-to-an-arbitrary-rectangle/m-p/9371113#M77314</link>
      <description>&lt;P&gt;&lt;BR /&gt;Like the file&lt;BR /&gt;I want to add 5MM line segments in the middle of the horizontal and vertical of any rectangle&lt;BR /&gt;Rectangle 8MM inward and add the circle of the following size&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Is this feasible?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Mar 2020 09:34:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/is-it-possible-to-add-this-effect-to-an-arbitrary-rectangle/m-p/9371113#M77314</guid>
      <dc:creator>a22663564</dc:creator>
      <dc:date>2020-03-11T09:34:24Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to add this effect to an arbitrary rectangle</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/is-it-possible-to-add-this-effect-to-an-arbitrary-rectangle/m-p/9371129#M77315</link>
      <description>&lt;P&gt;It borders on a custom project ie pay for it, its 3 routines, Mid lines, circles and dims. Its a real good task to have a go at. Its just made up of a lot of polar commands working out the points.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is a front end to get you started.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;(if (not AH:getvalsm)(load "Multi Getvals.lsp"))
(setq ans (AH:getvalsm (list "Enter values" "Centre length" 5 4 "5" "Circle ver offset " 5 4 "8" "Circle hor offset " 5 4 "8" "Outer Rad " 5 4 "3.6" "Inner Rad " 5 4 "3.1")))
; Ans holds a list of strings&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&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="screenshot167.png" style="width: 767px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/739929iE0A0460DB28D59F8/image-size/large?v=v2&amp;amp;px=999" role="button" title="screenshot167.png" alt="screenshot167.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Mar 2020 09:51:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/is-it-possible-to-add-this-effect-to-an-arbitrary-rectangle/m-p/9371129#M77315</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2020-03-11T09:51:36Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to add this effect to an arbitrary rectangle</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/is-it-possible-to-add-this-effect-to-an-arbitrary-rectangle/m-p/9371141#M77316</link>
      <description>&lt;P&gt;This will return the co-ordinates of the 4 corners.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;(setq plent (entsel "\nPick rectang"))
(if plent (setq co-ord (mapcar 'cdr (vl-remove-if-not '(lambda (x) (= (car x) 10)) (entget (car plent))))))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Mar 2020 09:54:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/is-it-possible-to-add-this-effect-to-an-arbitrary-rectangle/m-p/9371141#M77316</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2020-03-11T09:54:16Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to add this effect to an arbitrary rectangle</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/is-it-possible-to-add-this-effect-to-an-arbitrary-rectangle/m-p/9371343#M77317</link>
      <description>&lt;P&gt;For the midpoint Lines, you can use &lt;STRONG&gt;MarkMidPoints.lsp&lt;/STRONG&gt; with its &lt;STRONG&gt;MMP&lt;/STRONG&gt; command, available &lt;A href="https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/inserting-a-block-on-the-midpoint-of-many-lines-polylines/m-p/9360414/highlight/true#M396913" target="_blank" rel="noopener"&gt;&amp;gt;here&amp;lt;&lt;/A&gt;.&amp;nbsp; It has an option for Polylines to mark either the overall midpoint or the midpoint of each segment.&amp;nbsp; In the mark-with-Lines option, they will be &lt;EM&gt;centered&lt;/EM&gt;&amp;nbsp; on the path object, but if you make a Block of a 5-unit-long line, with its insertion base point at an end, you can use that -- experiment with which end is used for the insertion point, which direction it faces in base orientation, and how you specify the rotation in the command.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Mar 2020 11:26:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/is-it-possible-to-add-this-effect-to-an-arbitrary-rectangle/m-p/9371343#M77317</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2020-03-11T11:26:59Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to add this effect to an arbitrary rectangle</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/is-it-possible-to-add-this-effect-to-an-arbitrary-rectangle/m-p/9372962#M77318</link>
      <description>&lt;P&gt;Kent just an idea "&lt;STRONG&gt;&lt;FONT color="#ff0000"&gt;&lt;SPAN style="text-align: left; color: #666666; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: 'Artifakt',Tahoma,Helvetica,Arial,sans-serif; font-size: 14px; font-style: normal; font-variant: normal; text-decoration: none; word-spacing: 0px; display: inline !important; white-space: normal; orphans: 2; float: none; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt;&lt;FONT color="#ff0000"&gt;if&lt;/FONT&gt; &lt;FONT color="#ff0000"&gt;you make a Block&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/FONT&gt;"&lt;/STRONG&gt; make a dynamic/constrained block change L &amp;amp; W, rad1 rad2, offV &amp;amp; offH all done.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For a&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #666666; font-family: 'Artifakt',Tahoma,Helvetica,Arial,sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;2266 3564 v&lt;/SPAN&gt;ia lisp add the L&amp;amp;W to what I previously posted.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Mar 2020 22:10:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/is-it-possible-to-add-this-effect-to-an-arbitrary-rectangle/m-p/9372962#M77318</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2020-03-11T22:10:23Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to add this effect to an arbitrary rectangle</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/is-it-possible-to-add-this-effect-to-an-arbitrary-rectangle/m-p/9373119#M77319</link>
      <description>&lt;P&gt;Thank you all for your help&lt;/P&gt;&lt;P&gt;Give me a lot of opinions&lt;/P&gt;</description>
      <pubDate>Thu, 12 Mar 2020 00:26:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/is-it-possible-to-add-this-effect-to-an-arbitrary-rectangle/m-p/9373119#M77319</guid>
      <dc:creator>a22663564</dc:creator>
      <dc:date>2020-03-12T00:26:52Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to add this effect to an arbitrary rectangle</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/is-it-possible-to-add-this-effect-to-an-arbitrary-rectangle/m-p/9373133#M77320</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I tried to write two codes myself&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;It is a point-to-point trigger code that can be selected on any rectangle&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Can it be modified to select a rectangular trigger code?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;---------------------------------------------------------------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;(defun C:ff ()&lt;/P&gt;&lt;P&gt;(setvar "osnapcoord" 1)&lt;/P&gt;&lt;P&gt;(setq PT1 (getpoint "\n Choose the first point:"))&lt;BR /&gt;(setq PT3 (getcorner pt1 "\n Diagonal point:"))&lt;BR /&gt;(setq x1 (car pt1))&lt;BR /&gt;(setq y1 (cadr pt1))&lt;BR /&gt;(setq x3 (car pt3))&lt;BR /&gt;(setq y3 (cadr pt3))&lt;BR /&gt;(setq PT2 (list x3 y1))&lt;BR /&gt;(setq PT4 (list x1 y3))&lt;BR /&gt;(setq pn1 (polar PT1(angle PT1 PT2) (/ (distance PT1 PT2) 2)))&lt;BR /&gt;(setq pn2 (polar PT2(angle PT2 PT3) (/ (distance PT2 PT3) 2)))&lt;BR /&gt;(setq pn3 (polar PT3(angle PT3 PT4) (/ (distance PT3 PT4) 2)))&lt;BR /&gt;(setq pn4 (polar PT4(angle PT4 PT1) (/ (distance PT4 PT1) 2)))&lt;/P&gt;&lt;P&gt;(setq P11(car PT1))&lt;BR /&gt;(setq P12(cadr PT1))&lt;BR /&gt;(setq P00 (list(+ P11 8)(+ P12 -8)))&lt;BR /&gt;(command "circle" P00 "d" "3.6")&lt;BR /&gt;(command "circle" P00 "d" "3.1")&lt;/P&gt;&lt;P&gt;(setq P13(car PT2))&lt;BR /&gt;(setq P14(cadr PT2))&lt;BR /&gt;(setq P01 (list(+ P13 -8)(+ P14 -8)))&lt;BR /&gt;(command "circle" P01 "d" "3")&lt;/P&gt;&lt;P&gt;(setq P15(car PT3))&lt;BR /&gt;(setq P16(cadr PT3))&lt;BR /&gt;(setq P02 (list(+ P15 -8)(+ P16 8)))&lt;BR /&gt;(command "circle" P02 "d" "3.6")&lt;BR /&gt;(command "circle" P02 "d" "3.1")&lt;/P&gt;&lt;P&gt;(setq P17(car PT4))&lt;BR /&gt;(setq P18(cadr PT4))&lt;BR /&gt;(setq P03 (list(+ P17 8)(+ P18 8)))&lt;BR /&gt;(command "circle" P03 "d" "3")&lt;/P&gt;&lt;P&gt;(princ)&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(defun c:dd ()&lt;BR /&gt;(setvar "osnapcoord" 1)&lt;BR /&gt;(setq PT1 (getpoint "\n Choose the first point:"))&lt;BR /&gt;(setq PT3 (getcorner pt1 "\n Diagonal point:"))&lt;BR /&gt;(setq x1 (car pt1))&lt;BR /&gt;(setq y1 (cadr pt1))&lt;BR /&gt;(setq x3 (car pt3))&lt;BR /&gt;(setq y3 (cadr pt3))&lt;BR /&gt;(setq PT2 (list x3 y1))&lt;BR /&gt;(setq PT4 (list x1 y3))&lt;BR /&gt;(setq pn1 (polar PT1(angle PT1 PT2) (/ (distance PT1 PT2) 2)))&lt;BR /&gt;(setq pn2 (polar PT2(angle PT2 PT3) (/ (distance PT2 PT3) 2)))&lt;BR /&gt;(setq pn3 (polar PT3(angle PT3 PT4) (/ (distance PT3 PT4) 2)))&lt;BR /&gt;(setq pn4 (polar PT4(angle PT4 PT1) (/ (distance PT4 PT1) 2)))&lt;/P&gt;&lt;P&gt;(setq pn1x(car pn1))&lt;BR /&gt;(setq pn1y(cadr pn1))&lt;BR /&gt;(setq pn11 (list(+ pn1x 0)(+ pn1y -5)))&lt;BR /&gt;(command "line" pn1 pn11 "")&lt;/P&gt;&lt;P&gt;(setq pn2x(car pn2))&lt;BR /&gt;(setq pn2y(cadr pn2))&lt;BR /&gt;(setq pn21 (list(+ pn2x -5)(+ pn2y 0)))&lt;BR /&gt;(command "line" pn2 pn21 "")&lt;/P&gt;&lt;P&gt;(setq pn3x(car pn3))&lt;BR /&gt;(setq pn3y(cadr pn3))&lt;BR /&gt;(setq pn31 (list(+ pn3x 0)(+ pn3y 5)))&lt;BR /&gt;(command "line" pn3 pn31 "")&lt;/P&gt;&lt;P&gt;(setq pn4x(car pn4))&lt;BR /&gt;(setq pn4y(cadr pn4))&lt;BR /&gt;(setq pn41 (list(+ pn4x 5)(+ pn4y 0)))&lt;BR /&gt;(command "line" pn4 pn41 "")&lt;/P&gt;&lt;P&gt;(princ)&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Mar 2020 00:40:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/is-it-possible-to-add-this-effect-to-an-arbitrary-rectangle/m-p/9373133#M77320</guid>
      <dc:creator>a22663564</dc:creator>
      <dc:date>2020-03-12T00:40:02Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to add this effect to an arbitrary rectangle</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/is-it-possible-to-add-this-effect-to-an-arbitrary-rectangle/m-p/9373168#M77321</link>
      <description>&lt;P&gt;Good to see you have something close, I would approach it like this.&lt;/P&gt;&lt;P&gt;use Rectang enter L &amp;amp; W&lt;/P&gt;&lt;P&gt;get the rectang co-ords this is 4 points add to this the 1st again, the reason for this is below&lt;/P&gt;&lt;P&gt;use repeat 4 ie 4 points&lt;/P&gt;&lt;P&gt;using rectang points can work out mid pt1 pt2 then draw mid line,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can work out the offset 8mm hor and ver for each cnr, 5th co-ord is used as a dummy for the 4th point&lt;/P&gt;&lt;P&gt;draw circles.&lt;/P&gt;&lt;P&gt;end repeat&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;after getting that to work add in the dim and leader functions&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You may want to use Lee-mac check pline is clockwise else everything may go outside.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using polar and line angles will mean even if you rotate the rectang it will still work.&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>Thu, 12 Mar 2020 01:21:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/is-it-possible-to-add-this-effect-to-an-arbitrary-rectangle/m-p/9373168#M77321</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2020-03-12T01:21:20Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to add this effect to an arbitrary rectangle</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/is-it-possible-to-add-this-effect-to-an-arbitrary-rectangle/m-p/9373172#M77322</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Give me great ideas thanks&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Mar 2020 01:26:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/is-it-possible-to-add-this-effect-to-an-arbitrary-rectangle/m-p/9373172#M77322</guid>
      <dc:creator>a22663564</dc:creator>
      <dc:date>2020-03-12T01:26:58Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to add this effect to an arbitrary rectangle</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/is-it-possible-to-add-this-effect-to-an-arbitrary-rectangle/m-p/9373177#M77323</link>
      <description>&lt;P&gt;Using multi getvals.lsp try this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;(setq a0 0.0 a90 (/ pi 2.0) a180 pi a270 (* 1.5 pi))

(if (not AH:getvalsm)(load "Multi Getvals.lsp"))
(setq ans (AH:getvalsm (list "Enter values" "Length" 5 4 "100" "Height" 5 4 "80" "Centre length" 5 4 "5" "Circle ver offset " 5 4 "8" "Circle hor offset " 5 4 "8" "Outer Rad " 5 4 "3.6" "Inner Rad " 5 4 "3.1")))
(setq 
len (atof (nth 0 ans))
ht (atof (nth 1 ans))
len2 (atof (nth 2 ans))
voff (atof (nth 3 ans))
hoff (atof (nth 4 ans))
rad1 (atof (nth 5 ans))
rad2 (atof (nth 6 ans))
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Mar 2020 01:33:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/is-it-possible-to-add-this-effect-to-an-arbitrary-rectangle/m-p/9373177#M77323</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2020-03-12T01:33:49Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to add this effect to an arbitrary rectangle</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/is-it-possible-to-add-this-effect-to-an-arbitrary-rectangle/m-p/9377533#M77324</link>
      <description>&lt;P&gt;I thought would have a go at this and see how code could be shortened, so far draws rectang and the 5mm lines at 1/2 point. Next is add circles.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;(setq a90 (/ pi 2.0) a180 pi a270 (* 1.5 pi))
(setq oldsnap (getvar 'osmode))
(defun p1 ()(eval (read (strcat "pt" (rtos x 2 0)))))
(defun p2 ()(eval (read (strcat "pt" (rtos (+ x 1) 2 0)))))
(defun angx ()(eval (read (strcat "ang" (rtos x 2 0)))))


(if (not AH:getvalsm)(load "Multi Getvals.lsp"))
(setq ans (AH:getvalsm (list "Enter values" "Length" 5 4 "100" "Height" 5 4 "80" "Centre length" 5 4 "5" "Circle ver offset " 5 4 "8" "Circle hor offset " 5 4 "8" "Outer Rad " 5 4 "3.6" "Inner Rad " 5 4 "3.1")))

(setq 
len (atof (nth 0 ans))
ht (atof (nth 1 ans))
len2 (atof (nth 2 ans))
voff (atof (nth 3 ans))
hoff (atof (nth 4 ans))
rad1 (atof (nth 5 ans))
rad2 (atof (nth 6 ans))
)

(setq pt1 (getpoint "\pick a point lower left"))
(setq pt2  (polar pt1 (* pi 0.25) 10))
(setvar 'osmode 0)
(command "rectang" "D" len ht pt1 pt2)
(setq co-ord (reverse (mapcar 'cdr (vl-remove-if-not '(lambda (x) (= (car x) 10)) (entget (entlast))))))
(setq co-ord (cons (nth 3 co-ord) co-ord))
; make ptx's
(setq x 0)
(foreach co co-ord
(set (read (strcat "pt" (rtos (setq x (+ x 1)) 2 0))) co)
)

; make angx's
(setq x 1)
(repeat 4
(set (read (strcat "ang" (rtos x 2 0))) (angle (eval (read (strcat "pt" (rtos x 2 0))))(eval (read (strcat "pt" (rtos (+ x 1) 2 0))))))
(setq x (+ x 1))
)

(setq x 1)
(repeat 4
(setq pt6 (mapcar '(lambda (x) (/ x 2.0)) (mapcar '+ (p1) (p2))))
(setq pt7 (polar pt6 (- (angX) a90) len2))
(command "line" pt6 pt7 "")
(setq x (+ x 1))
)
&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 14 Mar 2020 00:55:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/is-it-possible-to-add-this-effect-to-an-arbitrary-rectangle/m-p/9377533#M77324</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2020-03-14T00:55:30Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to add this effect to an arbitrary rectangle</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/is-it-possible-to-add-this-effect-to-an-arbitrary-rectangle/m-p/9377550#M77325</link>
      <description>&lt;P&gt;Why can you not edit your code Autodesk ? This matches the dwg without dims.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;; https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/is-it-possible-to-add-this-effect-to-an-arbitrary-rectangle/td-p/9371113
; By Alanh Consulting info@alanh.com.au
; March 2020
(defun c:rec33 ( /  x a90 a180 a270 p1 p2 angx ans len ht len2 voff hoff rad1 rad2 rad3 pt1 pt2 pt3 pt4 pt5 ang1 ang2 ang3 ang4 co-ord)
(setq a90 (/ pi 2.0) a180 pi a270 (* 1.5 pi))
(setq oldsnap (getvar 'osmode))
(defun p1 ()(eval (read (strcat "pt" (rtos x 2 0)))))
(defun p2 ()(eval (read (strcat "pt" (rtos (+ x 1) 2 0)))))
(defun angx ()(eval (read (strcat "ang" (rtos x 2 0)))))


(if (not AH:getvalsm)(load "Multi Getvals.lsp"))
(setq ans (AH:getvalsm (list "Enter values" "Length" 5 4 "100" "Height" 5 4 "80" "Centre length" 5 4 "5" "Circle ver offset " 5 4 "8" "Circle hor offset " 5 4 "8" "Outer Rad " 5 4 "3.6" "Inner Rad " 5 4 "3.1" "Other Rad " 5 4 "3.0")))

(setq 
len (atof (nth 0 ans))
ht (atof (nth 1 ans))
len2 (atof (nth 2 ans))
voff (atof (nth 3 ans))
hoff (atof (nth 4 ans))
rad1 (atof (nth 5 ans))
rad2 (atof (nth 6 ans))
rad3 (atof (nth 7 ans))
)

(setq pt1 (getpoint "\pick a point lower left"))
(setq pt2  (polar pt1 (* pi 0.25) 10))
(setvar 'osmode 0)
(command "rectang" pt1 "D" len ht pt2)
(setq co-ord (reverse (mapcar 'cdr (vl-remove-if-not '(lambda (x) (= (car x) 10)) (entget (entlast))))))
(setq co-ord (cons (nth 3 co-ord) co-ord))
; make ptx's
(setq x 0)
(foreach co co-ord
(set (read (strcat "pt" (rtos (setq x (+ x 1)) 2 0))) co)
)

; make angx's
(setq x 1)
(repeat 4
(set (read (strcat "ang" (rtos x 2 0))) (angle (eval (read (strcat "pt" (rtos x 2 0))))(eval (read (strcat "pt" (rtos (+ x 1) 2 0))))))
(setq x (+ x 1))
)

(setq x 1)
(repeat 4
(setq pt6 (mapcar '(lambda (x) (/ x 2.0)) (mapcar '+ (p1) (p2))))
(setq pt7 (polar pt6 (- (angX) a90) len2))
(command "line" pt6 pt7 "")
(setq x (+ x 1))
)

(setq x 1)
(repeat 2
(setq pt7 (polar (p1) (angX) hoff))
(setq pt7 (polar pt7 (- (angx) a90) voff))
(command "circle" pt7 rad3)
(setq x (+ x 1))
(setq pt7 (polar (p1) (angX) voff))
(setq pt7 (polar pt7 (- (angx) a90) hoff))
(command "circle" pt7 rad1)
(command "circle" pt7 rad2)
(setq x (+ x 1))
)
 ; now dims
(princ)
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 14 Mar 2020 01:31:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/is-it-possible-to-add-this-effect-to-an-arbitrary-rectangle/m-p/9377550#M77325</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2020-03-14T01:31:11Z</dc:date>
    </item>
  </channel>
</rss>

