<?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: Draw arrow in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/draw-arrow/m-p/8142169#M102244</link>
    <description>&lt;P&gt;@Anonymous,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I do not know what you are asking. Is the arrow too large when inserting? You had it scaled by 12 in your original drawing. If this is the case change...&lt;/P&gt;&lt;PRE&gt;(command "-INSERT" "TOMA AEREA" p1 "12" "" "")&lt;/PRE&gt;&lt;P&gt;..to..&lt;/P&gt;&lt;PRE&gt;(command "-INSERT" "TOMA AEREA" p1 "1" "" "")&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Best,&lt;/P&gt;&lt;P&gt;~DD&lt;/P&gt;</description>
    <pubDate>Thu, 19 Jul 2018 18:10:17 GMT</pubDate>
    <dc:creator>CodeDing</dc:creator>
    <dc:date>2018-07-19T18:10:17Z</dc:date>
    <item>
      <title>Draw arrow</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/draw-arrow/m-p/8141085#M102241</link>
      <description>&lt;P&gt;There will be a routine so that an arrow is drawn between two selected objects as shown in drawing attached&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jul 2018 11:51:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/draw-arrow/m-p/8141085#M102241</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-07-19T11:51:45Z</dc:date>
    </item>
    <item>
      <title>Re: Draw arrow</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/draw-arrow/m-p/8141824#M102242</link>
      <description>&lt;P&gt;@Anonymous,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I remade your block. Use mine. (SEE ATTACHED dwg)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this is what you're looking for.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;(defun c:ARW ( / apn dpn dsp ins obj prn o1 o2 p1 p2 g2g)
    ;;Original code by Lee Mac (http://www.theswamp.org/index.php?topic=43789.0) /// Edited by D.D.
    ;; Polar Stretch Dynamic Parameter Property Names:
    (setq dpn "Distance" ;; Distance Name
          apn "Angle"    ;; Angle Name
    )

(setq g2g nil)

(while (not g2g)
(setq o1 (car (entsel "\nSelect First Object: ")))
(if (eq (cdr (assoc 0 (entget o1))) "INSERT")
	(setq g2g t)
	(prompt "\nObject Selected is Not a Block."))
);while

(setq g2g nil
	p1 (list (getpropertyvalue o1 "Position/X") (getpropertyvalue o1 "Position/Y")))

(while (not g2g)
(setq o2 (car (entsel "\nSelect Second Object: ")))
(if (eq (cdr (assoc 0 (entget o2))) "INSERT")
	(setq g2g t)
	(prompt "\nObject Selected is Not a Block."))
);while

(setq p2 (list (getpropertyvalue o2 "Position/X") (getpropertyvalue o2 "Position/Y")))

(command "-INSERT" "TOMA AEREA" p1 "12" "" "")

(setq obj (entlast))

    (if
        (and
            ;(setq obj (car (entsel "\nSelect Dynamic Block with Polar Stretch Parameter: ")))
            (setq obj (vlax-ename-&amp;gt;vla-object obj))
            (= "AcDbBlockReference" (vla-get-objectname obj))
            (= :vlax-true (vla-get-isdynamicblock obj))
            (setq ins (trans (vlax-get obj 'insertionpoint) 0 1))
            (setq dsp p2)
            ;(setq dsp (getpoint ins "\nSpecify New Stretch Distance &amp;amp; Angle: "))
        )
        (foreach prop (vlax-invoke obj 'getdynamicblockproperties)
            (setq prn (strcase (vla-get-propertyname prop)))
            (cond
                (   (= prn (strcase dpn))
                    (vla-put-value prop (vlax-make-variant (distance ins dsp)))
                )
                (   (= prn (strcase apn))
                    (vla-put-value prop (vlax-make-variant (angle ins dsp)))
                )
            )
        )
        (princ "\nObject is not a Dynamic Block.")
    )
    (princ)
)
(vl-load-com) (princ)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;~DD&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jul 2018 16:15:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/draw-arrow/m-p/8141824#M102242</guid>
      <dc:creator>CodeDing</dc:creator>
      <dc:date>2018-07-19T16:15:16Z</dc:date>
    </item>
    <item>
      <title>Re: Draw arrow</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/draw-arrow/m-p/8141967#M102243</link>
      <description>&lt;P&gt;please see real arrow DWG resize.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jul 2018 16:57:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/draw-arrow/m-p/8141967#M102243</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-07-19T16:57:48Z</dc:date>
    </item>
    <item>
      <title>Re: Draw arrow</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/draw-arrow/m-p/8142169#M102244</link>
      <description>&lt;P&gt;@Anonymous,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I do not know what you are asking. Is the arrow too large when inserting? You had it scaled by 12 in your original drawing. If this is the case change...&lt;/P&gt;&lt;PRE&gt;(command "-INSERT" "TOMA AEREA" p1 "12" "" "")&lt;/PRE&gt;&lt;P&gt;..to..&lt;/P&gt;&lt;PRE&gt;(command "-INSERT" "TOMA AEREA" p1 "1" "" "")&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Best,&lt;/P&gt;&lt;P&gt;~DD&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jul 2018 18:10:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/draw-arrow/m-p/8142169#M102244</guid>
      <dc:creator>CodeDing</dc:creator>
      <dc:date>2018-07-19T18:10:17Z</dc:date>
    </item>
    <item>
      <title>Re: Draw arrow</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/draw-arrow/m-p/8142614#M102245</link>
      <description>&lt;P&gt;PLEASE SEE THIS Last Situations to create a arrow&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jul 2018 20:32:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/draw-arrow/m-p/8142614#M102245</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-07-19T20:32:19Z</dc:date>
    </item>
    <item>
      <title>Re: Draw arrow</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/draw-arrow/m-p/8142802#M102246</link>
      <description>&lt;P&gt;@Anonymous,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have no idea what you want. You have asked 0 questions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will not solve all of your work related problems for you. If you are struggling with a solution and do not provide any evidence that you have tried to work out your own solution, then you are not likely to be helped. My original post was a favor and for my own learning experience. I recommend that you show some attempt at your own work if you expect others to assist you in the future.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;~DD&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jul 2018 21:52:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/draw-arrow/m-p/8142802#M102246</guid>
      <dc:creator>CodeDing</dc:creator>
      <dc:date>2018-07-19T21:52:51Z</dc:date>
    </item>
  </channel>
</rss>

