<?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: Flip an Object, which created with Offset in VBA Forum</title>
    <link>https://forums.autodesk.com/t5/vba-forum/flip-an-object-which-created-with-offset/m-p/8857497#M5458</link>
    <description>&lt;P&gt;it works, thank you very very very much!&lt;/P&gt;</description>
    <pubDate>Tue, 18 Jun 2019 11:51:34 GMT</pubDate>
    <dc:creator>erhan.lale</dc:creator>
    <dc:date>2019-06-18T11:51:34Z</dc:date>
    <item>
      <title>Flip an Object, which created with Offset</title>
      <link>https://forums.autodesk.com/t5/vba-forum/flip-an-object-which-created-with-offset/m-p/8855442#M5454</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i want to add offset to a poly line and flip horizontally (without moving) and explode.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But i have problem with object, which created with offset; Variable for offset is not a polyline, it is a variant.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Normal methods are not working with this object. I can not select the object, which created with offset. How can i create an object with offset and modify it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My code is here:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sub offset_and_flip()&lt;/P&gt;&lt;P&gt;' Create the polyline&lt;BR /&gt;Dim plineObj As AcadLWPolyline&lt;BR /&gt;Dim offsetObj As Variant&lt;BR /&gt;Dim points(0 To 7) As Double&lt;BR /&gt;points(0) = 0: points(1) = 0&lt;BR /&gt;points(2) = 0: points(3) = 2&lt;BR /&gt;points(4) = 2: points(5) = 2&lt;BR /&gt;points(6) = 4: points(7) = 0&lt;BR /&gt;&lt;BR /&gt;Set plineObj = ThisDrawing.ModelSpace.AddLightWeightPolyline(points)&lt;BR /&gt;plineObj.Closed = True&lt;BR /&gt;&lt;BR /&gt;' Define the mirror axis&lt;BR /&gt;Dim point1(0 To 2) As Double&lt;BR /&gt;Dim point2(0 To 2) As Double&lt;BR /&gt;point1(0) = 2: point1(1) = 3: point1(2) = 0&lt;BR /&gt;point2(0) = 2: point2(1) = 0: point2(2) = 0&lt;/P&gt;&lt;P&gt;'create offset&lt;BR /&gt;offsetObj = plineObj.Offset(-1)&lt;BR /&gt;&lt;BR /&gt;' i get error message, if i write offsetObj instead of plineObj&lt;BR /&gt;Dim mirrorObj As AcadLWPolyline&lt;BR /&gt;Set mirrorObj = plineObj.Mirror(point1, point2)&lt;BR /&gt;plineObj.Erase&lt;BR /&gt;mirrorObj.Explode&lt;BR /&gt;End Sub&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jun 2019 14:05:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/flip-an-object-which-created-with-offset/m-p/8855442#M5454</guid>
      <dc:creator>erhan.lale</dc:creator>
      <dc:date>2019-06-17T14:05:56Z</dc:date>
    </item>
    <item>
      <title>Re: Flip an Object, which created with Offset</title>
      <link>https://forums.autodesk.com/t5/vba-forum/flip-an-object-which-created-with-offset/m-p/8855491#M5455</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;FONT color="#333399"&gt;&amp;gt;&amp;gt; i want to add offset to a poly line and flip &lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;FONT color="#333399"&gt;&amp;gt;&amp;gt; horizontally (without moving)&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;That is what I get (screenshot and file attached), is that different to what you expect?&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="20190617_161631_0001.png" style="width: 361px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/647969i7A8644B01420569A/image-dimensions/361x217?v=v2" width="361" height="217" role="button" title="20190617_161631_0001.png" alt="20190617_161631_0001.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- alfred -&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jun 2019 14:17:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/flip-an-object-which-created-with-offset/m-p/8855491#M5455</guid>
      <dc:creator>Alfred.NESWADBA</dc:creator>
      <dc:date>2019-06-17T14:17:38Z</dc:date>
    </item>
    <item>
      <title>Re: Flip an Object, which created with Offset</title>
      <link>https://forums.autodesk.com/t5/vba-forum/flip-an-object-which-created-with-offset/m-p/8855817#M5456</link>
      <description>&lt;P&gt;I want to flip big object, but I can not do it.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jun 2019 16:33:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/flip-an-object-which-created-with-offset/m-p/8855817#M5456</guid>
      <dc:creator>erhan.lale</dc:creator>
      <dc:date>2019-06-17T16:33:30Z</dc:date>
    </item>
    <item>
      <title>Re: Flip an Object, which created with Offset</title>
      <link>https://forums.autodesk.com/t5/vba-forum/flip-an-object-which-created-with-offset/m-p/8855989#M5457</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;then change&lt;/P&gt;
&lt;PRE&gt;Set mirrorObj = &lt;FONT color="#FF6600"&gt;plineObj&lt;/FONT&gt;.Mirror(point1, point2)&lt;/PRE&gt;
&lt;P&gt;to&lt;/P&gt;
&lt;PRE&gt;Set mirrorObj = &lt;FONT color="#FF6600"&gt;offsetObj(0)&lt;/FONT&gt;.Mirror(point1, point2)&lt;/PRE&gt;
&lt;P&gt;For unknown results of offset you should first verify if elements were returned, and how many objects are returned (an offset of one polyline might result in many result items).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- alfred -&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jun 2019 17:56:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/flip-an-object-which-created-with-offset/m-p/8855989#M5457</guid>
      <dc:creator>Alfred.NESWADBA</dc:creator>
      <dc:date>2019-06-17T17:56:00Z</dc:date>
    </item>
    <item>
      <title>Re: Flip an Object, which created with Offset</title>
      <link>https://forums.autodesk.com/t5/vba-forum/flip-an-object-which-created-with-offset/m-p/8857497#M5458</link>
      <description>&lt;P&gt;it works, thank you very very very much!&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jun 2019 11:51:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/flip-an-object-which-created-with-offset/m-p/8857497#M5458</guid>
      <dc:creator>erhan.lale</dc:creator>
      <dc:date>2019-06-18T11:51:34Z</dc:date>
    </item>
  </channel>
</rss>

