<?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: Create associative path array with an inserted block in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/create-associative-path-array-with-an-inserted-block/m-p/13190776#M5856</link>
    <description>&lt;P&gt;My apologies.&amp;nbsp; I think I may have miss understood your advice below:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;"If you want to autoload your block, just add it between the searchable paths"&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I thought that you meant I still needed to add code to insert a drawing containing the block needed but place it in a specific spot.&lt;/P&gt;&lt;P&gt;I saw the table search in your latest routine looking for the block saved as &lt;STRONG&gt;B&lt;/STRONG&gt; (myblock) but wasn't sure about the path part location.&lt;/P&gt;&lt;P&gt;If it is brought in by adding a searchable path, can the initial block brought in also be removed as well without deleting all of the other blocks with the same name.Thats where i have difficulties. Perhaps I am not bringing in the block as you intended....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks Seahaven for the advise you gave as well. I have see Lee's steal command in my online research's and ofourse on his site.... I will try it out!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you both!&lt;/P&gt;</description>
    <pubDate>Wed, 04 Dec 2024 03:06:28 GMT</pubDate>
    <dc:creator>rebPTFNF</dc:creator>
    <dc:date>2024-12-04T03:06:28Z</dc:date>
    <item>
      <title>Create associative path array with an inserted block</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/create-associative-path-array-with-an-inserted-block/m-p/13171401#M5841</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;Trying to create a routine for a Path Array but routine wont even load to test. Looking for some help...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Goal:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Create an associative Path Array using a block from an inserted drawing (&lt;EM&gt;MyArray_block.dwg&lt;/EM&gt;).&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;NOTE:&lt;/STRONG&gt; I just have the drawing saved on my desktop so the path will need updating to match your address bar if you test it. Also,&amp;nbsp; I created a DWG file with a random polyline for testing called (&lt;EM&gt;Random_polyline_for_Array.dwg&lt;/EM&gt;).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Steps:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;-User either selects an existing Poly line OR creates a new one for the block to be arrayed to. The line will be based on the parameters of the given project so the length will not be know. Therefor the array must be adjustable.&lt;/P&gt;&lt;P&gt;-A drawing containing a block is then inserted and the block is then aligned to the Array Poly line at the start point.&lt;/P&gt;&lt;P&gt;-An associative array is created using the block at a distance of 4 feet apart. blocks will overlap. Length will be unknown which is why it needs to be associative. It can then be adjusted using the grip handle until it fits the project parameters.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please see illustrations attached:&lt;/P&gt;&lt;P&gt;My block:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MyArrayblock.JPG" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1438011iE08E8FBE82D264AC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MyArrayblock.JPG" alt="MyArrayblock.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example of a successful Path Array using this block and a random Polyline:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MyArraypath.JPG" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1438012iBC453FDF5971A399/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MyArraypath.JPG" alt="MyArraypath.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My Code:&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;; User selects or creates Associative path array using an inserted block;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

(defun C:myarray (/ ln_sel arrayline StartPoint insertpt1 myarrayblock myangle mydistance blksecpoint);;
(vl-load-com)

(setq oldLUNITS (getvar "LUNITS"))

;Set Units to Architectural.
  (setvar "LUNITS" 4)
;Say YES to Polyine edits automatically.
   (setvar "PEDITACCEPT" 1)


;Tell user to select an existing polyline or create a new polyline
(princ "\nSelect an existing Polyline or create a new one: ");command prompt

;User selects existing polyline or draws a new polyline for Associative Path Array. Next, Get start point of that Polyline.

(setq ln_sel (car(entsel "\n Select a polyline:")))

(if (= (cdr(assoc 0 element)) "POLYLINE")
  (progn
    (setq arrayline (vlax-ename-&amp;gt;vla-object (car ln_sel )));User saves Polyline
    (setq StartPoint (vlax-curve-getStartPoint arrayline ));save start point
  );Else
(command "_pline" pause); If no poyline selected, User draws a polyline
(setq ln_sel (entget "L" ));save Polyline user either selected or creates
(setq StartPoint (vlax-curve-getStartPoint arrayline )); save start point of array path Polyline
  );end progn
);end IF


;NEXT

;Insert block from a drawing. Insertion point same location as startpoint of the Associative Path Array Polyline
(setq insertpt1 StartPoint)
(command "_insert" "C:\\Users\\B\\Desktop\\MyArray_block.dwg" insertpt1 "" "" "");Insert drawing (saved on desktop for testing purposes)

