<?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 Lisp for Leader in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-leader/m-p/11023318#M47486</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to place a lot of leaders on my drawing and my current workflow is a bit time-consuming.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible to make a lisp that works like this? :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;1st snap: start of the dashed line.&lt;/LI&gt;&lt;LI&gt;2nd snap: place arrow&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Cattura.PNG" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1039636i417B439221F49E03/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Cattura.PNG" alt="Cattura.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &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, 23 Mar 2022 09:36:04 GMT</pubDate>
    <dc:creator>infoH8EQN</dc:creator>
    <dc:date>2022-03-23T09:36:04Z</dc:date>
    <item>
      <title>Lisp for Leader</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-leader/m-p/11023318#M47486</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to place a lot of leaders on my drawing and my current workflow is a bit time-consuming.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible to make a lisp that works like this? :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;1st snap: start of the dashed line.&lt;/LI&gt;&lt;LI&gt;2nd snap: place arrow&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Cattura.PNG" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1039636i417B439221F49E03/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Cattura.PNG" alt="Cattura.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &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, 23 Mar 2022 09:36:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-leader/m-p/11023318#M47486</guid>
      <dc:creator>infoH8EQN</dc:creator>
      <dc:date>2022-03-23T09:36:04Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp for Leader</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-leader/m-p/11023477#M47487</link>
      <description>&lt;P&gt;What's your workflow now?&lt;/P&gt;</description>
      <pubDate>Wed, 23 Mar 2022 10:44:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-leader/m-p/11023477#M47487</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2022-03-23T10:44:59Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp for Leader</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-leader/m-p/11023494#M47488</link>
      <description>&lt;P&gt;I have this leader on my standard elements. Each time I need to snap it on an object and move the other vertex to the correct point.&amp;nbsp;&lt;/P&gt;&lt;P&gt;In two-click will be more efficient.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Mar 2022 10:56:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-leader/m-p/11023494#M47488</guid>
      <dc:creator>infoH8EQN</dc:creator>
      <dc:date>2022-03-23T10:56:19Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp for Leader</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-leader/m-p/11023511#M47489</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/8354356"&gt;@infoH8EQN&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I have this leader on my standard elements &lt;FONT color="#FF0000"&gt;what is it, a tool palette?&lt;/FONT&gt;. Each time I need to snap it on an object and move the other vertex to the correct point. &lt;FONT color="#FF0000"&gt;why would you do that, just draw a qleader.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;In two-click will be more efficient.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Sorry, not following. Doesn't make sense at all. Would you post some video capture?&lt;/P&gt;</description>
      <pubDate>Wed, 23 Mar 2022 11:00:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-leader/m-p/11023511#M47489</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2022-03-23T11:00:12Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp for Leader</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-leader/m-p/11023541#M47490</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;no, it is a collection of recursive elements (text, arrow, blocks, etc) I use on my drawing. Each time I copy them on drawings.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="arrow2.PNG" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1039683iEE5FFE3FF2E82B77/image-size/medium?v=v2&amp;amp;px=400" role="button" title="arrow2.PNG" alt="arrow2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;When I need to pick the correct arrow (1), copy the element (2) and adjust it (3).&amp;nbsp; Will be more simple by clicking on point A and B.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Mar 2022 11:32:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-leader/m-p/11023541#M47490</guid>
      <dc:creator>infoH8EQN</dc:creator>
      <dc:date>2022-03-23T11:32:27Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp for Leader</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-leader/m-p/11023583#M47491</link>
      <description>&lt;P&gt;The first version requires just two points, but you need to have the correct dimstyle current.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The second is as ADDSELECTED style, similar to your current workflow that you pick your pattern leader first.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;(defun c:HLeader nil
  (command "_.leader" pause pause "_a" "" "_n")
  (command "_.chprop" "_l" "" "_lt" "HIDDEN" "")
  (princ)
  )


(defun c:Addleader (/ p)
  (if (ssget "I")
    (command "_.addselected" pause pause "_a" "" "_n")
    (command "_.addselected" pause pause pause "_a" "" "_n"))
  (while (setq p (getpoint "\nSpecify leader start point: "))
    (command "_.addselected" "_p" "_none" p pause "_a" "" "_n"))
  (princ)
  )
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Mar 2022 11:35:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-leader/m-p/11023583#M47491</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2022-03-23T11:35:40Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp for Leader</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-leader/m-p/11023595#M47492</link>
      <description>Thanks very much. Work perfectly.</description>
      <pubDate>Wed, 23 Mar 2022 11:43:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-leader/m-p/11023595#M47492</guid>
      <dc:creator>infoH8EQN</dc:creator>
      <dc:date>2022-03-23T11:43:55Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp for Leader</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-leader/m-p/11023638#M47493</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;(defun c:mml (/ *error* p1 p2)
(defun *error* ( msg )
		(if (not (member msg '("Function cancelled" "quit / exit abort")))
			(princ)
		)
		(setvar 'cmdecho 1)
		(princ)
	)
	(setvar 'cmdecho 0)
	(while 
		(and
			(distance
				(setq p1 (getpoint "\nLeader arrow location point &amp;gt;"))
				(setq p2 (getpoint p1 "\nLeader  tail point&amp;gt;"))
			)
		)
		(entmakex
			(list
				(cons 0 "LEADER")	
				(cons 100 "AcDbEntity")
				(cons 100 "AcDbLeader")
				(cons 3 "ISO-25")
				(cons 67 0)
				(cons 71 1)
				(cons 72 0)
				(cons 73 3)
				(cons 75 0)
				(cons 10 p1)
				(cons 10 p2)
			)
		)
		(command "_.chprop" "_l" "" "_lt" "DASHEDX2" "")
	)
	(setvar 'cmdecho 1)
	(princ)
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Mar 2022 14:23:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-leader/m-p/11023638#M47493</guid>
      <dc:creator>hak_vz</dc:creator>
      <dc:date>2022-03-23T14:23:49Z</dc:date>
    </item>
  </channel>
</rss>

