<?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: Help in lisp please in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-in-lisp-please/m-p/11565519#M38178</link>
    <description>&lt;P&gt;i already tested this lisp before but the lisp has a lot of errors at various drawings ... i test the lisp you mention again now at some complicated drawings also has the same problems (as ex. hard to follow route that mentioned at some complicated drawings &amp;amp; no connection between lines ... just break and erase ) ... i really search more and do my best to reach that i want but till now the solution that work 99% well is the lisp by Moshe-A but i don't need vlx formatting ... thank you for your effort&lt;/P&gt;</description>
    <pubDate>Sun, 20 Nov 2022 16:47:18 GMT</pubDate>
    <dc:creator>onlineoffers1988</dc:creator>
    <dc:date>2022-11-20T16:47:18Z</dc:date>
    <item>
      <title>Help in lisp please</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-in-lisp-please/m-p/11550737#M38145</link>
      <description>&lt;P&gt;hello&lt;/P&gt;&lt;P&gt;i want help for creating lisp for me please ... the lisp will do these functions&lt;/P&gt;&lt;P&gt;1- as the attached image if i have block with yellow at right and some green blocks&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1a.png" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1139423i2EA9026EFA956B09/image-size/large?v=v2&amp;amp;px=999" role="button" title="1a.png" alt="1a.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;2- i want when i launch the lisp to ask me to draw poly line that i want as in image 2&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2a.png" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1139425i6E625C216E98287E/image-size/large?v=v2&amp;amp;px=999" role="button" title="2a.png" alt="2a.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;3- after that when i draw this path with polyline and press enter the lisp ask me to choose blocks that i want to connect to this polyline and i will choose one by one or multiple blocks then after choosing the blocks and press enter ... the lisp will offset the main polyline that i draw and connect every polyline with the basepoint of the blocks that i choose sequentially as appear in this image (attached DWG)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="5a.png" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1139427iD282D406CE80FCBC/image-size/large?v=v2&amp;amp;px=999" role="button" title="5a.png" alt="5a.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;can anyone help me please&lt;/P&gt;</description>
      <pubDate>Mon, 14 Nov 2022 15:14:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-in-lisp-please/m-p/11550737#M38145</guid>
      <dc:creator>onlineoffers1988</dc:creator>
      <dc:date>2022-11-14T15:14:18Z</dc:date>
    </item>
    <item>
      <title>Re: Help in lisp please</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-in-lisp-please/m-p/11552446#M38146</link>
      <description>&lt;P&gt;This has been asked before and solutions provided, I have not provided any, if I can think of a correct search wording will post, else others will post solution. The only difference I can see quickly is the thickness of the connecting plines.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Maybe my 1st attempt "connect block to closest pline autocad lisp" you need to Google.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Nov 2022 01:43:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-in-lisp-please/m-p/11552446#M38146</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2022-11-15T01:43:52Z</dc:date>
    </item>
    <item>
      <title>Re: Help in lisp please</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-in-lisp-please/m-p/11552468#M38147</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;i searched for this issue before and i didn't find solution that i need ... can you help me in this lisp ... i attach DWG sample for the final drawing i want&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;</description>
      <pubDate>Tue, 15 Nov 2022 02:00:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-in-lisp-please/m-p/11552468#M38147</guid>
      <dc:creator>onlineoffers1988</dc:creator>
      <dc:date>2022-11-15T02:00:57Z</dc:date>
    </item>
    <item>
      <title>Re: Help in lisp please</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-in-lisp-please/m-p/11553030#M38148</link>
      <description>&lt;P&gt;I believe that&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5530556"&gt;@hak_vz&lt;/a&gt;&amp;nbsp;have had wrote a couple of this type of routines... but could be wrong.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BTW You wonder why you can't find anything similar in history by the keywords? Look at the mirror first, how informative your subject is!!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Nov 2022 09:24:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-in-lisp-please/m-p/11553030#M38148</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2022-11-15T09:24:26Z</dc:date>
    </item>
    <item>
      <title>Re: Help in lisp please</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-in-lisp-please/m-p/11553047#M38149</link>
      <description>&lt;P&gt;really i have searched more and more and i didn't find my needs ... i know that the lisp i want is complex ... but i hope to help me&lt;/P&gt;</description>
      <pubDate>Tue, 15 Nov 2022 09:35:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-in-lisp-please/m-p/11553047#M38149</guid>
      <dc:creator>onlineoffers1988</dc:creator>
      <dc:date>2022-11-15T09:35:58Z</dc:date>
    </item>
    <item>
      <title>Re: Help in lisp please</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-in-lisp-please/m-p/11554596#M38150</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/13158960"&gt;@onlineoffers1988&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1779365"&gt;@ВeekeeCZ&lt;/a&gt; mentioned in his reply, I have created at least&amp;nbsp; two or three similar codes in last two years. Unfortunately I don't have direct links to this posts. If I catch some time I'll try to write code for you. You can search this forum history to look for posts related to "connecting blocks" or similar. Due to some personal reasons I'm not in position to spend my spare time on writing codes, otherwise I would gladly jump in and try to mock up something for you. &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Nov 2022 20:15:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-in-lisp-please/m-p/11554596#M38150</guid>
      <dc:creator>hak_vz</dc:creator>
      <dc:date>2022-11-15T20:15:50Z</dc:date>
    </item>
    <item>
      <title>Re: Help in lisp please</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-in-lisp-please/m-p/11555015#M38151</link>
      <description>&lt;P&gt;Did you google using what I posted ? This is 1st option that appeared. Yes matches the other posters here.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SeaHaven_0-1668557333958.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1140180iD57E7F45E1C639FB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SeaHaven_0-1668557333958.png" alt="SeaHaven_0-1668557333958.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Nov 2022 00:10:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-in-lisp-please/m-p/11555015#M38151</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2022-11-16T00:10:01Z</dc:date>
    </item>
    <item>
      <title>Re: Help in lisp please</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-in-lisp-please/m-p/11555313#M38152</link>
      <description>&lt;P&gt;hello&lt;/P&gt;&lt;P&gt;really i search in the forum more ... your solutions didn't match with my lisp requirements ... my lisp contains 3 tasks that i mentioned in the post ... thank you for your time ... i'm really need help&lt;/P&gt;</description>
      <pubDate>Wed, 16 Nov 2022 04:14:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-in-lisp-please/m-p/11555313#M38152</guid>
      <dc:creator>onlineoffers1988</dc:creator>
      <dc:date>2022-11-16T04:14:16Z</dc:date>
    </item>
    <item>
      <title>Re: Help in lisp please</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-in-lisp-please/m-p/11555316#M38153</link>
      <description>&lt;P&gt;Dear ... really i try all of this ... but this is not my requirements ... i want lisp to do the steps i mention in my post ... really i didn't find any lisp with my needs ... i post here because i have searched more and more for long time ... i didn't have any solution till now ... i'm sorry for this but really can anyone create this for me&lt;/P&gt;</description>
      <pubDate>Wed, 16 Nov 2022 04:17:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-in-lisp-please/m-p/11555316#M38153</guid>
      <dc:creator>onlineoffers1988</dc:creator>
      <dc:date>2022-11-16T04:17:28Z</dc:date>
    </item>
    <item>
      <title>Re: Help in lisp please</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-in-lisp-please/m-p/11555429#M38154</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/13158960"&gt;@onlineoffers1988&lt;/a&gt;&amp;nbsp; hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What ddddd means?&lt;/P&gt;&lt;P&gt;What MDB means?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i'm not exactly of your design&amp;nbsp;&lt;SPAN&gt;discipline,&amp;nbsp;&lt;/SPAN&gt;are we talking about lighting system?&amp;nbsp;&lt;/P&gt;&lt;P&gt;what's the point in calling blocks with meaningful names?&amp;nbsp;isn't it the same&amp;nbsp;m&lt;SPAN&gt;ental effort&lt;/SPAN&gt; to name a block as it should?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Moshe&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>Wed, 16 Nov 2022 06:45:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-in-lisp-please/m-p/11555429#M38154</guid>
      <dc:creator>Moshe-A</dc:creator>
      <dc:date>2022-11-16T06:45:26Z</dc:date>
    </item>
    <item>
      <title>Re: Help in lisp please</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-in-lisp-please/m-p/11555432#M38155</link>
      <description>&lt;P&gt;MDB and dddd ... Just block names ... Not referring to anything... This is lighting drawing... But the lisp i need will run for any block names or any drawings... Just names&lt;/P&gt;</description>
      <pubDate>Wed, 16 Nov 2022 06:04:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-in-lisp-please/m-p/11555432#M38155</guid>
      <dc:creator>onlineoffers1988</dc:creator>
      <dc:date>2022-11-16T06:04:25Z</dc:date>
    </item>
    <item>
      <title>Re: Help in lisp please</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-in-lisp-please/m-p/11561197#M38156</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1779365"&gt;@ВeekeeCZ&lt;/a&gt;&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/6254908"&gt;@Sea-Haven&lt;/a&gt;&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/52747"&gt;@Moshe-A&lt;/a&gt;&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5530556"&gt;@hak_vz&lt;/a&gt;&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/69526"&gt;@Kent1Cooper&lt;/a&gt;&amp;nbsp; Please help ... i find my solution to my lisp requirements but needs some edits please ....&amp;nbsp;&lt;SPAN&gt;i want to edit as appear in my attached image ( 1st edit i want the route between main poly line and block with right angle&amp;nbsp; - 2nd i want lisp to flatten all polylines - 3rd i want the lisp to connect between each polyline from the block and the main route with fillet command to be the same as "sample DWG that i attached before") ... thank you very very very much&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="lisp"&gt;;;https://www.cadtutor.net/forum/topic/21484-i-search-for-offset-with-same-value-and-opposite-direction/#comment-175406
