<?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: MODIFY OFFSET LISP in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/modify-offset-lisp/m-p/12775587#M13917</link>
    <description>&lt;P&gt;That's all doable.&amp;nbsp; [I have routines that do some of those things, but built-in rather than as options.]&amp;nbsp; Would I assume correctly that you also want it to maintain your Yes/No choice on whether to delete the original object(s)?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;[It should also be fixed to not have simply&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt; *LINE &lt;/STRONG&gt;&lt;/FONT&gt;in the object-type entry in the (ssget) filter.&amp;nbsp; That allows selection of MLINE and &lt;EM&gt;3D&lt;/EM&gt; POLYLINE objects, which cannot be Offset, as well as the ones you want it to allow.]&lt;/P&gt;</description>
    <pubDate>Wed, 15 May 2024 17:57:01 GMT</pubDate>
    <dc:creator>Kent1Cooper</dc:creator>
    <dc:date>2024-05-15T17:57:01Z</dc:date>
    <item>
      <title>MODIFY OFFSET LISP</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/modify-offset-lisp/m-p/12775496#M13916</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi, I found this offset lisp but it needs a minor tweak. I want the lisp to maintain the specified offset distance(just as the regular OFFSET command) and also to allow me to select LAYER--&amp;gt; Enter layer option for offset object: Current or Source (just as the regular OFFSET COMMAND). These options will make it easier for me for the task am performing.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 15 May 2024 17:04:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/modify-offset-lisp/m-p/12775496#M13916</guid>
      <dc:creator>emersongonzalez1999</dc:creator>
      <dc:date>2024-05-15T17:04:29Z</dc:date>
    </item>
    <item>
      <title>Re: MODIFY OFFSET LISP</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/modify-offset-lisp/m-p/12775587#M13917</link>
      <description>&lt;P&gt;That's all doable.&amp;nbsp; [I have routines that do some of those things, but built-in rather than as options.]&amp;nbsp; Would I assume correctly that you also want it to maintain your Yes/No choice on whether to delete the original object(s)?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;[It should also be fixed to not have simply&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt; *LINE &lt;/STRONG&gt;&lt;/FONT&gt;in the object-type entry in the (ssget) filter.&amp;nbsp; That allows selection of MLINE and &lt;EM&gt;3D&lt;/EM&gt; POLYLINE objects, which cannot be Offset, as well as the ones you want it to allow.]&lt;/P&gt;</description>
      <pubDate>Wed, 15 May 2024 17:57:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/modify-offset-lisp/m-p/12775587#M13917</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2024-05-15T17:57:01Z</dc:date>
    </item>
    <item>
      <title>Re: MODIFY OFFSET LISP</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/modify-offset-lisp/m-p/12775623#M13918</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/10612207"&gt;@emersongonzalez1999&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I have a (very) old program I wrote called XOFFSET that provides dialog options for layer, color, etc.&lt;/P&gt;&lt;P&gt;Plus it can offset objects nested in a block or xref, and can offset polylines entirely or by selected segment, and can "clone" objects by using an offset of 0.&lt;/P&gt;&lt;P&gt;But I am bound by legal considerations to not be able to give it away.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="johnuhden_0-1715795932188.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1362697i2335860F80EEAFEB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="johnuhden_0-1715795932188.png" alt="johnuhden_0-1715795932188.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 May 2024 17:59:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/modify-offset-lisp/m-p/12775623#M13918</guid>
      <dc:creator>john.uhden</dc:creator>
      <dc:date>2024-05-15T17:59:56Z</dc:date>
    </item>
    <item>
      <title>Re: MODIFY OFFSET LISP</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/modify-offset-lisp/m-p/12775687#M13919</link>
      <description>&lt;P&gt;hi there,&lt;/P&gt;&lt;P&gt;it's done)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="lisp"&gt;(defun c:dOff ( / *error* of ofs undo doc ss flg layer)
 (vl-load-com)
  (if (null of_saved) (setq of_saved 10.0))
  (if (null layer_saved) (setq layer_saved "Source"))
  (if (null flg_saved) (setq flg_saved "No"))
(defun *error* ( msg )
   (and undo (vla-EndUndomark doc))
   (or (wcmatch (strcase msg) "*BREAK,*CANCEL*,*EXIT*")
       (princ (strcat "\n** Error: " msg " **")))
   (princ)
  )
