<?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: Offset multiple objects in the same layer at once? Or in general, is it possible to apply a command to every object in their layer at once? in AutoCAD Forum</title>
    <link>https://forums.autodesk.com/t5/autocad-forum/offset-multiple-objects-in-the-same-layer-at-once-or-in-general/m-p/13292812#M58475</link>
    <description>&lt;P&gt;Thank you so much! It worked very well for my purpose.&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":handshake:"&gt;🤝&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 31 Jan 2025 12:27:24 GMT</pubDate>
    <dc:creator>gianfrancolongo01</dc:creator>
    <dc:date>2025-01-31T12:27:24Z</dc:date>
    <item>
      <title>Offset multiple objects in the same layer at once? Or in general, is it possible to apply a command to every object in their layer at once?</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/offset-multiple-objects-in-the-same-layer-at-once-or-in-general/m-p/11118247#M58465</link>
      <description>&lt;P&gt;Title says it all. Basically, I have an alignment that I want to offset. It is composed of three different layers for curves, transitions, and straights. I want to offset each of these by chosen amounts. Can I offset multiple objects in the same layer at once?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;</description>
      <pubDate>Thu, 21 Apr 2022 02:11:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/offset-multiple-objects-in-the-same-layer-at-once-or-in-general/m-p/11118247#M58465</guid>
      <dc:creator>Mylo.Wilson9SSEG</dc:creator>
      <dc:date>2022-04-21T02:11:05Z</dc:date>
    </item>
    <item>
      <title>Re: Offset multiple objects in the same layer at once? Or in general, is it possible to apply a command to every object in their layer at once?</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/offset-multiple-objects-in-the-same-layer-at-once-or-in-general/m-p/11118849#M58466</link>
      <description>&lt;P&gt;certainly you can't do that, but you may find a lisp files to do this step partly.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Apr 2022 08:51:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/offset-multiple-objects-in-the-same-layer-at-once-or-in-general/m-p/11118849#M58466</guid>
      <dc:creator>jamalflash</dc:creator>
      <dc:date>2022-04-21T08:51:35Z</dc:date>
    </item>
    <item>
      <title>Re: Offset multiple objects in the same layer at once? Or in general, is it possible to apply a command to every object in their layer at once?</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/offset-multiple-objects-in-the-same-layer-at-once-or-in-general/m-p/11119315#M58467</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;gt;&amp;gt;&amp;nbsp;&lt;FONT color="#999999"&gt;&lt;EM&gt;Can I offset multiple objects in the same layer at once?&amp;nbsp;&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;Not applicable ..&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Apr 2022 12:14:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/offset-multiple-objects-in-the-same-layer-at-once-or-in-general/m-p/11119315#M58467</guid>
      <dc:creator>imadHabash</dc:creator>
      <dc:date>2022-04-21T12:14:29Z</dc:date>
    </item>
    <item>
      <title>Re: Offset multiple objects in the same layer at once? Or in general, is it possible to apply a command to every object in their layer at once?</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/offset-multiple-objects-in-the-same-layer-at-once-or-in-general/m-p/11119432#M58468</link>
      <description>&lt;P&gt;Here I have a simple LISP that will offset multiple objects.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The all layer selection could be done using the SelectSimilar command - simple enough.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;(vl-load-com)

