<?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: selection set entities, specifically polylines &amp;amp; 3d polylines in ObjectARX Forum</title>
    <link>https://forums.autodesk.com/t5/objectarx-forum/selection-set-entities-specifically-polylines-amp-3d-polylines/m-p/3275403#M15237</link>
    <description>&lt;P&gt;specifically:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If oid.ObjectClass.Name.Equals("AcDbPolyline") Then&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dim pl As Polyline = TryCast(Tx.GetObject(oid, OpenMode.ForWrite), Polyline)&lt;/P&gt;&lt;P&gt;Dim acadPl As AcadLWPolyline = TryCast(pl.AcadObject, AcadLWPolyline)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;End If&lt;/P&gt;</description>
    <pubDate>Tue, 27 Dec 2011 23:35:45 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2011-12-27T23:35:45Z</dc:date>
    <item>
      <title>selection set entities, specifically polylines &amp; 3d polylines</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/selection-set-entities-specifically-polylines-amp-3d-polylines/m-p/3274597#M15230</link>
      <description>&lt;P&gt;new to VB.net, been using VBA for about 10 years. I have a VBA routine that I'm trying to covert to VB.net / objectARX, with some minor funcational refinments. I'd like the user to select polylines and/or 3d polylines &amp;amp; then my routine will do its things to these items that are in a selection set.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Things are working OK up to where I set my ENTITY type&amp;nbsp;variable from the objectID conversion&amp;nbsp;of the&amp;nbsp;ads name&amp;nbsp;of an item in the selection set.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to process the coordinates. I have tried various CAST implementations but none work. Can't cast&lt;/P&gt;&lt;P&gt;Autodesk.AutoCAD.DatabaseServices.Polyline to entity or acadentity or acadpolyline.&lt;/P&gt;&lt;P&gt;So how do I get the coordinates of a polyline (or a 3d polyline)?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Dec 2011 00:45:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/selection-set-entities-specifically-polylines-amp-3d-polylines/m-p/3274597#M15230</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-12-27T00:45:01Z</dc:date>
    </item>
    <item>
      <title>Re: selection set entities, specifically polylines &amp; 3d polylines</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/selection-set-entities-specifically-polylines-amp-3d-polylines/m-p/3274625#M15231</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;can you show a little bit of code, it's quite difficult to find a mistake someone did without seeing what he/she did. &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- alfred -&lt;/P&gt;</description>
      <pubDate>Tue, 27 Dec 2011 03:17:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/selection-set-entities-specifically-polylines-amp-3d-polylines/m-p/3274625#M15231</guid>
      <dc:creator>Alfred.NESWADBA</dc:creator>
      <dc:date>2011-12-27T03:17:05Z</dc:date>
    </item>
    <item>
      <title>Re: selection set entities, specifically polylines &amp; 3d polylines</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/selection-set-entities-specifically-polylines-amp-3d-polylines/m-p/3274645#M15232</link>
      <description>&lt;P&gt;Since I posted my question have have experimented more &amp;amp; after further investigation,it looks like I'm going to have to use the getpoint3dat method of the Autodesk.AutoCAD.DatabaseServices.Polyline which is the kind of thing I was trying to avoid, since I already have it all worked out in VBA, and was hoping to have to rewrite the whole thing. It looks like there is no way to get an ACADPOLYLINE object out of the GETSELECTION method of the editor.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;here is the incomplete code for the begining of my routine, hopefully ffrom this you can tell what is happening, if not I guess I'll post the whole thing. FYI, ACF is a class module with various autocad input functions &amp;amp; containers for objects&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Keep in mind I've been experimenting with different things to see what might work&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="1"&gt;&lt;FONT color="#0000ff" face="Consolas"&gt;&lt;FONT color="#0000ff" face="Consolas"&gt;&lt;FONT color="#0000ff" face="Consolas"&gt;Dim&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas"&gt;&lt;FONT face="Consolas"&gt; objObj &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Consolas"&gt;&lt;FONT color="#0000ff" face="Consolas"&gt;&lt;FONT color="#0000ff" face="Consolas"&gt;As&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Consolas"&gt;&lt;FONT color="#0000ff" face="Consolas"&gt;&lt;FONT color="#0000ff" face="Consolas"&gt;Object&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#008000" face="Consolas" size="1"&gt;&lt;FONT color="#008000" face="Consolas"&gt;&lt;FONT color="#008000" face="Consolas"&gt;'Dim PLObj As AcadLWPolyline&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#008000" face="Consolas" size="1"&gt;&lt;FONT color="#008000" face="Consolas"&gt;&lt;FONT color="#008000" face="Consolas"&gt;'Dim Plobj As AcadPolyline&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="1"&gt;&lt;FONT color="#0000ff" face="Consolas"&gt;&lt;FONT color="#0000ff" face="Consolas"&gt;&lt;FONT color="#0000ff" face="Consolas"&gt;Dim&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas"&gt;&lt;FONT face="Consolas"&gt; PlObj &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Consolas"&gt;&lt;FONT color="#0000ff" face="Consolas"&gt;&lt;FONT color="#0000ff" face="Consolas"&gt;As&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas"&gt;&lt;FONT face="Consolas"&gt; Autodesk.AutoCAD.DatabaseServices.&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#2b91af" face="Consolas"&gt;&lt;FONT color="#2b91af" face="Consolas"&gt;&lt;FONT color="#2b91af" face="Consolas"&gt;Polyline&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="1"&gt;&lt;FONT color="#0000ff" face="Consolas"&gt;&lt;FONT color="#0000ff" face="Consolas"&gt;&lt;FONT color="#0000ff" face="Consolas"&gt;Public&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Consolas"&gt;&lt;FONT color="#0000ff" face="Consolas"&gt;&lt;FONT color="#0000ff" face="Consolas"&gt;Sub&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas"&gt;&lt;FONT face="Consolas"&gt; vbREPL()&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="1"&gt;&lt;FONT color="#0000ff" face="Consolas"&gt;&lt;FONT color="#0000ff" face="Consolas"&gt;&lt;FONT color="#0000ff" face="Consolas"&gt;Dim&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas"&gt;&lt;FONT face="Consolas"&gt; entEntity &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Consolas"&gt;&lt;FONT color="#0000ff" face="Consolas"&gt;&lt;FONT color="#0000ff" face="Consolas"&gt;As&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#2b91af" face="Consolas"&gt;&lt;FONT color="#2b91af" face="Consolas"&gt;&lt;FONT color="#2b91af" face="Consolas"&gt;AcadEntity&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="1"&gt;&lt;FONT color="#0000ff" face="Consolas"&gt;&lt;FONT color="#0000ff" face="Consolas"&gt;&lt;FONT color="#0000ff" face="Consolas"&gt;Dim&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas"&gt;&lt;FONT face="Consolas"&gt; ent &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Consolas"&gt;&lt;FONT color="#0000ff" face="Consolas"&gt;&lt;FONT color="#0000ff" face="Consolas"&gt;As&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#2b91af" face="Consolas"&gt;&lt;FONT color="#2b91af" face="Consolas"&gt;&lt;FONT color="#2b91af" face="Consolas"&gt;Entity&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="1"&gt;&lt;FONT color="#0000ff" face="Consolas"&gt;&lt;FONT color="#0000ff" face="Consolas"&gt;&lt;FONT color="#0000ff" face="Consolas"&gt;Dim&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas"&gt;&lt;FONT face="Consolas"&gt; i &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Consolas"&gt;&lt;FONT color="#0000ff" face="Consolas"&gt;&lt;FONT color="#0000ff" face="Consolas"&gt;As&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Consolas"&gt;&lt;FONT color="#0000ff" face="Consolas"&gt;&lt;FONT color="#0000ff" face="Consolas"&gt;Integer&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="1"&gt;&lt;FONT color="#0000ff" face="Consolas"&gt;&lt;FONT color="#0000ff" face="Consolas"&gt;&lt;FONT color="#0000ff" face="Consolas"&gt;Dim&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas"&gt;&lt;FONT face="Consolas"&gt; J &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Consolas"&gt;&lt;FONT color="#0000ff" face="Consolas"&gt;&lt;FONT color="#0000ff" face="Consolas"&gt;As&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Consolas"&gt;&lt;FONT color="#0000ff" face="Consolas"&gt;&lt;FONT color="#0000ff" face="Consolas"&gt;Integer&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="1"&gt;&lt;FONT color="#0000ff" face="Consolas"&gt;&lt;FONT color="#0000ff" face="Consolas"&gt;&lt;FONT color="#0000ff" face="Consolas"&gt;Dim&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas"&gt;&lt;FONT face="Consolas"&gt; idArray &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Consolas"&gt;&lt;FONT color="#0000ff" face="Consolas"&gt;&lt;FONT color="#0000ff" face="Consolas"&gt;As&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#2b91af" face="Consolas"&gt;&lt;FONT color="#2b91af" face="Consolas"&gt;&lt;FONT color="#2b91af" face="Consolas"&gt;ObjectId&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas"&gt;&lt;FONT face="Consolas"&gt;()&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="1"&gt;&lt;FONT color="#0000ff" face="Consolas"&gt;&lt;FONT color="#0000ff" face="Consolas"&gt;&lt;FONT color="#0000ff" face="Consolas"&gt;Dim&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas"&gt;&lt;FONT face="Consolas"&gt; TransMan &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Consolas"&gt;&lt;FONT color="#0000ff" face="Consolas"&gt;&lt;FONT color="#0000ff" face="Consolas"&gt;As&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas"&gt;&lt;FONT face="Consolas"&gt; Autodesk.AutoCAD.DatabaseServices.&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#2b91af" face="Consolas"&gt;&lt;FONT color="#2b91af" face="Consolas"&gt;&lt;FONT color="#2b91af" face="Consolas"&gt;TransactionManager&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="1"&gt;&lt;FONT color="#0000ff" face="Consolas"&gt;&lt;FONT color="#0000ff" face="Consolas"&gt;&lt;FONT color="#0000ff" face="Consolas"&gt;Dim&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas"&gt;&lt;FONT face="Consolas"&gt; psResult &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Consolas"&gt;&lt;FONT color="#0000ff" face="Consolas"&gt;&lt;FONT color="#0000ff" face="Consolas"&gt;As&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#2b91af" face="Consolas"&gt;&lt;FONT color="#2b91af" face="Consolas"&gt;&lt;FONT color="#2b91af" face="Consolas"&gt;PromptSelectionResult&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="1"&gt;&lt;FONT color="#0000ff" face="Consolas"&gt;&lt;FONT color="#0000ff" face="Consolas"&gt;&lt;FONT color="#0000ff" face="Consolas"&gt;Dim&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas"&gt;&lt;FONT face="Consolas"&gt; tXaction &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Consolas"&gt;&lt;FONT color="#0000ff" face="Consolas"&gt;&lt;FONT color="#0000ff" face="Consolas"&gt;As&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#2b91af" face="Consolas"&gt;&lt;FONT color="#2b91af" face="Consolas"&gt;&lt;FONT color="#2b91af" face="Consolas"&gt;Transaction&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="1"&gt;&lt;FONT color="#0000ff" face="Consolas"&gt;&lt;FONT color="#0000ff" face="Consolas"&gt;&lt;FONT color="#0000ff" face="Consolas"&gt;Dim&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas"&gt;&lt;FONT face="Consolas"&gt; idId &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Consolas"&gt;&lt;FONT color="#0000ff" face="Consolas"&gt;&lt;FONT color="#0000ff" face="Consolas"&gt;As &lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#2b91af" face="Consolas"&gt;&lt;FONT color="#2b91af" face="Consolas"&gt;&lt;FONT color="#2b91af" face="Consolas"&gt;ObjectId&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="1"&gt;&lt;FONT color="#0000ff" face="Consolas"&gt;&lt;FONT color="#0000ff" face="Consolas"&gt;&lt;FONT color="#0000ff" face="Consolas"&gt;Dim&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas"&gt;&lt;FONT face="Consolas"&gt; entity &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Consolas"&gt;&lt;FONT color="#0000ff" face="Consolas"&gt;&lt;FONT color="#0000ff" face="Consolas"&gt;As &lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#2b91af" face="Consolas"&gt;&lt;FONT color="#2b91af" face="Consolas"&gt;&lt;FONT color="#2b91af" face="Consolas"&gt;Entity&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="1"&gt;&lt;FONT color="#2b91af" face="Consolas"&gt;&lt;FONT color="#2b91af" face="Consolas"&gt;&lt;FONT color="#2b91af" face="Consolas"&gt;﻿&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="1"&gt;&amp;nbsp;InitializeREPL()&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;FONT color="#008000"&gt;'sets strPrompt &amp;amp; DefaultSegments&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="1"&gt;&lt;FONT color="#0000ff" face="Consolas"&gt;&lt;FONT color="#0000ff" face="Consolas"&gt;&lt;FONT color="#0000ff" face="Consolas"&gt;If &lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#2b91af" face="Consolas"&gt;&lt;FONT color="#2b91af" face="Consolas"&gt;&lt;FONT color="#2b91af" face="Consolas"&gt;ACF&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas"&gt;&lt;FONT face="Consolas"&gt;.SsGetLwPlinesOr3dPolylines() = &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Consolas"&gt;&lt;FONT color="#0000ff" face="Consolas"&gt;&lt;FONT color="#0000ff" face="Consolas"&gt;True&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Consolas"&gt;&lt;FONT color="#0000ff" face="Consolas"&gt;&lt;FONT color="#0000ff" face="Consolas"&gt;Then&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas"&gt;&lt;FONT face="Consolas"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#008000" face="Consolas"&gt;&lt;FONT color="#008000" face="Consolas"&gt;&lt;FONT color="#008000" face="Consolas"&gt;'continue&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="1"&gt;&lt;FONT color="#0000ff" face="Consolas"&gt;&lt;FONT color="#0000ff" face="Consolas"&gt;&lt;FONT color="#0000ff" face="Consolas"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If &lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#2b91af" face="Consolas"&gt;&lt;FONT color="#2b91af" face="Consolas"&gt;&lt;FONT color="#2b91af" face="Consolas"&gt;ACF&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas"&gt;&lt;FONT face="Consolas"&gt;.GetIntFromUser(strPrompt, DefaultSegments) = &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Consolas"&gt;&lt;FONT color="#0000ff" face="Consolas"&gt;&lt;FONT color="#0000ff" face="Consolas"&gt;True&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Consolas"&gt;&lt;FONT color="#0000ff" face="Consolas"&gt;&lt;FONT color="#0000ff" face="Consolas"&gt;Then&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="1"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; X =&lt;/FONT&gt;&lt;FONT size="1"&gt;&lt;FONT color="#2b91af" face="Consolas"&gt;&lt;FONT color="#2b91af" face="Consolas"&gt;&lt;FONT color="#2b91af" face="Consolas"&gt;ACF&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas"&gt;&lt;FONT face="Consolas"&gt;.iResult&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Consolas" size="1"&gt;&lt;FONT color="#0000ff" face="Consolas"&gt;&lt;FONT color="#0000ff" face="Consolas"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Else&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Consolas" size="1"&gt;&lt;FONT color="#0000ff" face="Consolas"&gt;&lt;FONT color="#0000ff" face="Consolas"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Exit Sub&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="1"&gt;&lt;FONT color="#0000ff" face="Consolas"&gt;&lt;FONT color="#0000ff" face="Consolas"&gt;&lt;FONT color="#0000ff" face="Consolas"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Consolas"&gt;&lt;FONT color="#0000ff" face="Consolas"&gt;&lt;FONT color="#0000ff" face="Consolas"&gt;If&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="1"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; idArray =&lt;/FONT&gt;&lt;FONT size="1"&gt;&lt;FONT color="#2b91af" face="Consolas"&gt;&lt;FONT color="#2b91af" face="Consolas"&gt;&lt;FONT color="#2b91af" face="Consolas"&gt;ACF&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas"&gt;&lt;FONT face="Consolas"&gt;.ssResult.GetObjectIds()&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="1"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TransMan =&lt;/FONT&gt;&lt;FONT size="1"&gt;&lt;FONT color="#2b91af" face="Consolas"&gt;&lt;FONT color="#2b91af" face="Consolas"&gt;&lt;FONT color="#2b91af" face="Consolas"&gt;ACF&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas"&gt;&lt;FONT face="Consolas"&gt;.Db.TransactionManager&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#008000" face="Consolas"&gt;&lt;FONT color="#008000" face="Consolas"&gt;&lt;FONT color="#008000" face="Consolas"&gt;'start a transaction&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="1"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; tXaction = TransMan.StartTransaction()&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Consolas" size="1"&gt;&lt;FONT color="#0000ff" face="Consolas"&gt;&lt;FONT color="#0000ff" face="Consolas"&gt;Try&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="1"&gt;&lt;FONT color="#0000ff" face="Consolas"&gt;&lt;FONT color="#0000ff" face="Consolas"&gt;&lt;FONT color="#0000ff" face="Consolas"&gt;For&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Consolas"&gt;&lt;FONT color="#0000ff" face="Consolas"&gt;&lt;FONT color="#0000ff" face="Consolas"&gt;Each&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas"&gt;&lt;FONT face="Consolas"&gt; Id &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Consolas"&gt;&lt;FONT color="#0000ff" face="Consolas"&gt;&lt;FONT color="#0000ff" face="Consolas"&gt;In&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas"&gt;&lt;FONT face="Consolas"&gt; idArray&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="1"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; objObj = TransMan.GetObject(Id, &lt;/FONT&gt;&lt;FONT size="1"&gt;&lt;FONT color="#2b91af" face="Consolas"&gt;&lt;FONT color="#2b91af" face="Consolas"&gt;&lt;FONT color="#2b91af" face="Consolas"&gt;OpenMode&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas"&gt;&lt;FONT face="Consolas"&gt;.ForRead, &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Consolas"&gt;&lt;FONT color="#0000ff" face="Consolas"&gt;&lt;FONT color="#0000ff" face="Consolas"&gt;True&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas"&gt;&lt;FONT face="Consolas"&gt;)&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="1"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ent = &lt;/FONT&gt;&lt;FONT size="1"&gt;&lt;FONT color="#0000ff" face="Consolas"&gt;&lt;FONT color="#0000ff" face="Consolas"&gt;&lt;FONT color="#0000ff" face="Consolas"&gt;CType&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas"&gt;&lt;FONT face="Consolas"&gt;(objObj, Autodesk.AutoCAD.DatabaseServices.&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#2b91af" face="Consolas"&gt;&lt;FONT color="#2b91af" face="Consolas"&gt;&lt;FONT color="#2b91af" face="Consolas"&gt;Entity&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas"&gt;&lt;FONT face="Consolas"&gt;)&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#008000" face="Consolas" size="1"&gt;&lt;FONT color="#008000" face="Consolas"&gt;&lt;FONT color="#008000" face="Consolas"&gt;' If ent.ObjectName = "AcDbPolyline" Then&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#008000" face="Consolas" size="1"&gt;&lt;FONT color="#008000" face="Consolas"&gt;&lt;FONT color="#008000" face="Consolas"&gt;'If ent.GetType().FullName = "AcDbPolyline" Then&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="1"&gt;&lt;FONT color="#0000ff" face="Consolas"&gt;&lt;FONT color="#0000ff" face="Consolas"&gt;&lt;FONT color="#0000ff" face="Consolas"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas"&gt;&lt;FONT face="Consolas"&gt; ent.GetType().FullName = &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#a31515" face="Consolas"&gt;&lt;FONT color="#a31515" face="Consolas"&gt;&lt;FONT color="#a31515" face="Consolas"&gt;"Autodesk.AutoCAD.DatabaseServices.Polyline"&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Consolas"&gt;&lt;FONT color="#0000ff" face="Consolas"&gt;&lt;FONT color="#0000ff" face="Consolas"&gt;Then&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#008000" face="Consolas" size="1"&gt;&lt;FONT color="#008000" face="Consolas"&gt;&lt;FONT color="#008000" face="Consolas"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'entEntity = CType(ent, AcadEntity)&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="1"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Plobj = ent&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#008000" face="Consolas" size="1"&gt;&lt;FONT color="#008000" face="Consolas"&gt;&lt;FONT color="#008000" face="Consolas"&gt;' PLObj = Entry&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="1"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; varOrigPLpts = PlObj.Coordinates&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="1"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PLStPT(0) = varOrigPLpts(0)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="1"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PLStPT(1) = varOrigPLpts(1)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="1"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PLEndPT(0) = varOrigPLpts(UBound(varOrigPLpts) - 1)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="1"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PLEndPT(1) = varOrigPLpts(UBound(varOrigPLpts))&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="1"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; OrigPLptCount = -2&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="1"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; OrigElev = Plobj.Elevation&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="1"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; varPolyElms = Plobj.Explode&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Dec 2011 04:09:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/selection-set-entities-specifically-polylines-amp-3d-polylines/m-p/3274645#M15232</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-12-27T04:09:54Z</dc:date>
    </item>
    <item>
      <title>Re: selection set entities, specifically polylines &amp; 3d polylines</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/selection-set-entities-specifically-polylines-amp-3d-polylines/m-p/3274653#M15233</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you try this ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Polyline &lt;FONT size="2" color="#000000"&gt;pl = Tx.GetObject(oid, &lt;/FONT&gt;&lt;FONT size="2" color="#2b91af"&gt;&lt;FONT size="2" color="#2b91af"&gt;OpenMode&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" color="#000000"&gt;.ForWrite) &lt;/FONT&gt;&lt;FONT size="2" color="#0000ff"&gt;&lt;FONT size="2" color="#0000ff"&gt;as&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" color="#2b91af"&gt;&lt;FONT size="2" color="#2b91af"&gt;Polyline&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt;&lt;FONT size="2"&gt;&lt;FONT color="#000000"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2" color="#2b91af"&gt;&lt;FONT size="2" color="#2b91af"&gt;AcadLWPolyline&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt; acadPl = pl.AcadObject &lt;/FONT&gt;&lt;FONT size="2" color="#0000ff"&gt;&lt;FONT size="2" color="#0000ff"&gt;as&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" color="#2b91af"&gt;&lt;FONT size="2" color="#2b91af"&gt;AcadLWPolyline&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Dec 2011 05:17:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/selection-set-entities-specifically-polylines-amp-3d-polylines/m-p/3274653#M15233</guid>
      <dc:creator>Balaji_Ram</dc:creator>
      <dc:date>2011-12-27T05:17:43Z</dc:date>
    </item>
    <item>
      <title>Re: selection set entities, specifically polylines &amp; 3d polylines</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/selection-set-entities-specifically-polylines-amp-3d-polylines/m-p/3274655#M15234</link>
      <description>&lt;P&gt;Just thought of posting the whole code that I have been using which works ok :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&amp;lt;CommandMethod("Test")&amp;gt; _