(if (ssget '((0 . "ARC,CIRCLE,ELLIPSE,*LINE")))
   (progn
     (if (null (setq of (getdist (strcat "\nSpecify Offset Distance &amp;lt;" (rtos of_saved) "&amp;gt;: "))))
	(setq of of_saved)
	(setq of_saved of)
     )
     (initget "Yes No")
     (if (null (setq flg (getkword (strcat "\nDelete Original? [Yes/No] &amp;lt;" flg_saved "&amp;gt;: "))))
       (setq flg flg_saved)
       (setq flg_saved flg)
     )
     (initget "Source Current")
     (if (null (setq layer (getkword (strcat "\nLayer for offset? [Source/Current] &amp;lt;" layer_saved "&amp;gt;: "))))
       (setq layer layer_saved)
       (setq layer_saved layer)
     )
     (setq undo
       (not
         (vla-StartUndomark
           (setq doc
             (vla-get-ActiveDocument
               (vlax-get-acad-object)
             )
           )
         )
       )
     )
     
     (vlax-for obj (setq ss (vla-get-ActiveSelectionSet doc))
       (mapcar
         (function
           (lambda ( o )
             (setq ofs (vl-catch-all-apply
               (function vla-offset) (list obj o)
             ))
	     (if (and (null (vl-catch-all-error-p ofs))
		      (= "Current" layer)
		      (/= (getvar 'clayer) (vla-get-layer obj))
		 )
	       	(mapcar '(lambda (object) (vla-put-layer object (getvar 'clayer)))
			 (vlax-safearray-&amp;gt;list (vlax-variant-value ofs))
		)
	      )
           )
         )
         (list of (- of))
       )
       (if (= flg "Yes") (vla-delete obj))
     )
     
     (vla-delete ss)
(setq undo (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;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 May 2024 07:41:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/modify-offset-lisp/m-p/12775687#M13919</guid>
      <dc:creator>komondormrex</dc:creator>
      <dc:date>2024-05-16T07:41:33Z</dc:date>
    </item>
    <item>
      <title>Re: MODIFY OFFSET LISP</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/modify-offset-lisp/m-p/12776487#M13920</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/69526"&gt;@Kent1Cooper&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3930636"&gt;@john.uhden&lt;/a&gt;&amp;nbsp;but&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/13423916"&gt;@komondormrex&lt;/a&gt;&amp;nbsp;has my solutions.&lt;/P&gt;</description>
      <pubDate>Thu, 16 May 2024 02:07:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/modify-offset-lisp/m-p/12776487#M13920</guid>
      <dc:creator>emersongonzalez1999</dc:creator>
      <dc:date>2024-05-16T02:07:16Z</dc:date>
    </item>
    <item>
      <title>Re: MODIFY OFFSET LISP</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/modify-offset-lisp/m-p/12777037#M13921</link>
      <description>&lt;P&gt;What about a front end. This is not finished needs some tidying up. Dinner time any one else can tidy up.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SeaHaven_0-1715844809006.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1363082iD8ADD544623CB939/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SeaHaven_0-1715844809006.png" alt="SeaHaven_0-1715844809006.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;ddoffsAH : dialog {
	label ="Enter Values" ;
 : column {
spacer_1 ;
: edit_box {
 width =25;
    key = "key1";
	alignment = left;
 label = "Distance";
     edit_width = 8;
     edit_limit = 7;
   is_enabled = true ;
   allow_accept=true ;
   alignment = left;
    }
	spacer_1 ;
: boxed_row	{
width = 15 ;
label = "Keep or delete ";
	: radio_row	{
	: radio_button	{
key = "Rb1";
label = "Yes";
	}
spacer_1 ;
	: radio_button	{
key = "Rb2";
label = "No";
	}
	}
	}
spacer_1 ;
: edit_box {
    key = "key2";
 label = "Layer ";
     edit_width = 30;
     edit_limit = 29;
   is_enabled = true ;
   allow_accept=true ;
    }
    }
spacer_1 ;
ok_cancel;}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 May 2024 07:34:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/modify-offset-lisp/m-p/12777037#M13921</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2024-05-16T07:34:45Z</dc:date>
    </item>
    <item>
      <title>Re: MODIFY OFFSET LISP</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/modify-offset-lisp/m-p/12777617#M13922</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;[It should also be fixed to not have simply&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt; *LINE &lt;/STRONG&gt;&lt;/FONT&gt;in the object-type entry in the (ssget) filter.&amp;nbsp; That allows selection of MLINE and &lt;EM&gt;3D&lt;/EM&gt; POLYLINE objects, which cannot be Offset, as well as the ones you want it to allow.]&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;To find all &lt;STRONG&gt;OFFSET&lt;/STRONG&gt;table objects using&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;&lt;FONT color="#000000"&gt; *LINE&lt;/FONT&gt; &lt;/STRONG&gt;&lt;/FONT&gt;to cover&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;&lt;FONT color="#000000"&gt; LINE/SPLINE/*POLYLINE/XLINE&lt;/FONT&gt; &lt;/STRONG&gt;&lt;/FONT&gt;but omitting&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;&lt;FONT color="#000000"&gt; MLINE&lt;/FONT&gt; &lt;/STRONG&gt;&lt;/FONT&gt;&amp;amp;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;&lt;FONT color="#000000"&gt;&lt;EM&gt; 3D&lt;/EM&gt; Polyline&lt;/FONT&gt; &lt;/STRONG&gt;&lt;/FONT&gt;because they cannot be Offset at all, and in this case omitting&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;&lt;FONT color="#000000"&gt; RAY&lt;/FONT&gt; &lt;/STRONG&gt;&lt;/FONT&gt;because though they can be Offset,&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;&lt;FONT color="#000000"&gt; (vla-offset)&lt;/FONT&gt; &lt;/STRONG&gt;&lt;/FONT&gt;doesn't work on them:&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;    (setq YourSelectionSetVariable
      (ssget "_:L" ; only on unlocked Layer(s)
        '( ; filter list
          (0 . "*LINE,ARC,CIRCLE,ELLIPSE"); *LINE = Line/*Polyline/Spline/Xline/Mline
          (-4 . "&amp;lt;NOT"); forbid these [not Offsettable]
            (-4 . "&amp;lt;OR")
              (0 . "MLINE")
              (-4 . "&amp;lt;AND") (0 . "POLYLINE") (-4 . "&amp;amp;") (70 . 8) (-4 . "AND&amp;gt;"); 3D Polyline
            (-4 . "OR&amp;gt;")
          (-4 . "NOT&amp;gt;")
        ); filter list
      ); ssget
    ); setq&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 May 2024 11:47:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/modify-offset-lisp/m-p/12777617#M13922</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2024-05-16T11:47:44Z</dc:date>
    </item>
  </channel>
</rss>

