<?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: Safe way to test if a polyline reference is ok to access its properties. in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/safe-way-to-test-if-a-polyline-reference-is-ok-to-access-its/m-p/7118966#M31217</link>
    <description>&lt;P&gt;Yes I did.&amp;nbsp; I will look now!&lt;/P&gt;</description>
    <pubDate>Wed, 31 May 2017 08:42:48 GMT</pubDate>
    <dc:creator>oneMSN</dc:creator>
    <dc:date>2017-05-31T08:42:48Z</dc:date>
    <item>
      <title>Safe way to test if a polyline reference is ok to access its properties.</title>
      <link>https://forums.autodesk.com/t5/net-forum/safe-way-to-test-if-a-polyline-reference-is-ok-to-access-its/m-p/7118383#M31215</link>
      <description>&lt;P&gt;I am hooked into the Database_ObjectModified event.&amp;nbsp; I have a particular interest in polylines.&amp;nbsp; When one is drawn I wish to do stuff with it.&amp;nbsp; However I Have an issue with polylines which are generated by other operations, one case I have seen is when I do a point move action on a dynamic block, the database event offers up these polylines which I think may be part of a Jig!?? related to the moving of the dynamic entity. &amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;My problem is I cant find a way to Identify these entities in a safe way so that I can ignore them.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I always have to deal with them by exception.&amp;nbsp; one example I have is this:&lt;/P&gt;&lt;PRE&gt;            try
            {
                var testPropertyAccess = polyline.PolylineEntity.BlockName.Length;
            }
            catch
            {
                // Improper polyline.
                return;
            }&lt;/PRE&gt;&lt;P&gt;Other time I get a bad geometry error. or some other error when accessing the properties. &amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Is there any good safe way of determining if a polyline is actually one that the user has drawn rather than one of these temporary lines?&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2017 00:52:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/safe-way-to-test-if-a-polyline-reference-is-ok-to-access-its/m-p/7118383#M31215</guid>
      <dc:creator>oneMSN</dc:creator>
      <dc:date>2017-05-31T00:52:02Z</dc:date>
    </item>
    <item>
      <title>Re: Safe way to test if a polyline reference is ok to access its properties.</title>
      <link>https://forums.autodesk.com/t5/net-forum/safe-way-to-test-if-a-polyline-reference-is-ok-to-access-its/m-p/7118584#M31216</link>
      <description>Perhaps you missed my reply to your other post re. eDegenerateGeometry?</description>
      <pubDate>Wed, 31 May 2017 04:21:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/safe-way-to-test-if-a-polyline-reference-is-ok-to-access-its/m-p/7118584#M31216</guid>
      <dc:creator>ActivistInvestor</dc:creator>
      <dc:date>2017-05-31T04:21:03Z</dc:date>
    </item>
    <item>
      <title>Re: Safe way to test if a polyline reference is ok to access its properties.</title>
      <link>https://forums.autodesk.com/t5/net-forum/safe-way-to-test-if-a-polyline-reference-is-ok-to-access-its/m-p/7118966#M31217</link>
      <description>&lt;P&gt;Yes I did.&amp;nbsp; I will look now!&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2017 08:42:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/safe-way-to-test-if-a-polyline-reference-is-ok-to-access-its/m-p/7118966#M31217</guid>
      <dc:creator>oneMSN</dc:creator>
      <dc:date>2017-05-31T08:42:48Z</dc:date>
    </item>
  </channel>
</rss>