(setq myarrayblock (ssget "L" )); save the block that was just inserted into drawing

;Preset my second point variables for my inserted block. Picking opposite end
(setq myangle (atoi "90")); Angle = 90 degrees from start point
(setq mydistance (atoi "48")); Distance =  48" (4') from start point

;Make the second known point on block 48 inches at 90 degrees from insert (or start) point
(setq blksecpoint (polar insertpt1 (angle myangle) mydistance)); point one is insertion or start point. Point two is 48" at 90 degree angle

;Now align the block

;Align the block to the Path Array using set points on block
  (if (and (setq blkp1 StartPoint);block insertion point
           (setq blkp3 blksecpoint); second point on block. 48" distance at 90 angle.
       (setq blkent myarrayblock);inserted block
       (setq blkp2 StartPoint); Second alignment point is same as start point (or rotation point)
       (setq blkp4 (osnap (cadr blkent) "_nea")); snap second block point somewhere on array path polyline
       )
    (command "_.align" blkent "" "_non" blkp1 "_non" blkp2 "_non" blkp3 "_non" blkp4 "" "_No")
  );End if


;Next, Path Array


;Next do an associative path array using the inserted block that has been aligned
(command "arraypath" blkent "" ln_sel "as" "yes" "items" mydistance "" "");; pick Block. Pick line. Distance 48" (4')


;Last, delete the insert block from the drawing
(if (/= blkent nil)(command "erase" blkent ""))

