<?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>tema Re: Multipe offset button en AutoCAD Forum</title>
    <link>https://forums.autodesk.com/t5/autocad-forum/multipe-offset-button/m-p/10558616#M1059665</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;is that what you are looking for?&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;^C^C_OFFSET;20;\_MULTIPLE;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- alfred -&lt;/P&gt;</description>
    <pubDate>Thu, 19 Aug 2021 16:40:20 GMT</pubDate>
    <dc:creator>Alfred.NESWADBA</dc:creator>
    <dc:date>2021-08-19T16:40:20Z</dc:date>
    <item>
      <title>Multipe offset button</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/multipe-offset-button/m-p/10558522#M1059662</link>
      <description>&lt;P&gt;Hello!&lt;BR /&gt;First of all, i want to creeat a button who can offset a polyline (selected by user) one the left side (10,20) and the same on the right side.&lt;BR /&gt;I try "^C^C_OFFSET;;\;Multiple;;20;" but is something wrong about defining the side and i don 'know how to do this ...&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="kina_waly_0-1629388380309.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/954898i08011AEE5AAEE271/image-size/medium?v=v2&amp;amp;px=400" role="button" title="kina_waly_0-1629388380309.png" alt="kina_waly_0-1629388380309.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This is what i want, but first i need to manage this problem...&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="kina_waly_1-1629388983450.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/954904i755128B8ACA16112/image-size/medium?v=v2&amp;amp;px=400" role="button" title="kina_waly_1-1629388983450.png" alt="kina_waly_1-1629388983450.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Aug 2021 16:04:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/multipe-offset-button/m-p/10558522#M1059662</guid>
      <dc:creator>kina_86</dc:creator>
      <dc:date>2021-08-19T16:04:44Z</dc:date>
    </item>
    <item>
      <title>Re: Multipe offset button</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/multipe-offset-button/m-p/10558616#M1059665</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;is that what you are looking for?&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;^C^C_OFFSET;20;\_MULTIPLE;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- alfred -&lt;/P&gt;</description>
      <pubDate>Thu, 19 Aug 2021 16:40:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/multipe-offset-button/m-p/10558616#M1059665</guid>
      <dc:creator>Alfred.NESWADBA</dc:creator>
      <dc:date>2021-08-19T16:40:20Z</dc:date>
    </item>
    <item>
      <title>Re: Multipe offset button</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/multipe-offset-button/m-p/10558670#M1059668</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/11215992"&gt;@kina_86&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;.... i want to creeat a button who can offset a polyline (selected by user) one the left side (10,20) and the same on the right side.&lt;BR /&gt;....&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Will &lt;A href="https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/to-creat-a-lisp/m-p/5437236/highlight/true#M328194" target="_blank" rel="noopener"&gt;&amp;gt;this&amp;lt;&lt;/A&gt; do it for you?&amp;nbsp; [Not if you use LT.&amp;nbsp; If you don't, you could have OffsetBothSides.lsp loaded automatically, and your button could contain just its &lt;FONT face="arial,helvetica,sans-serif" color="#000000"&gt;OBS&lt;/FONT&gt; command name.]&lt;/P&gt;</description>
      <pubDate>Thu, 19 Aug 2021 16:59:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/multipe-offset-button/m-p/10558670#M1059668</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2021-08-19T16:59:07Z</dc:date>
    </item>
    <item>
      <title>Re: Multipe offset button</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/multipe-offset-button/m-p/10558833#M1059674</link>
      <description>&lt;P&gt;This macro work for multiple offsets with 20(only), i want to run command offset, select one single time my polyline and after that to do automaticaly offsets (10;20;-10;-20) without any selection of side, or distance...&lt;/P&gt;&lt;P&gt;Maybe this video make you to see what i want to do (of course without fillet and text).&lt;/P&gt;&lt;P&gt;&lt;A href="https://knowledge.autodesk.com/support/autocad/learn-explore/caas/screencast/Main/Details/4cc12a75-db80-40aa-8b22-72eb6cff10cc.html" target="_blank"&gt;https://knowledge.autodesk.com/support/autocad/learn-explore/caas/screencast/Main/Details/4cc12a75-db80-40aa-8b22-72eb6cff10cc.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Aug 2021 17:59:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/multipe-offset-button/m-p/10558833#M1059674</guid>
      <dc:creator>kina_86</dc:creator>
      <dc:date>2021-08-19T17:59:09Z</dc:date>
    </item>
    <item>
      <title>Re: Multipe offset button</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/multipe-offset-button/m-p/10559038#M1059683</link>
      <description>&lt;P&gt;Perhaps like this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;^C^C_OFFSET;10;\_MULTIPLE;\@;\@;;;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Select your polyline, pick one side far enough, then the other side.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Aug 2021 19:18:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/multipe-offset-button/m-p/10559038#M1059683</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2021-08-19T19:18:00Z</dc:date>
    </item>
    <item>
      <title>Re: Multipe offset button</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/multipe-offset-button/m-p/10559141#M1059686</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/11215992"&gt;@kina_86&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;.... i want to run command offset, select one single time my polyline and after that to do automaticaly offsets (10;20;-10;-20) without any selection of side, or distance. .....&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;A modification and simplification of my earlier linked routine:&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;;;  OffsetBothSides1020.lsp [command name: OBS1020]
