<?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: Find or loop Map object data in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/find-or-loop-map-object-data/m-p/9927262#M17805</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/551307"&gt;@pieter_souvereyns&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;...&lt;BR /&gt;I loop now trough all the elements but when you have to do it for 7 tables. It becomes slow let's say the time is significant.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I am with you regarding the slowness for searching through entities for ObjectData. Worse, it seems that even the Map Object API has been the same for last 15+ years with very little update, if any, the speed of looping entities for accessing ObjectData changes from version to version of Acad Map and the changes were mostly became worse in a version and only got back in next version or two, but never got noticeable faster.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It has been quite common practice at my work where I need to search entities according to OD attached to them. The slowness is quite frustration if the entity count is large.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes, Map's query API only works on attached drawing set, not current drawing, just the same as doing Map query manually. A possible workaround, which I have never used but technically doable manually or programmatically, is to create a copy of the current drawing, rename it a temporary name, then attach it into DrawingSet and execute the query. You can place the query result in a temporary layer... However, depending on the purpose of getting entities based on ObjectData, this workaround may or may apply to your business requirement, of course. Just like at my work, I have to loop through entities mostly and take the hit of slowness; and lucky me that I have not had to dealt with drawings with large/huge number of entities with OD in this manner.&lt;/P&gt;</description>
    <pubDate>Wed, 09 Dec 2020 16:56:15 GMT</pubDate>
    <dc:creator>norman.yuan</dc:creator>
    <dc:date>2020-12-09T16:56:15Z</dc:date>
    <item>
      <title>Find or loop Map object data</title>
      <link>https://forums.autodesk.com/t5/net-forum/find-or-loop-map-object-data/m-p/9920200#M17802</link>
      <description>&lt;P&gt;It look's to me that there is no way to query the objects that have objectdata (OD).&lt;BR /&gt;That you have to loop trough all object and look if they have objectdata.&lt;BR /&gt;Is this correct or do I miss something?&lt;BR /&gt;A dxfcode or a method like PropertyDataServices.GetAllPropertySetsUsingDefinition for propertiesets?&lt;BR /&gt;Thanks&lt;BR /&gt;Pieter&lt;/P&gt;</description>
      <pubDate>Mon, 07 Dec 2020 08:17:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/find-or-loop-map-object-data/m-p/9920200#M17802</guid>
      <dc:creator>pieter_souvereyns</dc:creator>
      <dc:date>2020-12-07T08:17:54Z</dc:date>
    </item>
    <item>
      <title>Re: Find or loop Map object data</title>
      <link>https://forums.autodesk.com/t5/net-forum/find-or-loop-map-object-data/m-p/9920848#M17803</link>
      <description>&lt;P&gt;Firstly, your question is specific to Map 3D/C3D, so posting in Map3D/C3D forums may give you better chance of getting more pointed help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can do entity queries, as you manually do in Map3d, by using APIs in Autodesk.Gis.Map.Query namespace, instead of looping through entities to examine attached object data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"PropertyDataServices", as you mentioned, is only available in C3D, not in pure Map3D and has nothing to do with ObjectData. so if you want to build Map3D query with Autodesk.Gis.Map.Query namespace API, even you use C3D, PropertyDataSet/Services would not help in terms of ObjectData.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Dec 2020 14:14:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/find-or-loop-map-object-data/m-p/9920848#M17803</guid>
      <dc:creator>norman.yuan</dc:creator>
      <dc:date>2020-12-07T14:14:24Z</dc:date>
    </item>
    <item>
      <title>Re: Find or loop Map object data</title>
      <link>https://forums.autodesk.com/t5/net-forum/find-or-loop-map-object-data/m-p/9926693#M17804</link>
      <description>&lt;P&gt;Indeed I saw after I posted this one question, that there is also a map develepment forum. So I have make the question there also but no luck at the moment.&lt;BR /&gt;I refer indeed to propertysets that is very different I know, but it was as reference.&lt;BR /&gt;&lt;SPAN&gt;Autodesk.Gis.Map.Query is this also usable for query's in the same drawing? I don't find much information about this only for map 2009 an then it was not possible to query in the drawing (only attached drawings).&lt;BR /&gt;&lt;/SPAN&gt;Can you point me to some reading for this query or an example maybe? Query all the objects inside the current drawing with object data table name "XX".&lt;BR /&gt;It would be appeciated.&lt;BR /&gt;I loop now trough all the elements but when you have to do it for 7 tables. It becomes slow let's say the time is significant.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Dec 2020 13:58:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/find-or-loop-map-object-data/m-p/9926693#M17804</guid>
      <dc:creator>pieter_souvereyns</dc:creator>
      <dc:date>2020-12-09T13:58:38Z</dc:date>
    </item>
    <item>
      <title>Re: Find or loop Map object data</title>
      <link>https://forums.autodesk.com/t5/net-forum/find-or-loop-map-object-data/m-p/9927262#M17805</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/551307"&gt;@pieter_souvereyns&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;...&lt;BR /&gt;I loop now trough all the elements but when you have to do it for 7 tables. It becomes slow let's say the time is significant.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I am with you regarding the slowness for searching through entities for ObjectData. Worse, it seems that even the Map Object API has been the same for last 15+ years with very little update, if any, the speed of looping entities for accessing ObjectData changes from version to version of Acad Map and the changes were mostly became worse in a version and only got back in next version or two, but never got noticeable faster.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It has been quite common practice at my work where I need to search entities according to OD attached to them. The slowness is quite frustration if the entity count is large.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes, Map's query API only works on attached drawing set, not current drawing, just the same as doing Map query manually. A possible workaround, which I have never used but technically doable manually or programmatically, is to create a copy of the current drawing, rename it a temporary name, then attach it into DrawingSet and execute the query. You can place the query result in a temporary layer... However, depending on the purpose of getting entities based on ObjectData, this workaround may or may apply to your business requirement, of course. Just like at my work, I have to loop through entities mostly and take the hit of slowness; and lucky me that I have not had to dealt with drawings with large/huge number of entities with OD in this manner.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Dec 2020 16:56:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/find-or-loop-map-object-data/m-p/9927262#M17805</guid>
      <dc:creator>norman.yuan</dc:creator>
      <dc:date>2020-12-09T16:56:15Z</dc:date>
    </item>
  </channel>
</rss>