(setvar "LUNITS" oldLUNITS)

);end&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;Any assistance or suggestions are greatly appreciated!!!&lt;/P&gt;&lt;P&gt;Thanks all&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Mon, 25 Nov 2024 03:38:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/create-associative-path-array-with-an-inserted-block/m-p/13171401#M5841</guid>
      <dc:creator>rebPTFNF</dc:creator>
      <dc:date>2024-11-25T03:38:02Z</dc:date>
    </item>
    <item>
      <title>Re: Create associative path array with an inserted block</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/create-associative-path-array-with-an-inserted-block/m-p/13171982#M5842</link>
      <description>&lt;P&gt;Well, I tried but hit the wall.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For some reason, PATHARRAY creates an array from the other end of the curve. Can't make it behave by the usual tricks I know. ‌‌It might take some time to figure this out that I don't have at the moment.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;(defun c:APB ( / n d s i e p a b)

  (setq n "Myblock")
  (setq d 48)
  
  (if (setq s (ssget))
    (repeat (setq i (sslength s))
      (and (setq e (ssname s (setq i (1- i))))
	   (setq p (vlax-curve-getstartpoint e))
	   (setq a (angle '(0 0 0) (vlax-curve-getfirstderiv e 0)))
	   (setq b (entmakex (list '(0 . "INSERT") (cons 2 n) (cons 10 p) (cons 50 a))))
	   (initcommandversion)
	   (vl-cmdf "_.arraypath" b "" e "_b" p "_i" d "" "")
	   (entdel b)
	   )))
  (princ)
  )
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Edit: I added a quick mod of my pseglen&amp;nbsp;&lt;A href="https://forums.autodesk.com/t5/autocad-forum/create-a-path-array-with-2-points-of-the-object-on-the-curve/m-p/13149278#M1141995" target="_blank" rel="noopener"&gt;HERE&lt;/A&gt;&amp;nbsp; if you give up on arraypath, as I did. I would also recommend modifying your block the same way I did and adding a block to the searchable path.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Nov 2024 15:34:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/create-associative-path-array-with-an-inserted-block/m-p/13171982#M5842</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2024-11-25T15:34:35Z</dc:date>
    </item>
    <item>
      <title>Re: Create associative path array with an inserted block</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/create-associative-path-array-with-an-inserted-block/m-p/13173049#M5843</link>
      <description>&lt;P&gt;The updates include adding a check for the curve's direction and adjusting the ARRAYPATH command to insert the blocks from the correct end of the curve. If the curve is reversed, the array is created from the endpoint instead of the start point.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Nov 2024 18:32:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/create-associative-path-array-with-an-inserted-block/m-p/13173049#M5843</guid>
      <dc:creator>jayhar</dc:creator>
      <dc:date>2024-11-25T18:32:24Z</dc:date>
    </item>
    <item>
      <title>Re: Create associative path array with an inserted block</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/create-associative-path-array-with-an-inserted-block/m-p/13173852#M5844</link>
      <description>&lt;P&gt;Thank you for your input. I will check it out!&lt;/P&gt;</description>
      <pubDate>Tue, 26 Nov 2024 04:47:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/create-associative-path-array-with-an-inserted-block/m-p/13173852#M5844</guid>
      <dc:creator>rebPTFNF</dc:creator>
      <dc:date>2024-11-26T04:47:39Z</dc:date>
    </item>
    <item>
      <title>Re: Create associative path array with an inserted block</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/create-associative-path-array-with-an-inserted-block/m-p/13173975#M5845</link>
      <description>&lt;P&gt;Gave it a try with the dwg from here,&amp;nbsp;&lt;A href="https://www.cadtutor.net/forum/topic/94049-create-associative-path-array-with-an-inserted-block/" target="_blank" rel="noopener"&gt;https://www.cadtutor.net/forum/topic/94049-create-associative-path-array-with-an-inserted-block/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SeaHaven_0-1732601191688.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1438510iE8FB542C76511361/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SeaHaven_0-1732601191688.png" alt="SeaHaven_0-1732601191688.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Not sure if that is what is wanted. See other post for different image result.&amp;nbsp;&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;(setq n "poly")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ps removed initcommand&lt;/P&gt;&lt;P&gt;As mentioned in other post block needs bedit move to 0,0 for correct end point and rotated 90 degrees to right.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Need&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/11243591"&gt;@rebPTFNF&lt;/a&gt;&amp;nbsp;to post a real dwg showing what is required, not lines and a block.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Nov 2024 06:12:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/create-associative-path-array-with-an-inserted-block/m-p/13173975#M5845</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2024-11-26T06:12:20Z</dc:date>
    </item>
    <item>
      <title>Re: Create associative path array with an inserted block</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/create-associative-path-array-with-an-inserted-block/m-p/13176476#M5846</link>
      <description>&lt;P&gt;Thank you all. When I try the routine, Im having trouble with the block matching the alignment of the polyline for some reason. It doesn't seem to align like what I see in Sea-havens example.&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="Alignment_issue.JPG" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1439079i8C287954B8A23238/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Alignment_issue.JPG" alt="Alignment_issue.JPG" /&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, 27 Nov 2024 06:02:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/create-associative-path-array-with-an-inserted-block/m-p/13176476#M5846</guid>
      <dc:creator>rebPTFNF</dc:creator>
      <dc:date>2024-11-27T06:02:18Z</dc:date>
    </item>
    <item>
      <title>Re: Create associative path array with an inserted block</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/create-associative-path-array-with-an-inserted-block/m-p/13177395#M5847</link>
      <description>&lt;P&gt;You don't mention what method/routine you used to create the posted image, but it's evident that simply rotating the geometry in the block should solve the problem - this has been mentioned repeatedly.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;As I already wrote, and no one has proven me wrong yet (I wish someone had), according to my tests, ARRAYPATH is not suitable for automating this process. It is unpredictable.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;At this point, I see the only solution as creating the array manually, possibly using the routine I posted earlier.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Nov 2024 13:33:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/create-associative-path-array-with-an-inserted-block/m-p/13177395#M5847</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2024-11-27T13:33:03Z</dc:date>
    </item>
    <item>
      <title>Re: Create associative path array with an inserted block</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/create-associative-path-array-with-an-inserted-block/m-p/13178840#M5848</link>
      <description>&lt;P&gt;I agree with you&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1779365"&gt;@ВeekeeCZ&lt;/a&gt;&amp;nbsp;need to see a real dwg &lt;STRONG&gt;AGAIN ASKING&lt;/STRONG&gt; &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/11243591"&gt;@rebPTFNF&lt;/a&gt;&amp;nbsp;post what your answer should look like, even if you do manually.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2 versions have been posted, chain version and an arraypath version.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Nov 2024 23:40:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/create-associative-path-array-with-an-inserted-block/m-p/13178840#M5848</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2024-11-27T23:40:58Z</dc:date>
    </item>
    <item>
      <title>Re: Create associative path array with an inserted block</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/create-associative-path-array-with-an-inserted-block/m-p/13179315#M5849</link>
      <description>&lt;P&gt;Sorry for the delay. I live in the U.S and this is a holiday week with family so time somewhat limited on my end.&amp;nbsp; I did manage to create an example as requested. I am attaching a typical project DWG (only the relevant parts to keep it clean and understandable) as an example of what my task is. In this typical example, The project changed design and had to be redone so thought this was a good example to show. The first design shows two shapes that need to be surrounded by the 4' long blocks (like a chain). The goal is to surround them closely. Which is shown in the completed box. This is a finished example. As stated, the design ended up changing&amp;nbsp; and so a redesign of the blocks needed to be done as well.&amp;nbsp; Currently in my office we are doing this work manually. Bring in a block and start copy and rotating them in a chain fashion to surround the shapes. Express tools makes it a little quicker but still... If the design changes the blocks will have to be reshaped around them. They may change the design in the distant future as well (a year or two). I am thinking there is got to be a more efficient way to do this than manually every time. My thought. Just draw a polyline around the shapes of the project. attached and align the 4' block. Make an associated Path array and adjust where needed. Then when the design changes, its just a matter of adjusting the array instead of redoing it all. Hopefully this project example will help shed more light on what I hope to accomplish... Again, thanks for any assistance.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Project_Example.JPG" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1439762i67B67BC61A8CAC98/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Project_Example.JPG" alt="Project_Example.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Thu, 28 Nov 2024 06:22:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/create-associative-path-array-with-an-inserted-block/m-p/13179315#M5849</guid>
      <dc:creator>rebPTFNF</dc:creator>
      <dc:date>2024-11-28T06:22:35Z</dc:date>
    </item>
    <item>
      <title>Re: Create associative path array with an inserted block</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/create-associative-path-array-with-an-inserted-block/m-p/13180044#M5850</link>
      <description>&lt;P&gt;With my already posted Pseglen and simple grrread CIRCLES func I can do something like this. If that makes sense to you and nobody else posts something more advanced, I'll make some adjustments and post it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;(defun c:fline ( / s p e p1 p2 l s f done)

  (setq f 48
	p (getpoint "\nSpecify point: ")
	s (ssadd))

  (while (not done)  
    (command "_.line" "_non" p pause)
    (if (&amp;gt; (getvar 'cmdactive) 0)
      (progn
	(command "")
	(setq e (entlast)
	      p1 (getpropertyvalue e "StartPoint")
	      p2 (getpropertyvalue e "EndPoint")
	      l (distance p1 p2)
	      l (max f (* f (fix (/ l f))))
	      p (polar p1 (angle p1 p2) l))
	(command "_.lengthen" "_t" l (list e p2) "")
	(ssadd e s))
      (progn
	(initcommandversion)
	(command "_.join" s "")
	(setq done T))))
  (princ)
  )
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Nov 2024 17:17:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/create-associative-path-array-with-an-inserted-block/m-p/13180044#M5850</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2024-11-28T17:17:34Z</dc:date>
    </item>
    <item>
      <title>Re: Create associative path array with an inserted block</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/create-associative-path-array-with-an-inserted-block/m-p/13182983#M5851</link>
      <description>&lt;P&gt;Hey all.&lt;/P&gt;&lt;P&gt;Sorry again for the late reply's. I really appreciate everyone's input and I think you have created great solutions.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;BeekeeCZ&lt;/STRONG&gt;. The Fline routine works great keeping the lines to 48" increments. When i run your fencing it always works out perfect. I also tried the array version along with Jayhar's additions (Thank you Jayhar for the curve direction addition). You guys are correct about the Array being a bit unpredictable. But when it does work it does give the ability for future adjustments. I will keep playing with that option as well.&lt;/P&gt;&lt;P&gt;BeekeeCZ: I combined your Fline and fencing code into one routine and it works. Thank you. I will attach for your review.&amp;nbsp; Let me know if you see any issues with my combo attempt. I just altered a few variable names so it hopefully wouldn't cause any issues. maybe not needed in the end.&amp;nbsp; ** The strange thing is that I cant just drop the LISP routine file into my drawing or load from the Visual LISP Editor and run. Both times it errors out. The only way i get it to load&amp;nbsp; is to copy the code into a new blank file in the editor, highlight all and say run selected.. Then it loads no problem....Any ideas why?&lt;/P&gt;&lt;P&gt;The last thing I will work on is bringing in the myblock and adding that for "an all in one" routine... hopefully. I think Lee mac had something I saw about that somewhere.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;I think this is a great solution everyone! Thanks!&lt;span class="lia-unicode-emoji" title=":beaming_face_with_smiling_eyes:"&gt;😁&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 30 Nov 2024 05:07:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/create-associative-path-array-with-an-inserted-block/m-p/13182983#M5851</guid>
      <dc:creator>rebPTFNF</dc:creator>
      <dc:date>2024-11-30T05:07:15Z</dc:date>
    </item>
    <item>
      <title>Re: Create associative path array with an inserted block</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/create-associative-path-array-with-an-inserted-block/m-p/13186663#M5852</link>
      <description>&lt;P&gt;Your combined version works if that's what you want, except that you copied-pasted my nickname, which was not a smart move. I've made just a few enhancements to be more efficient. If you want to autoload your block, just add it&amp;nbsp; between the searchable paths, and your issue is solved (can't place it there directly; it needs to be wblocked or just a simple dwg (w/o block) named with the block name.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anyway, I've promised to make some enhancements so that you might try it. There are options there... the names are given, but the functionality is a bit different from the default behavior.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Dec 2024 13:27:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/create-associative-path-array-with-an-inserted-block/m-p/13186663#M5852</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2024-12-02T13:27:32Z</dc:date>
    </item>
    <item>
      <title>Re: Create associative path array with an inserted block</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/create-associative-path-array-with-an-inserted-block/m-p/13188402#M5853</link>
      <description>&lt;P&gt;Wow, that was a great enhancement. I was working on having the inserted block and line auto selected but this is even better. Impressive work! Its completely automated now...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Before seeing your post, I had just added in real basic code at the beginning and end to insert the drawing with the block and then delete the block when done.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;;Insert block into drawing&lt;BR /&gt;(if (= Myblock nil)(command "-insert" "C:/Path..../Path..../MyArray_block.dwg" "0,0" 1 1 0))&lt;/P&gt;&lt;P&gt;......&lt;/P&gt;&lt;P&gt;.....&lt;/P&gt;&lt;P&gt;;Delete inserted block&lt;BR /&gt;(setq dlblk (ssget "X" (list '(0 . "INSERT") (cons 2 "Myblock"))))&lt;BR /&gt;(command "erase" dlblk "")&lt;BR /&gt;(command "-purge" "B" "Myblock" "N" "")&lt;BR /&gt;(command "_regenall")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't know if this simple method will cause any issues if I want to redo the routine more than once in the same drawing. Hopefully not but will need to test...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again for all of your assistance and your solution works great!&lt;/P&gt;&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Dec 2024 04:20:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/create-associative-path-array-with-an-inserted-block/m-p/13188402#M5853</guid>
      <dc:creator>rebPTFNF</dc:creator>
      <dc:date>2024-12-03T04:20:46Z</dc:date>
    </item>
    <item>
      <title>Re: Create associative path array with an inserted block</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/create-associative-path-array-with-an-inserted-block/m-p/13188793#M5854</link>
      <description>&lt;P&gt;It's not necessarily bad, just unnecessary.&lt;/P&gt;
&lt;P&gt;Why you asking... do you see some advantage over my code that I don't?&lt;/P&gt;</description>
      <pubDate>Tue, 03 Dec 2024 08:37:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/create-associative-path-array-with-an-inserted-block/m-p/13188793#M5854</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2024-12-03T08:37:07Z</dc:date>
    </item>
    <item>
      <title>Re: Create associative path array with an inserted block</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/create-associative-path-array-with-an-inserted-block/m-p/13190484#M5855</link>
      <description>&lt;P&gt;Re is poly block in current dwg, posted elsewhere today. Uses Steal.lsp by Lee-mac.&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;(if (= (tblsearch "Blocks" "Poly") nil)
(progn
(if (not stealall )(load "StealV1-8.lsp"))
(Steal "C:\\My Folder\\MyDrawing.dwg" 
   '(("Blocks" ("Poly")))
)
)
)  &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>Tue, 03 Dec 2024 22:34:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/create-associative-path-array-with-an-inserted-block/m-p/13190484#M5855</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2024-12-03T22:34:17Z</dc:date>
    </item>
    <item>
      <title>Re: Create associative path array with an inserted block</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/create-associative-path-array-with-an-inserted-block/m-p/13190776#M5856</link>
      <description>&lt;P&gt;My apologies.&amp;nbsp; I think I may have miss understood your advice below:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;"If you want to autoload your block, just add it between the searchable paths"&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I thought that you meant I still needed to add code to insert a drawing containing the block needed but place it in a specific spot.&lt;/P&gt;&lt;P&gt;I saw the table search in your latest routine looking for the block saved as &lt;STRONG&gt;B&lt;/STRONG&gt; (myblock) but wasn't sure about the path part location.&lt;/P&gt;&lt;P&gt;If it is brought in by adding a searchable path, can the initial block brought in also be removed as well without deleting all of the other blocks with the same name.Thats where i have difficulties. Perhaps I am not bringing in the block as you intended....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks Seahaven for the advise you gave as well. I have see Lee's steal command in my online research's and ofourse on his site.... I will try it out!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you both!&lt;/P&gt;</description>
      <pubDate>Wed, 04 Dec 2024 03:06:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/create-associative-path-array-with-an-inserted-block/m-p/13190776#M5856</guid>
      <dc:creator>rebPTFNF</dc:creator>
      <dc:date>2024-12-04T03:06:28Z</dc:date>
    </item>
    <item>
      <title>Re: Create associative path array with an inserted block</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/create-associative-path-array-with-an-inserted-block/m-p/13193648#M5857</link>
      <description>&lt;P&gt;We had 100+ blocks probably more, so make the "poly" a single dwg will make life so much easier, just use wblock and save "poly.dwg". keep all your little blocks in one directory and add that directory to your support paths, then can insert with name only used. -insert "poly". Options Files Support.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Dec 2024 22:56:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/create-associative-path-array-with-an-inserted-block/m-p/13193648#M5857</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2024-12-04T22:56:02Z</dc:date>
    </item>
    <item>
      <title>Re: Create associative path array with an inserted block</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/create-associative-path-array-with-an-inserted-block/m-p/13194161#M5858</link>
      <description>&lt;P&gt;Great solution. Just to recap: Save "myblock" as a wblock file in a main directory folder. Insert&amp;nbsp;"myblock" as a wblock into &lt;STRONG&gt;poly.dwg&lt;/STRONG&gt;. The "myblock" can then be grabbed out of the &lt;STRONG&gt;Poly.dwg&lt;/STRONG&gt; file using Lees script and inserted into my current project drawing. This way I can fill poly.dwg with an assortment of wblocks and only need to call up poly.dwg and the wblock name.&amp;nbsp; I hope I got that right... Let me know if I misinterpreted the steps. I will try this out when I get back into town next week. Again, Thanks again for everyone's assistance!&lt;/P&gt;</description>
      <pubDate>Thu, 05 Dec 2024 06:04:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/create-associative-path-array-with-an-inserted-block/m-p/13194161#M5858</guid>
      <dc:creator>rebPTFNF</dc:creator>
      <dc:date>2024-12-05T06:04:31Z</dc:date>
    </item>
    <item>
      <title>Re: Create associative path array with an inserted block</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/create-associative-path-array-with-an-inserted-block/m-p/13194484#M5859</link>
      <description>&lt;P&gt;Ou boy, last&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/6254908"&gt;@Sea-Haven&lt;/a&gt;&amp;nbsp; explanation looked so promissing...&amp;nbsp;this is how your dwg should look.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Dec 2024 09:58:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/create-associative-path-array-with-an-inserted-block/m-p/13194484#M5859</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2024-12-05T09:58:16Z</dc:date>
    </item>
    <item>
      <title>Re: Create associative path array with an inserted block</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/create-associative-path-array-with-an-inserted-block/m-p/13195194#M5860</link>
      <description>&lt;P&gt;Cool.&amp;nbsp; Not a block in the separate DWG file but inserted into &lt;STRONG&gt;poly.dwg&lt;/STRONG&gt; as a wBlock. Hope I got that right. Then Lee's script pulls that into my project drawing.&lt;/P&gt;&lt;P&gt;Can this method help with the removal of the original inserted wblock called "myBlock"&amp;nbsp; into my project by chance? Not a big deal if not. I have to count the "myBlocks" for pricing quotes. How many there are that make up the "chain" so to speak for each project (since its always different and the blocks represent real world items being sold). I was just going to do a&amp;nbsp; "Select similar" to get the number of items and then reduce the number listed by one and delete the original block inserted at 0,0. I was thinking if there is a way to just rename the entity located at 0,0 and then delete entity by its new name,&amp;nbsp; leaving the rest of the chain with the original named blocks intact for counting. Is that a good way to approach this? Or because its a wBlock, all blocks in the "chain" would be renamed as well and then all would be deleted...wBlock is a reference being pulled from another file so Im guessing you cant rename it in the actual project file now that i think about it. Not sure the best way to solve that one. But, its a small extra step so not a big deal....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BeekeeCZ. Your script really works great!&lt;/P&gt;</description>
      <pubDate>Thu, 05 Dec 2024 15:55:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/create-associative-path-array-with-an-inserted-block/m-p/13195194#M5860</guid>
      <dc:creator>rebPTFNF</dc:creator>
      <dc:date>2024-12-05T15:55:44Z</dc:date>
    </item>
  </channel>
</rss>