(defun c:ConnectBlocks ( / acount MyLineSS MyBlockSS of MyOffSS)
;;Undo
  (defun *error* ( msg )
    (and undo (vla-EndUndomark doc))
    (or
      (wcmatch (strcase msg) "*BREAK,*CANCEL*,*EXIT*")
      (princ (strcat "\n** Error: " msg " **"))
    )
    (princ)
  )

;;https://autocadtips1.com/2011/10/13/autolisp-perpendicular-to-entity/
;; by sinc @ the Swamp 07/22/2004
;; Repeatedly draws a line from a pick point perpendicular
;; to a selected object
  (defun perp2ent ( MyLine MyPoints / entity pt acount)
    (setq acount 0)
    (while (&amp;lt; acount (length MyPoints))
      (setq pt (nth acount MyPoints))
      (entmake (list '(0 . "LINE") (cons 10 (trans pt 1 0))
        (cons 11 (vlax-curve-getClosestPointTo MyLine (trans pt 1 0)))) ;_ list
      ) ;_ entmake
      (setq acount (+ acount 1))
    ) ;_ while
    (princ)
  ) ;_ defun

;; Loop layers selection
;;Select Route
  (princ "\nSelect Polyline Route ")
  (setq MyLineSS (ssget "_+.:E:S" (list (cons 0 "*LINE") ) ))

;;Get Offset
  (setq of 2.5) ; default offset, 2.5. Maybe work out as fraction of line length
;;  (setq of (getdist "\nSpecify Offset Distance: ")) ; User selects distance

;;Get blocks
;;Select Route
  (princ "\nSelect End Blocks ")
  (setq MyBlockSS (ssget (list (cons 0 "INSERT") ) ))
  (setq BlockSelected (sslength MyBlockSS) )

;; Do Offset
    (setq acount 1) ;; 1 so that it draws correct no of lines
    (setq side 1)
    (while (&amp;lt; acount (sslength MyBlockSS))
      (setq offset (* acount of side) )
      (setq VlaOb (vlax-ename-&amp;gt;vla-object (ssname MyLineSS ( - acount 1))))
      (vla-offset VlaOb offset ) ;; offset line 1
      (setq MyLineSS (ssadd (entlast) MyLineSS)) ;; add offset to selection set
      (setq side (* side -1))
      (setq acount (+ acount 1))
    ) ; end while

  (setq MyLine (ssname MyLineSS 0))
  (setq acount 0)
  (setq MyPoints (list))
  (while (&amp;lt; acount (sslength MyBlockSS))
    (setq MyPoints (append MyPoints (list (cdr (assoc 10 (entget (ssname MyBlockSS acount))))) ))
    (setq acount (+ 1 acount))
  )
  (perp2ent MyLine MyPoints)

;;Finish
;  (vla-EndUndoMark doc)
  (princ)
)&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="nnn.png" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1141302i042F0539E658C8C6/image-size/large?v=v2&amp;amp;px=999" role="button" title="nnn.png" alt="nnn.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="111.png" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1141303i16EF9EB746BF1E30/image-size/large?v=v2&amp;amp;px=999" role="button" title="111.png" alt="111.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 19 Nov 2022 04:39:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-in-lisp-please/m-p/11561197#M38156</guid>
      <dc:creator>onlineoffers1988</dc:creator>
      <dc:date>2022-11-19T04:39:34Z</dc:date>
    </item>
    <item>
      <title>Re: Help in lisp please</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-in-lisp-please/m-p/11563276#M38157</link>
      <description>&lt;P&gt;I can see how to do it manually not sure program wise, using draw line perp to, then fillet the line to the pline. Then Fillet Polyline to do all the little radius. A semi manual approach would give control over the sequence of lines.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SeaHaven_0-1668816648159.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1141694i81B3919AA89B1B67/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SeaHaven_0-1668816648159.png" alt="SeaHaven_0-1668816648159.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 19 Nov 2022 00:40:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-in-lisp-please/m-p/11563276#M38157</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2022-11-19T00:40:51Z</dc:date>
    </item>
    <item>
      <title>Re: Help in lisp please</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-in-lisp-please/m-p/11563493#M38158</link>
      <description>&lt;P&gt;Try this pretty sure can make better when doing fillet.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;; Join blocks to parallel lines
