<?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: Connecting dynamic block with Autolisp or .net in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/connecting-dynamic-block-with-autolisp-or-net/m-p/10971787#M48689</link>
    <description>&lt;P&gt;Nice, I am pretty new to this what language is that and how do I start the process?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 25 Feb 2022 12:47:59 GMT</pubDate>
    <dc:creator>abee123456789</dc:creator>
    <dc:date>2022-02-25T12:47:59Z</dc:date>
    <item>
      <title>Connecting dynamic block with Autolisp or .net</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/connecting-dynamic-block-with-autolisp-or-net/m-p/10970828#M48675</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am new to autolisp, and .net and looking for a little guidance in the right direction.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have created two dynamic blocks a circle and a line. I have attached them.&lt;/P&gt;&lt;P&gt;I want to connect the circle block perpendicular to the line block.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and then split the line block where every the circle block connects to perpendicularly&lt;/P&gt;&lt;P&gt;I labeled them from step 1 being the beginning stage and step 3 being the final stage.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help will be appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Feb 2022 22:40:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/connecting-dynamic-block-with-autolisp-or-net/m-p/10970828#M48675</guid>
      <dc:creator>abee123456789</dc:creator>
      <dc:date>2022-02-24T22:40:28Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting dynamic block with Autolisp or .net</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/connecting-dynamic-block-with-autolisp-or-net/m-p/10970923#M48676</link>
      <description>&lt;P&gt;A alternative approach may be easier than trying to do with dynamic blocks. There is various similar pattern joins out there.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Select circle blocks then line, a connect line is drawn and a question asked fillet yes no, would this be useful ?&lt;/P&gt;</description>
      <pubDate>Fri, 25 Feb 2022 00:03:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/connecting-dynamic-block-with-autolisp-or-net/m-p/10970923#M48676</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2022-02-25T00:03:10Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting dynamic block with Autolisp or .net</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/connecting-dynamic-block-with-autolisp-or-net/m-p/10970929#M48677</link>
      <description>&lt;P&gt;Not really, we used this blocks for all our drawings. I was just wonder if theres a macro or something that can do step 2 at least. Any ideas?&lt;/P&gt;</description>
      <pubDate>Fri, 25 Feb 2022 00:08:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/connecting-dynamic-block-with-autolisp-or-net/m-p/10970929#M48677</guid>
      <dc:creator>abee123456789</dc:creator>
      <dc:date>2022-02-25T00:08:56Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting dynamic block with Autolisp or .net</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/connecting-dynamic-block-with-autolisp-or-net/m-p/10970937#M48678</link>
      <description>&lt;P&gt;Why not just make a new single dynamic block the correct shape ? You could have a dcl that asks for all the lengths etc. 3 vertical 3 horizontal and auto adjusts the block. Same with size 3/4. distance 1, distance 2 etc. Pretty sure You can link end of lines to a another end. I dont do much dynamic blocks some one may link yours. Can do front end then.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That would be my approach, how many patterns are involved ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Feb 2022 00:29:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/connecting-dynamic-block-with-autolisp-or-net/m-p/10970937#M48678</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2022-02-25T00:29:17Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting dynamic block with Autolisp or .net</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/connecting-dynamic-block-with-autolisp-or-net/m-p/10970941#M48679</link>
      <description>&lt;P&gt;Would that remove the dimensions?&lt;/P&gt;</description>
      <pubDate>Fri, 25 Feb 2022 00:22:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/connecting-dynamic-block-with-autolisp-or-net/m-p/10970941#M48679</guid>
      <dc:creator>abee123456789</dc:creator>
      <dc:date>2022-02-25T00:22:34Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting dynamic block with Autolisp or .net</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/connecting-dynamic-block-with-autolisp-or-net/m-p/10970983#M48680</link>
      <description>&lt;P&gt;No, I dont do much with dynamic blocks but you should be able to link the objects using the stretch option. Hopefully some one will jump in redoing the block.&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="SeaHaven_0-1645750935487.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1029536i5A04EAC82CAB0644/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SeaHaven_0-1645750935487.png" alt="SeaHaven_0-1645750935487.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As I said earlier how many patterns?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Feb 2022 01:06:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/connecting-dynamic-block-with-autolisp-or-net/m-p/10970983#M48680</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2022-02-25T01:06:04Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting dynamic block with Autolisp or .net</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/connecting-dynamic-block-with-autolisp-or-net/m-p/10971018#M48681</link>
      <description>&lt;P dir="ltr"&gt;There many patterns. Is there way to use the grip of the circle block to meet the line block perpendicular to it&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Feb 2022 01:42:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/connecting-dynamic-block-with-autolisp-or-net/m-p/10971018#M48681</guid>
      <dc:creator>abee123456789</dc:creator>
      <dc:date>2022-02-25T01:42:52Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting dynamic block with Autolisp or .net</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/connecting-dynamic-block-with-autolisp-or-net/m-p/10971025#M48682</link>
      <description>&lt;P&gt;What I was saying is rethink the whole pattern making. Enter a length draw line, add circle with a entered offset and size repeat as required, the offset is a simple -ve for left. This would be fast I use a dynamic dcl for this type of thing so it remembers the last entered values so may change only 1 value like length for repeated sides.&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-1645754189923.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1029547i1930195564347FBF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SeaHaven_0-1645754189923.png" alt="SeaHaven_0-1645754189923.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ps use Donut for filled circle.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Feb 2022 02:00:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/connecting-dynamic-block-with-autolisp-or-net/m-p/10971025#M48682</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2022-02-25T02:00:45Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting dynamic block with Autolisp or .net</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/connecting-dynamic-block-with-autolisp-or-net/m-p/10971555#M48683</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/12111443"&gt;@abee123456789&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;..I want to connect the circle block perpendicular to the line block.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;FONT size="3"&gt;I guess that can be done, tell us, is the attached drawing sample is just an example? or those blocks are the actual blocks you are going to use?&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="3"&gt;Writing a program that deals with Dynamic blocks will always have issues, especially with parameter names.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="3"&gt;But this is certainly doable.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="3"&gt;Also, please show more scenarios.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Feb 2022 11:42:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/connecting-dynamic-block-with-autolisp-or-net/m-p/10971555#M48683</guid>
      <dc:creator>pbejse</dc:creator>
      <dc:date>2022-02-25T11:42:31Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting dynamic block with Autolisp or .net</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/connecting-dynamic-block-with-autolisp-or-net/m-p/10971704#M48684</link>
      <description>&lt;P&gt;The drawing is just an example. There could be 100 of circle blocks going different direction but I want to click a button or something that will be perpendicular to the line.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Feb 2022 11:50:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/connecting-dynamic-block-with-autolisp-or-net/m-p/10971704#M48684</guid>
      <dc:creator>abee123456789</dc:creator>
      <dc:date>2022-02-25T11:50:15Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting dynamic block with Autolisp or .net</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/connecting-dynamic-block-with-autolisp-or-net/m-p/10971734#M48685</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/12111443"&gt;@abee123456789&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;The drawing is just an example. There could be 100 of circle blocks &lt;FONT color="#0000FF"&gt;going different direction&lt;/FONT&gt; but I want to click a button or something that will be perpendicular to the&lt;FONT color="#FF0000"&gt; line.&lt;/FONT&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;FONT size="3"&gt;&lt;FONT color="#0000FF"&gt;I figured as much.&amp;nbsp;&amp;nbsp;&lt;/FONT&gt;&lt;FONT color="#0000FF"&gt;&lt;FONT color="#FF0000"&gt;The "line"&amp;nbsp; are of different angles not just Hor and Vert? if Yes &lt;STRONG&gt;show us please.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="3"&gt;"Circle" block rotation is always 0? [ in relation to "Ängle1" parameter's value ]&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="3"&gt;Is there a direction for the "Line" block? This is important when placing these on the intersection point&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="3" color="#800000"&gt;The "Line" and "Circle"block is the actual block you're going to use YES?&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Feb 2022 12:23:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/connecting-dynamic-block-with-autolisp-or-net/m-p/10971734#M48685</guid>
      <dc:creator>pbejse</dc:creator>
      <dc:date>2022-02-25T12:23:23Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting dynamic block with Autolisp or .net</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/connecting-dynamic-block-with-autolisp-or-net/m-p/10971736#M48686</link>
      <description>&lt;P&gt;The circle block will be rotating in 90 degree increments&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Feb 2022 12:20:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/connecting-dynamic-block-with-autolisp-or-net/m-p/10971736#M48686</guid>
      <dc:creator>abee123456789</dc:creator>
      <dc:date>2022-02-25T12:20:07Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting dynamic block with Autolisp or .net</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/connecting-dynamic-block-with-autolisp-or-net/m-p/10971753#M48687</link>
      <description>&lt;P&gt;Step 2 done.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;(vl-load-com)
