<?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: LISP Commands: Mixed Bag of Questions in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-commands-mixed-bag-of-questions/m-p/11441346#M41886</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/69526"&gt;@Kent1Cooper&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;....&lt;/P&gt;
&lt;P&gt;4)&amp;nbsp; It's easy to pull start and endpoints of Polylines, using (vlax-curve-get...Point) functions.&amp;nbsp; But there are complications -- would it need to differentiate between the possibility of starts' and ends' relationship being in either direction?&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Kent1Cooper_0-1663938775303.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1119813iBE502F9ECBB4445F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Kent1Cooper_0-1663938775303.png" alt="Kent1Cooper_0-1663938775303.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Come to think of it, I &lt;EM&gt;do&lt;/EM&gt; have something that can deal with that difference -- &lt;STRONG&gt;LadderC.lsp&lt;/STRONG&gt;, &lt;A href="https://forums.autodesk.com/t5/autocad-forum/shortest-distance-between-2-lines-on-every-point-on-those-lines/m-p/10468388/highlight/true#M1057031" target="_blank" rel="noopener"&gt;&amp;gt;here&amp;lt;&lt;/A&gt;.&amp;nbsp; Use that and select two Polylines [or other acceptable things], and ask it to divide them into &lt;STRONG&gt;&lt;EM&gt;one segment&lt;/EM&gt;&lt;/STRONG&gt;, and it will draw the red lines at left above, regardless of the comparative directions in which the selected objects were drawn.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It would be a relatively easy modification to build in the one-segment approach and have it join all those parts together afterward, if that sounds like what you want to do.&lt;/P&gt;</description>
    <pubDate>Fri, 23 Sep 2022 13:46:40 GMT</pubDate>
    <dc:creator>Kent1Cooper</dc:creator>
    <dc:date>2022-09-23T13:46:40Z</dc:date>
    <item>
      <title>LISP Commands: Mixed Bag of Questions</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-commands-mixed-bag-of-questions/m-p/11372032#M41874</link>
      <description>&lt;P&gt;I am new to LISP commands and haven't been able to find any good tutorials yet, so I have a lot of questions and don't want to overload the forums. (Recommendations on where to learn would be much appreciated, most tutorials seem to be older than CAD 2015 from what I have seen). Would attach what I have, but I don't think I even know enough for it to really help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) How do you initiate a command, allow for the user to create a selection set, and then continue on with the LISP?&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, I am attempting to nested copy objects from an xref with 0 displacement and then instantly convert the copied objects to the current layer.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2) How do you open a command to be continuously used?&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, I want a shortcut for filleting multiple objects with radius 0 but allow the user to select objects as normal and close out the command as if typically filleting. However, if I put in the same commands into a lisp, it automatically closes the command after inputting the proper settings. **Would be great if this was able to be modified to keep the last used non-zero fillet radius so that this is fully separate command.**&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3) Is it possible to modify property fields when selecting objects whether it be with an automatic value or user input? For example, selecting text objects (MTEXTS and MLEADERS) and making them annotative, background masked, and text framed? Alternatively, allow a user to select a pipe and modify pipe slope (hold start) and then take an input value?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;4) How to make command read starts and ends of polylines? Essentially looking to make two polylines become a closed object by drawing two polylines between the starts and ends of a two selected polylines and then joining the four polylines. Would later be implemented so that one object could be offset and then apply the same process to the original and the offset object. Recognize there are other ways to do it with the latter process, but looking to have two separate commands.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;5) I have no idea how to go about this one, so I will just describe it and see ideas: I want a command where I am able to choose a label style and a surface, and then select polylines and have a spot elevation placed at each vertex in the same dragged state position. While this typically would be done on nested objects, I am totally fine with having to create the polylines prior to running this command.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;5) Are you able to make commands to operate the layer properties manager? Like freezing all of the layers in a layer filter? Or make a layer filter of all the layers of objects in current selection (this would also be great to be able to erase a filter and reset it since it seems difficult to append a layer to an already made filter).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know this is all over the place, but I don't think I even know what to google yet with how new I am to all of this. Any help is much appreciated!!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 21 Aug 2022 21:29:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-commands-mixed-bag-of-questions/m-p/11372032#M41874</guid>
      <dc:creator>ashetonv</dc:creator>
      <dc:date>2022-08-21T21:29:30Z</dc:date>
    </item>
    <item>
      <title>Re: LISP Commands: Mixed Bag of Questions</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-commands-mixed-bag-of-questions/m-p/11372524#M41875</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/7888778"&gt;@ashetonv&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;...&lt;/P&gt;