;;  To Offset the same object to Both Sides at both 10 &amp;amp; 20 units.
;;  Kent Cooper, 19 August 2021
(defun C:OBS1020 (/ obj); = Offset to Both Sides 10 &amp;amp; 20 units
  (while (setq ent (car (entsel "\nSelect object to Offset to Both Sides [Esc to exit]: ")))
    (setq obj (vlax-ename-&amp;gt;vla-object ent))
    (vla-offset obj 10)
    (vla-offset obj 20)
    (vla-offset obj -10)
    (vla-offset obj -20)
  ); end while
  (princ)
); defun
(prompt "Type OBS1020 to Offset to Both Sides by 10 &amp;amp; 20 units.")&lt;/LI-CODE&gt;
&lt;P&gt;It could be expanded to put the results on different Layers, to verify that you picked the right kind of thing, to ask again if you miss, to wrap the whole in Undo begin/end, and all the other usual enhancements.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Aug 2021 20:11:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/multipe-offset-button/m-p/10559141#M1059686</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2021-08-19T20:11:42Z</dc:date>
    </item>
    <item>
      <title>Re: Multipe offset button</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/multipe-offset-button/m-p/10561629#M1059791</link>
      <description>&lt;P&gt;I would like to be without a lisp, but is ok... Now i set my botton to automatically load this lisp.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Aug 2021 18:47:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/multipe-offset-button/m-p/10561629#M1059791</guid>
      <dc:creator>kina_86</dc:creator>
      <dc:date>2021-08-20T18:47:44Z</dc:date>
    </item>
    <item>
      <title>Re: Multipe offset button</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/multipe-offset-button/m-p/10561788#M1059796</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/11215992"&gt;@kina_86&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I would like to be without a lisp, but is ok... Now i set my botton to automatically load this lisp.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;With a pure non-AutoLisp macro, you described the problem from the start -- defining the side to Offset to in a way that's guaranteed to get you the desired sides in all conditions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the idea is that you want to be able to use a Tool Palette button but &lt;EM&gt;not&lt;/EM&gt; have to load an external file to define a command, and &lt;EM&gt;not&lt;/EM&gt; that you have any objection to AutoLisp code being used in the button macro, you can do this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" color="#000000"&gt;*^C^C(setq ent (car (entsel "Pick: "))) \(foreach d '(10 20 -10 -20) (vla-offset (vlax-ename-&amp;gt;vla-object ent) d))&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;or&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" color="#000000"&gt; (while (setq ent (car (entsel "Pick: "))) (foreach d '(10 20 -10 -20) (vla-offset (vlax-ename-&amp;gt;vla-object ent) d)))&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Not all AutoLisp functions can be used in command macros, but enough of them work to do that.&amp;nbsp; You can expand on the prompt part if you like.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Both worked for me in limited testing -- they just have different ways of repeating automatically.&amp;nbsp; It doesn't seem possible to suppress the (setq) function at the command line [yes, I tried the ^P thing], which is a visual disadvantage over the command-definition approach.&amp;nbsp; [I prefer the first one, which ends more cleanly with Escape.]&lt;/P&gt;</description>
      <pubDate>Fri, 20 Aug 2021 20:02:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/multipe-offset-button/m-p/10561788#M1059796</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2021-08-20T20:02:25Z</dc:date>
    </item>
    <item>
      <title>Re: Multipe offset button</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/multipe-offset-button/m-p/10561875#M1059800</link>
      <description>&lt;P&gt;Or this way.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;^C^C^P((lambda (/ o d) (vl-load-com) (while (setq o (car (entsel))) (setq o (vlax-ename-&amp;gt;vla-object o)) (foreach d '(-20 -10 10 20) (vla-offset o d)) (princ))))&lt;/P&gt;</description>
      <pubDate>Fri, 20 Aug 2021 20:38:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/multipe-offset-button/m-p/10561875#M1059800</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2021-08-20T20:38:11Z</dc:date>
    </item>
    <item>
      <title>Re: Multipe offset button</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/multipe-offset-button/m-p/10561908#M1059801</link>
      <description>&lt;P&gt;Thank you both, one last question where i can find more information about this "coding language"?&lt;/P&gt;</description>
      <pubDate>Fri, 20 Aug 2021 20:51:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/multipe-offset-button/m-p/10561908#M1059801</guid>
      <dc:creator>kina_86</dc:creator>
      <dc:date>2021-08-20T20:51:20Z</dc:date>
    </item>
    <item>
      <title>Re: Multipe offset button</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/multipe-offset-button/m-p/10561974#M1059804</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/11215992"&gt;@kina_86&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Thank you both, one last question where i can find more information about this "coding language"?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Search the &lt;A href="https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/bd-p/130" target="_blank" rel="noopener"&gt;&amp;gt;Customization Forum&amp;lt;&lt;/A&gt; for terms like "learn AutoLisp" [or with just "Lisp", since a lot of people refer to it that way] and "Lisp tutorials" and similar wordings.&amp;nbsp; And there's an entire &lt;A href="https://help.autodesk.com/view/ACD/2022/ENU/?guid=GUID-4CEE5072-8817-4920-8A2D-7060F5E16547" target="_blank" rel="noopener"&gt;&amp;gt;AutoLisp Reference&amp;lt;&lt;/A&gt; in which you can look up functions and see what arguments they take, what they return, etc.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Aug 2021 21:30:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/multipe-offset-button/m-p/10561974#M1059804</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2021-08-20T21:30:39Z</dc:date>
    </item>
    <item>
      <title>Re: Multipe offset button</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/multipe-offset-button/m-p/10563232#M1059823</link>
      <description>&lt;P&gt;Version with layers.&lt;/P&gt;
&lt;P&gt;((lambda (/ o d l) (vl-load-com) (setq l (vla-get-layers (vla-get-activedocument (vlax-get-acad-object)))) (while (setq o (car (entsel))) (setq o (vlax-ename-&amp;gt;vla-object o)) (foreach d '((-20 . "Layer1") (-10 . "Layer2") (10 . "Layer2") (20 . "Layer1")) (vla-add l (cdr d)) (vla-put-layer (car (vlax-invoke o 'Offset (car d))) (cdr d))) (princ))))&lt;/P&gt;</description>
      <pubDate>Sat, 21 Aug 2021 16:26:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/multipe-offset-button/m-p/10563232#M1059823</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2021-08-21T16:26:05Z</dc:date>
    </item>
  </channel>
</rss>