(defun c:Step2 ( / LM:setdynprops s p1 p2 a p x)
 
  ;; Set Dynamic Block Properties  -  Lee Mac ; http://www.lee-mac.com/dynamicblockfunctions.html#setdynamicprops
;; lst - [lst] Association list of (( . ) ... )

(defun LM:setdynprops ( blk lst / itm )
    (setq lst (mapcar '(lambda ( x ) (cons (strcase (car x)) (cdr x))) lst))
    (foreach x (vlax-invoke blk 'getdynamicblockproperties)
        (if (setq itm (assoc (strcase (vla-get-propertyname x)) lst))
            (vla-put-value x (vlax-make-variant (cdr itm) (vlax-variant-type (vla-get-value x)))))))

  ; ---------------------------------------------------------------------------------------

  (if (and (setq s (ssget "_:L" '((0 . "INSERT"))))
	   (setq p1 (getpoint "\nSpecify first point of vector: "))
	   (setq p2 (getpoint p1 "\nSpecify second point of vector: "))
	   (setq a (+ (/ pi 2) (angle p1 p2)))
	   )
    (repeat (setq i (sslength s))
      (setq e (ssname s (setq i (1- i))))
      (setq p (cdr (assoc 10 (entget e))))
      (setq x (inters p1 p2 p (polar p a 1) nil))
      (LM:setdynprops (vlax-ename-&amp;gt;vla-object e) (list (cons "Distance1" (distance p x))
						       (cons "Angle1" (angle p x))))))
  (princ)
  )
 &lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Feb 2022 12:32:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/connecting-dynamic-block-with-autolisp-or-net/m-p/10971753#M48687</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2022-02-25T12:32:13Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting dynamic block with Autolisp or .net</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/connecting-dynamic-block-with-autolisp-or-net/m-p/10971765#M48688</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1779365"&gt;@ВeekeeCZ&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Step 2 done.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;FONT size="3"&gt;I also had step 2 at the ready &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1779365"&gt;@ВeekeeCZ&lt;/a&gt;&amp;nbsp;&lt;/FONT&gt;&lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="3"&gt;I'm waiting on confirmation on other stuff like "rotation" and the lik&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;(defun c:Connected (/  _DynPop lbd ci lbp lb_IP np i civ chp npc ci_ip inter_P)
(defun _DynPop (o / data)
  (setq data (mapcar '(lambda (dp)
	     (list (vla-get-PropertyName dp)(vlax-get dp 'Value) dp))
		    (vlax-invoke o 'GetDynamicBlockProperties))
	)
  (mapcar '(lambda (v) (cdr (assoc v data))) '("Angle1" "Distance1"))
  )
(print "\nSelect Line Block")
  (if (and
	(setq lbd (ssget "_+.:S:E:L" '((0 . "INSERT")(2 . "LINE,`*U*"))))
	(princ "\nSelect Circle Block(s)")
	(setq ci (ssget "_:L" '((0 . "INSERT")(2 . "Circle,`*U*"))))
    	(eq "LINE" (strcase (vla-get-EffectiveName
			      (setq lbd (vlax-ename-&amp;gt;vla-object (ssname lbd 0))))))
	(minusp (vlax-get lbd 'IsDynamicBlock))
	)
    (progn
      (setq lbp (_DynPop lbd )
	    lb_IP (vlax-get lbd 'InsertionPoint)
	    np ( polar lb_IP (Caar lbp)(caadr lbp))
	    an (+ (/ pi 2) (angle lb_IP np)))
      
	(repeat (setq i (sslength ci))
	  	(setq civ (vlax-ename-&amp;gt;vla-object (ssname ci (setq i (1- i)))))	  	
	  (and
	    	(eq "CIRCLE" (strcase (vla-get-EffectiveName civ)))
	  	(setq cbp (_DynPop civ ))
	        (setq npc
		       (polar (setq ci_ip (vlax-get civ 'InsertionPoint))
			      an
			      (caadr cbp)
		       )
		)
		(setq inter_P ( inters  lb_IP np ci_ip npc nil))
		(progn
			(vlax-put (cadar cbp) 'Value (angle ci_ip inter_P))
			(vlax-put (cadadr cbp) 'Value (distance ci_ip inter_P))
		)
		)
	  )
	)
    )
  (princ)
  )&lt;/LI-CODE&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>Fri, 25 Feb 2022 13:35:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/connecting-dynamic-block-with-autolisp-or-net/m-p/10971765#M48688</guid>
      <dc:creator>pbejse</dc:creator>
      <dc:date>2022-02-25T13:35:53Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting dynamic block with Autolisp or .net</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/connecting-dynamic-block-with-autolisp-or-net/m-p/10971787#M48689</link>
      <description>&lt;P&gt;Nice, I am pretty new to this what language is that and how do I start the process?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Feb 2022 12:47:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/connecting-dynamic-block-with-autolisp-or-net/m-p/10971787#M48689</guid>
      <dc:creator>abee123456789</dc:creator>
      <dc:date>2022-02-25T12:47:59Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting dynamic block with Autolisp or .net</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/connecting-dynamic-block-with-autolisp-or-net/m-p/10971821#M48690</link>
      <description>&lt;P&gt;Is this possible using C# that is what ive been working with and I am fairly new.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Feb 2022 13:06:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/connecting-dynamic-block-with-autolisp-or-net/m-p/10971821#M48690</guid>
      <dc:creator>abee123456789</dc:creator>
      <dc:date>2022-02-25T13:06:40Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting dynamic block with Autolisp or .net</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/connecting-dynamic-block-with-autolisp-or-net/m-p/10971833#M48691</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/12111443"&gt;@abee123456789&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Nice, I am pretty new to this what language is that and how do I start the process?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;FONT size="3"&gt;Depending on the condition of the drawing, the program may not work as expected. The code I posted relies heavily on the current&amp;nbsp; Ängle1 Paramater value. So its more extending the end to the line and not always perpendicular, whilst&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1779365"&gt;@ВeekeeCZ&lt;/a&gt;&amp;nbsp;offering will be perpendicular as you requested. But both will fail if the "circle" Block rotaion is other than 0&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="3"&gt;That is why I'm asking for a real scenario so we can make the proper adjustment to the code.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/12111443"&gt;@abee123456789&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Is this possible using C# that is what ive been working with and I am fairly new.&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;FONT size="3"&gt;I usually use C# for sheet set processing , mostly data get/set data [ attributes / Xref /Layer infor ...]&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="3"&gt;For geometric manipulation, i stick with AutoLisp/Visual lisp.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="3"&gt;I suggest you post your request &lt;A href="https://forums.autodesk.com/t5/net/bd-p/152" target="_blank" rel="noopener"&gt;here &amp;lt;-- Autocad .Net&lt;/A&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="3"&gt;HTH&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Feb 2022 13:20:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/connecting-dynamic-block-with-autolisp-or-net/m-p/10971833#M48691</guid>
      <dc:creator>pbejse</dc:creator>
      <dc:date>2022-02-25T13:20:09Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting dynamic block with Autolisp or .net</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/connecting-dynamic-block-with-autolisp-or-net/m-p/10971838#M48692</link>
      <description>&lt;P&gt;Step 3&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;(vl-load-com)

(defun c:Step3 ( / LM:setdynprops LM:getdynpropvalue :getpoints e p1 p2 ps s i)
  
  ;; Set Dynamic Block Properties  -  Lee Mac ; http://www.lee-mac.com/dynamicblockfunctions.html#setdynamicprops
  ;; lst - [lst] Association list of (( . ) ... )
  (defun LM:setdynprops ( blk lst / itm )
    (setq lst (mapcar '(lambda ( x ) (cons (strcase (car x)) (cdr x))) lst))
    (foreach x (vlax-invoke blk 'getdynamicblockproperties)
      (if (setq itm (assoc (strcase (vla-get-propertyname x)) lst))
	(vla-put-value x (vlax-make-variant (cdr itm) (vlax-variant-type (vla-get-value x)))))))
  
  ;; Get Dynamic Block Property Value  -  Lee Mac ; http://www.lee-mac.com/dynamicblockfunctions.html#setdynamicprops
  (defun LM:getdynpropvalue ( blk prp )
    (setq prp (strcase prp))
    (vl-some '(lambda ( x ) (if (= prp (strcase (vla-get-propertyname x))) (vlax-get x 'value)))
	     (vlax-invoke blk 'getdynamicblockproperties)))
  
  (defun :getpoints (e / o d p1 p2)
    (if (and  (setq o (vlax-ename-&amp;gt;vla-object e))
	      (setq a (LM:getdynpropvalue o "Angle1"))
	      (setq d (LM:getdynpropvalue o "Distance1"))
	      (setq p1 (cdr (assoc 10 (entget e))))
	      (setq p2 (polar p1 a d))
	      )
      (list p1 p2)))
  
  ; -----------------------------------------------------------------------------------------------------------------------
  
  (if (and (setq e (car (entsel "\nSelect block to split: ")))
	   (mapcar 'set '(p1 p2) (:getpoints e))
	   (setq ps (cons p2 ps))
	   (princ "\Select connections (blocks), ")
	   (setq s (ssget "_:L" '((0 . "INSERT"))))
	   (progn (setq s (ssdel e s)) T)
	   )
    (progn
      (repeat (setq i (sslength s))
	(setq ps (cons (cadr (:getpoints (ssname s (setq i (1- i))))) ps)))
      (setq ps (vl-sort ps '(lambda (r1 r2) (&amp;lt; (distance p1 r1) (distance p1 r2)))))
      (LM:setdynprops (vlax-ename-&amp;gt;vla-object e) (list (cons "Distance1" (distance p1 (car ps)))
						       (cons "Angle1" (angle p1 (car ps)))))
      (repeat (1- (length ps))
	(command "_.copy" e "" "_non" p1 "_non" (car ps))
	(LM:setdynprops (vlax-ename-&amp;gt;vla-object (entlast)) (list (cons "Distance1" (distance (car ps) (cadr ps)))
								 (cons "Angle1" (angle (car ps) (cadr ps)))))
	(setq ps (cdr ps)))))
  (princ)
  )
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://www.lee-mac.com/runlisp.html" target="_blank" rel="noopener"&gt;HERE&lt;/A&gt; 's a tutorial of how to use LISP.&lt;/P&gt;
&lt;P&gt;Good luck.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Feb 2022 13:21:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/connecting-dynamic-block-with-autolisp-or-net/m-p/10971838#M48692</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2022-02-25T13:21:07Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting dynamic block with Autolisp or .net</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/connecting-dynamic-block-with-autolisp-or-net/m-p/10971848#M48693</link>
      <description>&lt;P&gt;Attached i created a different scenario. Once again is this possible in C# .net That is what ive been missing around with lately. since i read some where that autodesk is going to discontinue lisp support.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Feb 2022 13:19:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/connecting-dynamic-block-with-autolisp-or-net/m-p/10971848#M48693</guid>
      <dc:creator>abee123456789</dc:creator>
      <dc:date>2022-02-25T13:19:38Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting dynamic block with Autolisp or .net</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/connecting-dynamic-block-with-autolisp-or-net/m-p/10971862#M48694</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/12111443"&gt;@abee123456789&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Attached i created a different scenario. &lt;FONT color="#0000FF"&gt;Once again is this possible in C# .net That is what ive been missing around with lately.&lt;/FONT&gt; &lt;FONT color="#FF0000"&gt;since i read some where that autodesk is going to discontinue lisp support.&amp;nbsp;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;FONT size="3"&gt;Thank you for posting more samples. We will have a look see.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="3"&gt;&lt;FONT color="#0000FF"&gt;I replied to that at post # 17,&amp;nbsp;&lt;/FONT&gt;&lt;FONT color="#0000FF"&gt;&lt;FONT color="#FF0000"&gt;Also, they've been saying that for years and yet it's still here&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000FF"&gt;&lt;FONT color="#FF0000"&gt;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="3"&gt;Based on your latest sample, Are there no odd angles at all?&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="3"&gt;&lt;BR /&gt;&lt;STRONG&gt;EDIT: Modified the code at post # 14 for perpendicular mode instead of Extend&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Feb 2022 13:37:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/connecting-dynamic-block-with-autolisp-or-net/m-p/10971862#M48694</guid>
      <dc:creator>pbejse</dc:creator>
      <dc:date>2022-02-25T13:37:56Z</dc:date>
    </item>
  </channel>
</rss>