&lt;P&gt;2) How do you open a command to be continuously used?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example, I want a shortcut for filleting multiple objects with radius 0 but allow the user to select objects as normal and close out the command as if typically filleting. However, if I put in the same commands into a lisp, it automatically closes the command after inputting the proper settings. **Would be great if this was able to be modified to keep the last used non-zero fillet radius so that this is fully separate command.**&lt;/P&gt;
&lt;P&gt;...&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;AutoLisp FILLET version, like many other commands, differs from the current AutoCAD's version. It's older. So the command is ended after the Radius option is specified. Nowadays you can use the (initcommandversion) predecessor command to force AutoLisp to use the current (or other) version.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BTW have you ever heard that you can simply hold the SHIFT key??&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To mimic the FILLET behavior with R=0:&lt;/P&gt;
&lt;PRE&gt;(defun c:filletzero ( / o)

  (setq o (getvar 'filletrad))
  (setvar 'filletrad 0.)
  (initcommandversion)
  (command-s "_.fillet")
  (setvar 'filletrad o)
  (princ)
  )
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or enhanced continuous version:&lt;/P&gt;
&lt;PRE&gt;(defun c:fzero ( / o)

  (setq o (getvar 'filletrad))
  (setvar 'filletrad 0.)
  (while (progn
	   (initcommandversion)
	   (command "_.fillet" pause)
	   (&amp;gt; (getvar 'cmdactive) 0))
    (while (&amp;gt; (getvar 'cmdactive) 0) (command pause)))
  (setvar 'filletrad o)
  (princ)
  )
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Aug 2022 06:51:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-commands-mixed-bag-of-questions/m-p/11372524#M41875</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2022-08-22T06:51:43Z</dc:date>
    </item>
    <item>
      <title>Re: LISP Commands: Mixed Bag of Questions</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-commands-mixed-bag-of-questions/m-p/11372529#M41876</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/7888778"&gt;@ashetonv&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&lt;SPAN&gt;... 5) I have no idea how to go about this one, so I will just describe it and see ideas: I want a command where I am able to choose a label style and a surface, and then select polylines and have a spot elevation placed at each vertex in the same dragged state position. While this typically would be done on nested objects, I am totally fine with having to create the polylines prior to running this command.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;...&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Re-post this to The C3D Customization Forum&amp;nbsp;&lt;A href="https://forums.autodesk.com/t5/civil-3d-customization/bd-p/190" target="_blank" rel="noopener"&gt;HERE&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Aug 2022 06:54:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-commands-mixed-bag-of-questions/m-p/11372529#M41876</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2022-08-22T06:54:41Z</dc:date>
    </item>
    <item>
      <title>Re: LISP Commands: Mixed Bag of Questions</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-commands-mixed-bag-of-questions/m-p/11372555#M41877</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/7888778"&gt;@ashetonv&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&lt;SPAN&gt;.... 5) Are you able to make commands to operate the layer properties manager? Like freezing all of the layers in a layer filter? Or make a layer filter of all the layers of objects in current selection (this would also be great to be able to erase a filter and reset it since it seems difficult to append a layer to an already made filter).&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;...&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Theoretically, anything is possible. Just not so simple...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is the code to create a filter by pre-selected objects. Or the current layer if no layer is preselected.&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;(defun c:CurrentSelectionFilter (/ *error* eco s i l lst)

  (defun *error* (errmsg)
    (if (not (wcmatch errmsg "Function cancelled,quit / exit abort,console break,end"))
      (princ (strcat "\nError: " errmsg)))
    (if eco (setvar 'cmdecho eco))
    (princ))
  
  (setq eco (getvar 'cmdecho))
    (setvar 'CMDECHO 0)
  (if (setq s (ssget "_I"))
    (repeat (setq i (sslength s))
      (setq l (cdr (assoc 8 (entget (ssname s (setq i (1- i)))))))
      (if (not (vl-position l lst)) (setq lst (cons l lst))))
    (setq lst (list (getvar 'clayer))))
  (command "_.-LAYER" "_Filter" "_Delete" "Current Selection")
  (if (&amp;lt; 0 (getvar 'CMDACTIVE)) (command))
  (command "_.-LAYER" "_Filter" "_New" "_Group" "All" (apply 'strcat (mapcar '(lambda (l) (strcat l ",")) lst)) "Current Selection" "")
  (initdia) (command "_.LAYER")
  (*error* "end")
)
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Aug 2022 07:09:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-commands-mixed-bag-of-questions/m-p/11372555#M41877</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2022-08-22T07:09:30Z</dc:date>
    </item>
    <item>
      <title>Re: LISP Commands: Mixed Bag of Questions</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-commands-mixed-bag-of-questions/m-p/11372568#M41878</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/7888778"&gt;@ashetonv&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;...&lt;/P&gt;
&lt;P&gt;1) How do you initiate a command, allow for the user to create a selection set, and then continue on with the LISP?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example, I am attempting to nested copy objects from an xref with 0 displacement and then instantly convert the copied objects to the current layer.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can imagine this workflow automated:&lt;/P&gt;
&lt;P&gt;* pick an XREF&lt;/P&gt;
&lt;P&gt;* REFEDIT&lt;/P&gt;
&lt;P&gt;* make a selection&lt;/P&gt;
&lt;P&gt;* COPYTOLAYER objects with 0 displacement&lt;/P&gt;
&lt;P&gt;*&amp;nbsp;remove all new objects from the Active Working Set.&lt;/P&gt;
&lt;P&gt;* close the reference without saving.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Automated this way:&lt;/P&gt;
&lt;PRE&gt;(defun C:NCopyM (/ ss) ; = NCOPY Multiple objects

  (command "_.-REFEDIT" pause "_Ok" "_All" "_No")
  (if (setq ss (ssget "_:L"))
    (command "_.-COPYTOLAYER" ss "" (getvar 'clayer) "_X"
	     "_.REFSET" "_R" ss ""))
  (command "_.REFCLOSE" "_SAVE")
  (princ)
)
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Aug 2022 13:49:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-commands-mixed-bag-of-questions/m-p/11372568#M41878</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2022-08-23T13:49:09Z</dc:date>
    </item>
    <item>
      <title>Re: LISP Commands: Mixed Bag of Questions</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-commands-mixed-bag-of-questions/m-p/11372570#M41879</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/7888778"&gt;@ashetonv&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;...&lt;/P&gt;
&lt;P&gt;4) How to make command read starts and ends of polylines? Essentially looking to make two polylines become a closed object by drawing two polylines between the starts and ends of a two selected polylines and then joining the four polylines. Would later be implemented so that one object could be offset and then apply the same process to the original and the offset object. Recognize there are other ways to do it with the latter process, but looking to have two separate commands.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Look at &lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;vlax-curve-*&lt;/STRONG&gt;&lt;/FONT&gt; functions&amp;nbsp;&lt;A href="https://help.autodesk.com/view/ACD/2022/ENU/?guid=GUID-4684C76F-02F7-4989-AA53-C886E528350A" target="_blank" rel="noopener"&gt;HERE&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Aug 2022 07:19:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-commands-mixed-bag-of-questions/m-p/11372570#M41879</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2022-08-22T07:19:38Z</dc:date>
    </item>
    <item>
      <title>Re: LISP Commands: Mixed Bag of Questions</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-commands-mixed-bag-of-questions/m-p/11372580#M41880</link>
      <description>&lt;P&gt;AD 3. Sure you can edit all the properties.&lt;BR /&gt;Look at &lt;BR /&gt;(dumpallproperties (car (entsel)))&lt;BR /&gt;(setpropertyvalue...)&lt;BR /&gt;(getpropertyvalue...)&lt;BR /&gt;&lt;BR /&gt;A &lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;PIPE&lt;/STRONG&gt;&lt;/FONT&gt; is a C3D thing, you need to get there for help.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Aug 2022 07:24:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-commands-mixed-bag-of-questions/m-p/11372580#M41880</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2022-08-22T07:24:39Z</dc:date>
    </item>
    <item>
      <title>Re: LISP Commands: Mixed Bag of Questions</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-commands-mixed-bag-of-questions/m-p/11374753#M41881</link>
      <description>&lt;P&gt;Join ends different mix of objects required, join 2 lines and join 2 plines, join line &amp;amp; pline.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have 1st will look at add other combinations.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Aug 2022 05:08:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-commands-mixed-bag-of-questions/m-p/11374753#M41881</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2022-08-23T05:08:17Z</dc:date>
    </item>
    <item>
      <title>Re: LISP Commands: Mixed Bag of Questions</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-commands-mixed-bag-of-questions/m-p/11374756#M41882</link>
      <description>&lt;P&gt;I have some shortcut stuff for CIV3d like setting surface styles, uses a toolbar select contour interval, none or slope arrow. Plus other Civ3d stuff rotate pt, Label pt etc just ask if interested via Private mail.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Aug 2022 05:13:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-commands-mixed-bag-of-questions/m-p/11374756#M41882</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2022-08-23T05:13:19Z</dc:date>
    </item>
    <item>
      <title>Re: LISP Commands: Mixed Bag of Questions</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-commands-mixed-bag-of-questions/m-p/11422390#M41883</link>
      <description>&lt;P&gt;I am amazed I never knew that you could hold shift, nor did several of my coworkers. No idea how we missed that. Nonetheless, this command is exactly what I was looking for, so thank you so much!&lt;/P&gt;</description>
      <pubDate>Thu, 15 Sep 2022 01:58:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-commands-mixed-bag-of-questions/m-p/11422390#M41883</guid>
      <dc:creator>ashetonv</dc:creator>
      <dc:date>2022-09-15T01:58:44Z</dc:date>
    </item>
    <item>
      <title>Re: LISP Commands: Mixed Bag of Questions</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-commands-mixed-bag-of-questions/m-p/11440465#M41884</link>
      <description>&lt;P&gt;Item 4 join and close multiple plines, need a sample dwg.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have close 2d &amp;amp; 3d polylines a Field survey thing pick 4 points and get 3 lines. An example a drainage pit.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Sep 2022 04:52:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-commands-mixed-bag-of-questions/m-p/11440465#M41884</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2022-09-23T04:52:21Z</dc:date>
    </item>
    <item>
      <title>Re: LISP Commands: Mixed Bag of Questions</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-commands-mixed-bag-of-questions/m-p/11441283#M41885</link>
      <description>&lt;P&gt;2)&amp;nbsp; Here's what I use for that, which is like Message 2 with the addition of ensuring that the initial Fillet radius gets reset if something goes wrong:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;;;  FilletZero.lsp [command name = FZ]
;;  Calls up Fillet mUltiple at 0 radius; when done, restores prior radius.
;;  Concept from Cadalyst CAD Tips #1365 "Fillet with Zero Radius", by
;;  William M. Bright [1997], which does only one Fillet operation.
;;  Re-written to repeat as long as desired, and to add error handling, by
;;  Kent Cooper, February 2012.

(defun C:FZ (/ *error* fr); = Fillet Zero-radius
  (defun *error* (errmsg)
    (if (not (wcmatch errmsg "Function cancelled,quit / exit abort,console break"))
      (princ (strcat "\nError: " errmsg))
    ); if
    (setvar 'filletrad fr)
    (princ)
  ); defun - *error*
  (setq fr (getvar 'filletrad))
  (setvar 'filletrad 0)
  (command "_.fillet" "_mUltiple")
  (while (&amp;gt; (getvar 'cmdactive) 0) (command pause))
  (setvar 'filletrad fr)
  (princ)
); defun&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;4)&amp;nbsp; It's easy to pull start and endpoints of Polylines, using (vlax-curve-get...Point) functions.&amp;nbsp; But there are complications -- would it need to differentiate between the possibility of starts' and ends' relationship being in either direction?&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Kent1Cooper_0-1663938775303.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1119813iBE502F9ECBB4445F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Kent1Cooper_0-1663938775303.png" alt="Kent1Cooper_0-1663938775303.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Sep 2022 13:21:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-commands-mixed-bag-of-questions/m-p/11441283#M41885</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2022-09-23T13:21:52Z</dc:date>
    </item>
    <item>
      <title>Re: LISP Commands: Mixed Bag of Questions</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-commands-mixed-bag-of-questions/m-p/11441346#M41886</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/69526"&gt;@Kent1Cooper&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;....&lt;/P&gt;
&lt;P&gt;4)&amp;nbsp; It's easy to pull start and endpoints of Polylines, using (vlax-curve-get...Point) functions.&amp;nbsp; But there are complications -- would it need to differentiate between the possibility of starts' and ends' relationship being in either direction?&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Kent1Cooper_0-1663938775303.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1119813iBE502F9ECBB4445F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Kent1Cooper_0-1663938775303.png" alt="Kent1Cooper_0-1663938775303.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Come to think of it, I &lt;EM&gt;do&lt;/EM&gt; have something that can deal with that difference -- &lt;STRONG&gt;LadderC.lsp&lt;/STRONG&gt;, &lt;A href="https://forums.autodesk.com/t5/autocad-forum/shortest-distance-between-2-lines-on-every-point-on-those-lines/m-p/10468388/highlight/true#M1057031" target="_blank" rel="noopener"&gt;&amp;gt;here&amp;lt;&lt;/A&gt;.&amp;nbsp; Use that and select two Polylines [or other acceptable things], and ask it to divide them into &lt;STRONG&gt;&lt;EM&gt;one segment&lt;/EM&gt;&lt;/STRONG&gt;, and it will draw the red lines at left above, regardless of the comparative directions in which the selected objects were drawn.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It would be a relatively easy modification to build in the one-segment approach and have it join all those parts together afterward, if that sounds like what you want to do.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Sep 2022 13:46:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-commands-mixed-bag-of-questions/m-p/11441346#M41886</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2022-09-23T13:46:40Z</dc:date>
    </item>
    <item>
      <title>Re: LISP Commands: Mixed Bag of Questions</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-commands-mixed-bag-of-questions/m-p/11442439#M41887</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/69526"&gt;@Kent1Cooper&lt;/a&gt;&amp;nbsp;wrote "&lt;SPAN&gt;But there are complications -- would it need to differentiate between the possibility of starts' and ends' relationship being in either direction?"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Now he's catching on.&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 24 Sep 2022 00:03:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-commands-mixed-bag-of-questions/m-p/11442439#M41887</guid>
      <dc:creator>john.uhden</dc:creator>
      <dc:date>2022-09-24T00:03:58Z</dc:date>
    </item>
  </channel>
</rss>