(defun c:OffsetMultiple ( / s d a i e p r)

  (if (and (setq s (ssget "_:L" '((0 . "LINE,LWPOLYLINE,ARC"))))
	   (setq d (getdist "\nSpecify offset  distance: "))
	   (not (initget "Left"))
	   (setq a (* pi (if (getkword "\nSpecify side [Left] &amp;lt;right&amp;gt;: ")
			   0.5
			   1.5)))
	   )
    (repeat (setq i (sslength s))
      (setq e (ssname s (setq i (1- i))))
      (setq p (vlax-curve-getstartpoint e))
      (setq r (polar p (+ a (angle '(0 0 0) (vlax-curve-getFirstDeriv e (vlax-curve-getstartparam e)))) 1.))
      (command "_.offset" d e (trans r 0 1) "")))
  (princ)
  )
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Apr 2022 13:07:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/offset-multiple-objects-in-the-same-layer-at-once-or-in-general/m-p/11119432#M58468</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2022-04-21T13:07:01Z</dc:date>
    </item>
    <item>
      <title>Re: Offset multiple objects in the same layer at once? Or in general, is it possible to apply a command to every object in their layer at once?</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/offset-multiple-objects-in-the-same-layer-at-once-or-in-general/m-p/11119539#M58469</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/12359391"&gt;@Mylo.Wilson9SSEG&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;.... I have an alignment that I want to offset. It is composed of three different layers for curves, transitions, and straights. I want to offset each of these by chosen amounts. Can I offset multiple objects in the same layer at once? ....&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Welcome to these Forums!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"Alignment" is not a kind of object in plain AutoCAD.&amp;nbsp; If an "alignment" is a specialty object under something like the Civil3D or Map overlay programs, you could ask at the Forum dedicated to that software.&amp;nbsp; If you mean something else in native AutoCAD object types, describe it again -- what kind(s) of objects [Lines? Arcs? Polylines? Ellipses? Splines?], etc.&amp;nbsp; I'm especially curious about what "transitions" are if they are not either "curves" or "straights."&amp;nbsp; A small sample drawing would answer many questions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The difficulty in multiple-object Offset is to determine &lt;STRONG&gt;to which side&lt;/STRONG&gt; a given object needs to be Offset [unless you want to go both ways].&amp;nbsp; If "curves, transitions, and straights" are all on different Layers, then presumably things are not in collective objects [such as Polylines] that can be Offset in their entirety.&amp;nbsp; Offsetting in an automated way [including &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1779365"&gt;@ВeekeeCZ&lt;/a&gt;&amp;nbsp;'s suggestion above] is almost sure to Offset some of those pieces in the opposite direction from others whose ends they touch, depending on the drawn direction of each piece, so you would need to pin down some criteria for deciding the directions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It's possible something like this already exists that you could Search for in 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;.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Apr 2022 13:42:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/offset-multiple-objects-in-the-same-layer-at-once-or-in-general/m-p/11119539#M58469</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2022-04-21T13:42:17Z</dc:date>
    </item>
    <item>
      <title>Re: Offset multiple objects in the same layer at once? Or in general, is it possible to apply a command to every object in their layer at once?</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/offset-multiple-objects-in-the-same-layer-at-once-or-in-general/m-p/11120494#M58470</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;The difficulty in multiple-object Offset is to determine &lt;STRONG&gt;to which side&lt;/STRONG&gt; a given object needs to be Offset ....&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;But if you have control over that problem [you know all the things you want to Offset were drawn in the same direction, you know what that is, etc.], here's a really comprehensive routine -- &lt;STRONG&gt;OffsetMultObj.lsp&lt;/STRONG&gt; with its &lt;STRONG&gt;OM&lt;/STRONG&gt; command -- to &lt;STRONG&gt;O&lt;/STRONG&gt;ffset &lt;STRONG&gt;M&lt;/STRONG&gt;ultiple Objects by the same distance to the same side [Left vs. Right] for each.&amp;nbsp; It accepts any object type that is Offsettable, remembers your choices, and so on -- see the comments at the top and some within the code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I discovered some interesting little things in the process:&lt;/P&gt;
&lt;P&gt;You can't use (vla-offset) on a Ray, though they are Offsettable with the command; but you can on an Xline, which I would have thought would be handled similarly to a Ray.&lt;/P&gt;
&lt;P&gt;It is possible for the Offset command's distance value to be set to 0 [but this command doesn't allow it].&lt;/P&gt;
&lt;P&gt;A positive value in (vla-offset) goes to the &lt;STRONG&gt;Left&lt;/STRONG&gt; for Lines and Xlines, but to the &lt;STRONG&gt;Right&lt;/STRONG&gt; for other things.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Apr 2022 20:21:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/offset-multiple-objects-in-the-same-layer-at-once-or-in-general/m-p/11120494#M58470</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2022-04-21T20:21:34Z</dc:date>
    </item>
    <item>
      <title>Re: Offset multiple objects in the same layer at once? Or in general, is it possible to apply a command to every object in their layer at once?</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/offset-multiple-objects-in-the-same-layer-at-once-or-in-general/m-p/11988052#M58471</link>
      <description>&lt;P&gt;Great lisp! been using it a lot!, is there a possibility to erase the original object after the offset is done?&lt;/P&gt;</description>
      <pubDate>Thu, 25 May 2023 08:16:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/offset-multiple-objects-in-the-same-layer-at-once-or-in-general/m-p/11988052#M58471</guid>
      <dc:creator>IdanGorali</dc:creator>
      <dc:date>2023-05-25T08:16:48Z</dc:date>
    </item>
    <item>
      <title>Re: Offset multiple objects in the same layer at once? Or in general, is it possible to apply a command to every object in their layer at once?</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/offset-multiple-objects-in-the-same-layer-at-once-or-in-general/m-p/11988627#M58472</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/10546857"&gt;@IdanGorali&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;... is there a possibility to erase the original object after the offset is done?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;If you have the Offset command set to Erase the source object, then that will happen in this command to &lt;EM&gt;Rays&lt;/EM&gt;, since [because (vla-offset) doesn't work on them] it uses an Offset &lt;EM&gt;command&lt;/EM&gt; on those, and so honors that setting.&amp;nbsp; That could be built into the command function for them.&amp;nbsp; If it's not currently set that way, should that state be restored afterwards?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But (vla-offset) used on everything else does &lt;EM&gt;not&lt;/EM&gt; honor that setting.&amp;nbsp; If a simple (vla-delete) on the source object were included, it would cause an error with Rays, since the Offset command would have removed the source.&amp;nbsp; So I think (vla-delete) would need another check on entity type, or be included only in the other-than-Ray operation, but coordinated into the check on whether it could Offset an object inward by the specified distance.&amp;nbsp; For things not Offsettable inward like that, would you want the source object deleted, or [my guess] kept?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm sure it's doable -- I just need to work it out, subject to answers to the two questions above.&lt;/P&gt;</description>
      <pubDate>Thu, 25 May 2023 12:56:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/offset-multiple-objects-in-the-same-layer-at-once-or-in-general/m-p/11988627#M58472</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2023-05-25T12:56:34Z</dc:date>
    </item>
    <item>
      <title>Re: Offset multiple objects in the same layer at once? Or in general, is it possible to apply a command to every object in their layer at once?</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/offset-multiple-objects-in-the-same-layer-at-once-or-in-general/m-p/11993677#M58473</link>
      <description>&lt;P&gt;1. I admit i do not use Rays, but i assume that if the Offset command isn't set to erase that it should be reset after the use of the lisp.&lt;/P&gt;&lt;P&gt;2. I would like to keep the original if it is impossible to offset the desired distance, or better, have an option to set whether to erase in this case or not.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much!&lt;/P&gt;</description>
      <pubDate>Sat, 27 May 2023 20:23:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/offset-multiple-objects-in-the-same-layer-at-once-or-in-general/m-p/11993677#M58473</guid>
      <dc:creator>IdanGorali</dc:creator>
      <dc:date>2023-05-27T20:23:19Z</dc:date>
    </item>
    <item>
      <title>Re: Offset multiple objects in the same layer at once? Or in general, is it possible to apply a command to every object in their layer at once?</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/offset-multiple-objects-in-the-same-layer-at-once-or-in-general/m-p/12771495#M58474</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This lisp works great to offset polylines, but I was wondering about how I could implement the delete source feature. Is it possible with plines and this lisp? The offset I am doing is outward (right in the lisp command).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks you&lt;/P&gt;</description>
      <pubDate>Tue, 14 May 2024 08:06:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/offset-multiple-objects-in-the-same-layer-at-once-or-in-general/m-p/12771495#M58474</guid>
      <dc:creator>daniel_A8GD7</dc:creator>
      <dc:date>2024-05-14T08:06:19Z</dc:date>
    </item>
    <item>
      <title>Re: Offset multiple objects in the same layer at once? Or in general, is it possible to apply a command to every object in their layer at once?</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/offset-multiple-objects-in-the-same-layer-at-once-or-in-general/m-p/13292812#M58475</link>
      <description>&lt;P&gt;Thank you so much! It worked very well for my purpose.&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":handshake:"&gt;🤝&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 31 Jan 2025 12:27:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/offset-multiple-objects-in-the-same-layer-at-once-or-in-general/m-p/13292812#M58475</guid>
      <dc:creator>gianfrancolongo01</dc:creator>
      <dc:date>2025-01-31T12:27:24Z</dc:date>
    </item>
  </channel>
</rss>