Public Sub TestMethod()
	Dim activeDoc As Document = Autodesk.AutoCAD.ApplicationServices.Application.DocumentManager.MdiActiveDocument
	Dim ed As Editor = activeDoc.Editor
	Dim db As Database = HostApplicationServices.WorkingDatabase

	Dim pso As New PromptSelectionOptions()
	Dim psr As PromptSelectionResult = ed.GetSelection(pso)
	If psr.Status &amp;lt;&amp;gt; PromptStatus.OK Then
		Return
	End If

	Using Tx As Transaction = db.TransactionManager.StartTransaction()
		Dim entitites As New ObjectIdCollection(psr.Value.GetObjectIds())
		For Each oid As ObjectId In entitites
			If oid.ObjectClass.Name.Equals("AcDbPolyline") Then
				Dim pl As Polyline = TryCast(Tx.GetObject(oid, OpenMode.ForWrite), Polyline)
				Dim acadPl As AcadLWPolyline = TryCast(pl.AcadObject, AcadLWPolyline)
				Dim isClosed As Boolean = acadPl.Closed
			End If
		Next
		Tx.Commit()
	End Using
End Sub
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Dec 2011 05:23:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/selection-set-entities-specifically-polylines-amp-3d-polylines/m-p/3274655#M15234</guid>
      <dc:creator>Balaji_Ram</dc:creator>
      <dc:date>2011-12-27T05:23:05Z</dc:date>
    </item>
    <item>
      <title>Re: selection set entities, specifically polylines &amp; 3d polylines</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/selection-set-entities-specifically-polylines-amp-3d-polylines/m-p/3274719#M15235</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;to reproduce what happens to your code we see now what you are doing with objects in your selectionset, but you don't show how you do select objects (and how you set your filtering mechanism for building the selection):&lt;/P&gt;&lt;P&gt;So what happens within "&lt;FONT color="#666699" face="lucida sans unicode,lucida sans"&gt;InitializeREPL&lt;/FONT&gt;" and "&lt;FONT color="#666699" face="lucida sans unicode,lucida sans"&gt;ACF.SsGetLwPlinesOr3dPolylines&lt;/FONT&gt;"?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;FONT color="#666699"&gt;&amp;gt;&amp;gt; It looks like there is no way to get an ACADPOLYLINE object out of the GETSELECTION method of the editor.&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Of course, there are methods to get them. One option is to select all objects the user selects and while scanning through the objects within the selectionset.This is what Balaji showed in his second sample.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The other option is to define a filter before the user gets asked for selecting entities, define objecttypes to which the selection should get filtered .... and AutoCAD will select only entities that matches the filtering even if the user clicks other object types (they will not be highlighed during "Select Objects: ").&lt;/P&gt;&lt;P&gt;You can see a sample for filtering &lt;A href="http://forums.autodesk.com/t5/NET/Extract-quot-X-quot-amp-quot-Y-quot-coordinates-of-points-in/m-p/3269641#M26532" target="_self"&gt;&amp;gt;&amp;gt;&amp;gt;here&amp;lt;&amp;lt;&amp;lt;&lt;/A&gt;, just change:&lt;/P&gt;&lt;P&gt;&lt;FONT color="#666699" face="lucida sans unicode,lucida sans"&gt;&amp;nbsp;&amp;nbsp; New DatabaseServices.TypedValue(DatabaseServices.DxfCode.Start, "POINT")&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;to:&lt;/P&gt;&lt;P&gt;&lt;FONT color="#666699" face="lucida sans unicode,lucida sans"&gt;&amp;nbsp;&amp;nbsp; New DatabaseServices.TypedValue(DatabaseServices.DxfCode.Start, "*POLYLINE*")&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;to get all types of Polyline selected, or change it to:&lt;/P&gt;&lt;P&gt;&lt;FONT color="#666699" face="lucida sans unicode,lucida sans"&gt;&amp;nbsp;&amp;nbsp; New DatabaseServices.TypedValue(DatabaseServices.DxfCode.Start, "LWPOLYLINE,3DPOLYLINE")&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;to select only objects of type LWPolyline or 3DPolyline.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;HTH, - alfred -&lt;/P&gt;</description>
      <pubDate>Tue, 27 Dec 2011 07:30:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/selection-set-entities-specifically-polylines-amp-3d-polylines/m-p/3274719#M15235</guid>
      <dc:creator>Alfred.NESWADBA</dc:creator>
      <dc:date>2011-12-27T07:30:19Z</dc:date>
    </item>
    <item>
      <title>Re: selection set entities, specifically polylines &amp; 3d polylines</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/selection-set-entities-specifically-polylines-amp-3d-polylines/m-p/3275399#M15236</link>
      <description>&lt;P&gt;Balaji,&lt;/P&gt;&lt;P&gt;that worked.&lt;/P&gt;&lt;P&gt;thanks much&lt;/P&gt;</description>
      <pubDate>Tue, 27 Dec 2011 23:33:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/selection-set-entities-specifically-polylines-amp-3d-polylines/m-p/3275399#M15236</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-12-27T23:33:52Z</dc:date>
    </item>
    <item>
      <title>Re: selection set entities, specifically polylines &amp; 3d polylines</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/selection-set-entities-specifically-polylines-amp-3d-polylines/m-p/3275403#M15237</link>
      <description>&lt;P&gt;specifically:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If oid.ObjectClass.Name.Equals("AcDbPolyline") Then&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dim pl As Polyline = TryCast(Tx.GetObject(oid, OpenMode.ForWrite), Polyline)&lt;/P&gt;&lt;P&gt;Dim acadPl As AcadLWPolyline = TryCast(pl.AcadObject, AcadLWPolyline)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;End If&lt;/P&gt;</description>
      <pubDate>Tue, 27 Dec 2011 23:35:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/selection-set-entities-specifically-polylines-amp-3d-polylines/m-p/3275403#M15237</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-12-27T23:35:45Z</dc:date>
    </item>
    <item>
      <title>Re: selection set entities, specifically polylines &amp; 3d polylines</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/selection-set-entities-specifically-polylines-amp-3d-polylines/m-p/3275487#M15238</link>
      <description>&lt;P&gt;ok, onto the next problem:&lt;/P&gt;&lt;P&gt;attached are 2 classes. classACF contains general autocad interaction stuff, including one I'm having problems with called addlwpolyline.&lt;/P&gt;&lt;P&gt;classREPL cantains the main procedure I'm working on. Again, I'm converting a working VBA routine to VB.net &amp;amp; trying to keep as much of the original as possible.&lt;/P&gt;&lt;P&gt;classREPL references classACF.&lt;/P&gt;&lt;P&gt;REPL creates a new polyline(s) based on the one(s) selected, adding vertices based on how many the user wants. The new polyline only has straight segments.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is also a command called TESTADDPL defined in classACF. This calls the addlwpoly sub &amp;amp; it works.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if I select the polyline created from that within REPL ( as a simple test)&amp;nbsp;a new polyline is not drawn,the vertices check out as I'd except, but no new geometry on screen. Of course I tried polylines that I drew in autocad before running the REPL command, with the same result.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I get no errors.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;do I have too many transactions open?&lt;/P&gt;&lt;P&gt;should the transaction at the end of REPL DISPOSE? (tX.Dispose())&lt;/P&gt;&lt;P&gt;is the problem the fact that there already is a polyline occupying that space? (shouldn't be)&lt;/P&gt;&lt;P&gt;I'm I not calling some addition database and/or blockrecordtable methods to get the new polylilne to appear?&lt;/P&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Dec 2011 04:06:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/selection-set-entities-specifically-polylines-amp-3d-polylines/m-p/3275487#M15238</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-12-28T04:06:58Z</dc:date>
    </item>
    <item>
      <title>Re: selection set entities, specifically polylines &amp; 3d polylines</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/selection-set-entities-specifically-polylines-amp-3d-polylines/m-p/3275865#M15239</link>
      <description>&lt;P&gt;OK, I figured it out. the transaction DSIPOSE&amp;nbsp;&amp;nbsp;w/in the REPL procedure had to be moved&amp;nbsp;so that&amp;nbsp;transaction ends&amp;nbsp;before the call to the addlwpolyline sub with has its own transaction begin &amp;amp; end.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Dec 2011 14:49:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/selection-set-entities-specifically-polylines-amp-3d-polylines/m-p/3275865#M15239</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-12-28T14:49:37Z</dc:date>
    </item>
  </channel>
</rss>