; By Alan H Nov 2022

(defun c:dolights ( )
(setvar 'filletrad 30)
(setq obj (car (entsel "\nPick pline main cable ")))
(setq offpt (getpoint "\nPick point away from main for directions. "))
(setq off 0.0)
(setvar 'osmode 64)
(while (setq pt (getpoint "\npick block "))
(setq off (+ off 30.0))
(command "offset" off obj offpt "")
(setvar 'osmode 128)
(setq pt2 (getpoint pt "\nPick offset line "))
(setvar 'osmode 0)
(command "line" pt pt2 "")
(command "fillet" (entlast) (getpoint "pick fillet"))
(command "fillet" "P" (entlast))
(setvar 'osmode 64)
)
)
(c:dolights)&lt;/LI-CODE&gt;</description>
      <pubDate>Sat, 19 Nov 2022 05:13:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-in-lisp-please/m-p/11563493#M38158</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2022-11-19T05:13:49Z</dc:date>
    </item>
    <item>
      <title>Re: Help in lisp please</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-in-lisp-please/m-p/11563525#M38159</link>
      <description>&lt;P&gt;&lt;div class="lia-vid-container video-embed-left"&gt;&lt;div id="lia-vid-6315835739112w960h540r590" class="lia-video-brightcove-player-container"&gt;&lt;video-js data-video-id="6315835739112" data-account="6057940548001" data-player="default" data-embed="default" class="vjs-fluid" controls="" data-application-id="" style="width: 100%; height: 100%;"&gt;&lt;/video-js&gt;&lt;/div&gt;&lt;script src="https://players.brightcove.net/6057940548001/default_default/index.min.js"&gt;&lt;/script&gt;&lt;script&gt;(function() {  var wrapper = document.getElementById('lia-vid-6315835739112w960h540r590');  var videoEl = wrapper ? wrapper.querySelector('video-js') : null;  if (videoEl) {     if (window.videojs) {       window.videojs(videoEl).ready(function() {         this.on('loadedmetadata', function() {           this.el().querySelectorAll('.vjs-load-progress div[data-start]').forEach(function(bar) {             bar.setAttribute('role', 'presentation');             bar.setAttribute('aria-hidden', 'true');           });         });       });     }  }})();&lt;/script&gt;&lt;a class="video-embed-link" href="https://forums.autodesk.com/t5/video/gallerypage/video-id/6315835739112"&gt;(view in My Videos)&lt;/a&gt;&lt;/div&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;&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;&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;&lt;P&gt;i show in this video the case of my lisp now &amp;gt;&amp;gt;&amp;gt;&amp;nbsp;the edits i want&amp;nbsp; ...&amp;nbsp;&lt;SPAN&gt;1st edit i want the route between main poly line and block with right angle not slopped (see video)&amp;nbsp; - 2nd i want lisp to flatten all polylines (some polylines refused to filleted with each others)- 3rd i want the lisp to connect automatically between each polyline from the block and the main route with fillet command to be the same as in video&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;thank you very much&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="lisp"&gt;;;https://www.cadtutor.net/forum/topic/21484-i-search-for-offset-with-same-value-and-opposite-direction/#comment-175406
(defun c:HomeRun ( / acount MyLineSS MyBlockSS of MyOffSS)
;;Undo
  (defun *error* ( msg )
    (and undo (vla-EndUndomark doc))
    (or
      (wcmatch (strcase msg) "*BREAK,*CANCEL*,*EXIT*")
      (princ (strcat "\n** Error: " msg " **"))
    )
    (princ)
  )

;;https://autocadtips1.com/2011/10/13/autolisp-perpendicular-to-entity/
;; by sinc @ the Swamp 07/22/2004
;; Repeatedly draws a line from a pick point perpendicular
;; to a selected object
  (defun perp2ent ( MyLine MyPoints / entity pt acount)
    (setq acount 0)
    (while (&amp;lt; acount (length MyPoints))
        (setq pt (nth acount MyPoints))
        (entmake (list '(0 . "LINE") (cons 10 (trans pt 1 0))
        (cons 11 (vlax-curve-getClosestPointTo MyLine (trans pt 1 0)))) ;_ list
      ) ;_ entmake
      (setq acount (+ acount 1))
    ) ;_ while
    (princ)
  ) ;_ defun

;; Loop layers selection
;;Select Route
  (princ "\nSelect Home Run Route ")
  (setq MyLineSS (ssget "_+.:E:S" (list (cons 0 "*LINE") ) ))
  (command "_.fillet" "_polyline" (entlast))

;;Get Offset
  ;;(setq of 2.5) ; default offset, 2.5. Maybe work out as fraction of line length
(setq of (getdist "\nSpecify Distance between Lines: ")) ; User selects distance

;;Get blocks
;;Select Route
  (princ "\nSelect one Block from every circuit ")
  (setq MyBlockSS (ssget (list (cons 0 "INSERT") ) ))
  (setq BlockSelected (sslength MyBlockSS) )

;; Do Offset
    (setq acount 1) ;; 1 so that it draws correct no of lines
    (setq side 1)
    (while (&amp;lt; acount (sslength MyBlockSS))
      (setq offset (* acount of side) )
      (setq VlaOb (vlax-ename-&amp;gt;vla-object (ssname MyLineSS ( - acount 1))))
      (vla-offset VlaOb offset ) ;; offset line 1
      (setq MyLineSS (ssadd (entlast) MyLineSS)) ;; add offset to selection set
      (command "_.fillet" "_polyline" (entlast))
      (setq side (* side -1))
      (setq acount (+ acount 1))
    ) ; end while

  (setq MyLine (ssname MyLineSS 0))
  (setq acount 0)
  (setq MyPoints (list))
  (while (&amp;lt; acount (sslength MyBlockSS))
    (setq MyPoints (append MyPoints (list (cdr (assoc 10 (entget (ssname MyBlockSS acount))))) ))
    (setq acount (+ 1 acount))
  )
  (perp2ent MyLine MyPoints)

;;Finish
;  (vla-EndUndoMark doc)
  (princ)
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 19 Nov 2022 05:45:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-in-lisp-please/m-p/11563525#M38159</guid>
      <dc:creator>onlineoffers1988</dc:creator>
      <dc:date>2022-11-19T05:45:37Z</dc:date>
    </item>
    <item>
      <title>Re: Help in lisp please</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-in-lisp-please/m-p/11563836#M38160</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/13158960"&gt;@onlineoffers1988&lt;/a&gt;&amp;nbsp; hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;check this LSWIRE command.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Attached a LSWIRE.ZIP file containing lswire.vlx + lsw_supp.lsp - save these files in AutoCAD support files path (or your document folder).&amp;nbsp;before rush to run it,&amp;nbsp; please follow these instructions:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;lsw_supp.lsp defines your two blocks.&lt;/P&gt;&lt;P&gt;(setq ELECTRICPANEL "mdb" LIGHTINGFIXTURE "ddddd")&lt;/P&gt;&lt;P&gt;if you change the blocks name to some thing else, also specify it here. lswire tries to load this file and if it is fail, the above setting is default.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Command: LSWIRE&lt;BR /&gt;Select objects: &amp;lt;pick the Leading Path + the Electric Panel and all Lighting Fixtures&amp;gt;&lt;/P&gt;&lt;P&gt;Select objects: &amp;lt;pick pick pick...make sure you pick only one pline for the Leading Path&amp;gt;&lt;/P&gt;&lt;P&gt;Select objects: &amp;lt;press enter when done&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt;&amp;gt;&lt;/P&gt;&lt;P&gt;Wiring offset &amp;lt;30.0000&amp;gt;:&amp;nbsp; &amp;lt;control of wiring offset, default of course is 30&amp;gt;&lt;/P&gt;&lt;P&gt;Preserve leading path &amp;lt;Yes&amp;gt;: &amp;lt; you can preserve the leading path for further review or key in&amp;nbsp; "No" to delete it&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;lighting fixtures at perpendicular point to leading path is well handled,&amp;nbsp;&lt;SPAN&gt;exception lighting fixtures (like the one left\down in your sample) may or may not handled and it depend on the case so do tests and if an update is needed i will try will fix it&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;enjoy&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Moshe&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;&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;&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 19 Nov 2022 11:28:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-in-lisp-please/m-p/11563836#M38160</guid>
      <dc:creator>Moshe-A</dc:creator>
      <dc:date>2022-11-19T11:28:21Z</dc:date>
    </item>
    <item>
      <title>Re: Help in lisp please</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-in-lisp-please/m-p/11563891#M38161</link>
      <description>&lt;P&gt;first of all ... thank you very much for your reply ... i test the lisp ... works well but you can check attached video for this issue &amp;gt;&amp;gt;&amp;gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;div class="lia-vid-container video-embed-center"&gt;&lt;div id="lia-vid-6315849622112w960h540r664" class="lia-video-brightcove-player-container"&gt;&lt;video-js data-video-id="6315849622112" data-account="6057940548001" data-player="default" data-embed="default" class="vjs-fluid" controls="" data-application-id="" style="width: 100%; height: 100%;"&gt;&lt;/video-js&gt;&lt;/div&gt;&lt;script src="https://players.brightcove.net/6057940548001/default_default/index.min.js"&gt;&lt;/script&gt;&lt;script&gt;(function() {  var wrapper = document.getElementById('lia-vid-6315849622112w960h540r664');  var videoEl = wrapper ? wrapper.querySelector('video-js') : null;  if (videoEl) {     if (window.videojs) {       window.videojs(videoEl).ready(function() {         this.on('loadedmetadata', function() {           this.el().querySelectorAll('.vjs-load-progress div[data-start]').forEach(function(bar) {             bar.setAttribute('role', 'presentation');             bar.setAttribute('aria-hidden', 'true');           });         });       });     }  }})();&lt;/script&gt;&lt;a class="video-embed-link" href="https://forums.autodesk.com/t5/video/gallerypage/video-id/6315849622112"&gt;(view in My Videos)&lt;/a&gt;&lt;/div&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 19 Nov 2022 12:10:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-in-lisp-please/m-p/11563891#M38161</guid>
      <dc:creator>onlineoffers1988</dc:creator>
      <dc:date>2022-11-19T12:10:34Z</dc:date>
    </item>
    <item>
      <title>Re: Help in lisp please</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-in-lisp-please/m-p/11563943#M38162</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/13158960"&gt;@onlineoffers1988&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i'm sure this the result of the exceptional Lighting Fixtures so what i thought is to wire them to the Leading path with a diagonal segment and you will fix them manually.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note:&lt;/P&gt;&lt;P&gt;lswire is using (vlax-curve-getClosestPointTo) function. what this function does is to find the close point on the Leading path and&amp;nbsp; if the lighting fixture is not close enough to what you thing it should be, it will snap to other close point on the pline, that's of course is depend on how the Lighting Path is laid.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;why lsw_supp.lsp&amp;nbsp;is not&amp;nbsp;&lt;SPAN&gt;satisfactory?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Moshe&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 19 Nov 2022 13:01:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-in-lisp-please/m-p/11563943#M38162</guid>
      <dc:creator>Moshe-A</dc:creator>
      <dc:date>2022-11-19T13:01:18Z</dc:date>
    </item>
    <item>
      <title>Re: Help in lisp please</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-in-lisp-please/m-p/11563948#M38163</link>
      <description>&lt;P&gt;Dear&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/52747"&gt;@Moshe-A&lt;/a&gt;&amp;nbsp;the lisp you give to me is excellent but restricted to spicific blocks also the issue of interference of polylines ... So can you try to edit my code with required edits that i mentioned there ... Many thanks for you&lt;/P&gt;</description>
      <pubDate>Sat, 19 Nov 2022 13:10:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-in-lisp-please/m-p/11563948#M38163</guid>
      <dc:creator>onlineoffers1988</dc:creator>
      <dc:date>2022-11-19T13:10:59Z</dc:date>
    </item>
    <item>
      <title>Re: Help in lisp please</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-in-lisp-please/m-p/11564034#M38164</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/13158960"&gt;@onlineoffers1988&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;Dear&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/52747"&gt;@Moshe-A&lt;/a&gt;&amp;nbsp;the lisp you give to me is excellent &lt;STRONG&gt;&lt;FONT color="#3366FF"&gt;but restricted to spicific blocks &lt;/FONT&gt;&lt;/STRONG&gt;also the issue of interference of polylines ... So can you try to edit my code with required edits that i mentioned there ... Many thanks for you&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;what do you mean by that? in the same run you are using different classes of Fixtures?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 19 Nov 2022 14:37:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-in-lisp-please/m-p/11564034#M38164</guid>
      <dc:creator>Moshe-A</dc:creator>
      <dc:date>2022-11-19T14:37:40Z</dc:date>
    </item>
  </channel>
</rss>

