<?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: Convert String data type to Objectid in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/convert-string-data-type-to-objectid/m-p/10133942#M17317</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/109424"&gt;@_gile&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;That's onspot,&lt;BR /&gt;you nailed it,&lt;BR /&gt;Now i will have a pleasant sleep tonight..&lt;BR /&gt;have a good night..&lt;BR /&gt;really thankful for your help..&lt;/P&gt;</description>
    <pubDate>Fri, 05 Mar 2021 18:42:57 GMT</pubDate>
    <dc:creator>waseefur.rahman</dc:creator>
    <dc:date>2021-03-05T18:42:57Z</dc:date>
    <item>
      <title>Convert String data type to Objectid</title>
      <link>https://forums.autodesk.com/t5/net-forum/convert-string-data-type-to-objectid/m-p/10129330#M17308</link>
      <description>&lt;P&gt;Hi Everyone,&lt;BR /&gt;&lt;BR /&gt;Is there any way to convert string data type to objectid&lt;BR /&gt;i tried the below method to convert, but getting the error.&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1.png" style="width: 902px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/888556iE0A72B52D34413EB/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.png" alt="1.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;Could any one please advice, how to convert string data type to objectid.&lt;BR /&gt;&lt;BR /&gt;Thanks in Advance&lt;/P&gt;</description>
      <pubDate>Thu, 04 Mar 2021 10:26:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/convert-string-data-type-to-objectid/m-p/10129330#M17308</guid>
      <dc:creator>waseefur.rahman</dc:creator>
      <dc:date>2021-03-04T10:26:47Z</dc:date>
    </item>
    <item>
      <title>Re: Convert String data type to Objectid</title>
      <link>https://forums.autodesk.com/t5/net-forum/convert-string-data-type-to-objectid/m-p/10129377#M17309</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I don't know where is this string from, but you can try something like this:&lt;/P&gt;
&lt;LI-CODE lang="csharp"&gt;new ObjectId(new IntPtr(long.Parse(str)));&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 04 Mar 2021 10:42:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/convert-string-data-type-to-objectid/m-p/10129377#M17309</guid>
      <dc:creator>_gile</dc:creator>
      <dc:date>2021-03-04T10:42:33Z</dc:date>
    </item>
    <item>
      <title>Re: Convert String data type to Objectid</title>
      <link>https://forums.autodesk.com/t5/net-forum/convert-string-data-type-to-objectid/m-p/10129622#M17310</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/109424"&gt;@_gile&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Actually i have stored Objectids in String collection,&lt;BR /&gt;and i want it to convert back string to object id.&lt;BR /&gt;&lt;BR /&gt;can you please advice how to convert data type string to objectid.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Mar 2021 12:11:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/convert-string-data-type-to-objectid/m-p/10129622#M17310</guid>
      <dc:creator>waseefur.rahman</dc:creator>
      <dc:date>2021-03-04T12:11:16Z</dc:date>
    </item>
    <item>
      <title>Re: Convert String data type to Objectid</title>
      <link>https://forums.autodesk.com/t5/net-forum/convert-string-data-type-to-objectid/m-p/10130098#M17311</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/109424"&gt;@_gile&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I tried you&amp;nbsp; method but getting error as 'eUnknownHandle'&lt;BR /&gt;see the below image&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1.png" style="width: 956px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/888706i337B0943B5A647E3/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.png" alt="1.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;could you please advice a where i am doing wrong?&lt;BR /&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 04 Mar 2021 14:25:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/convert-string-data-type-to-objectid/m-p/10130098#M17311</guid>
      <dc:creator>waseefur.rahman</dc:creator>
      <dc:date>2021-03-04T14:25:07Z</dc:date>
    </item>
    <item>
      <title>Re: Convert String data type to Objectid</title>
      <link>https://forums.autodesk.com/t5/net-forum/convert-string-data-type-to-objectid/m-p/10130799#M17312</link>
      <description>&lt;P&gt;Handle and ObjectId are two different identifiers.&lt;/P&gt;
&lt;P&gt;Handles are unique per drawing persistant, ObjectIds are unique per session and not persistant (re-created and possibly different each time the drawing is opened).&lt;/P&gt;
&lt;P&gt;You should show the code with which you get this string.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Mar 2021 17:38:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/convert-string-data-type-to-objectid/m-p/10130799#M17312</guid>
      <dc:creator>_gile</dc:creator>
      <dc:date>2021-03-04T17:38:32Z</dc:date>
    </item>
    <item>
      <title>Re: Convert String data type to Objectid</title>
      <link>https://forums.autodesk.com/t5/net-forum/convert-string-data-type-to-objectid/m-p/10131422#M17313</link>
      <description>&lt;P&gt;If you are determined to use a list of object ids, why not just iterate all drawing objects, cast each of their ids to a string, then see if the list contains it? This is likely as fast as any other method.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Mar 2021 21:26:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/convert-string-data-type-to-objectid/m-p/10131422#M17313</guid>
      <dc:creator>jabowabo</dc:creator>
      <dc:date>2021-03-04T21:26:28Z</dc:date>
    </item>
    <item>
      <title>Re: Convert String data type to Objectid</title>
      <link>https://forums.autodesk.com/t5/net-forum/convert-string-data-type-to-objectid/m-p/10131652#M17314</link>
      <description>&lt;P&gt;We do not know what exactly Allobj_ids is (except it is a string array) and in which context is used.&lt;/P&gt;
&lt;P&gt;If it is used within the same session of the drawing, you should not convert the ObjectId instances into strings and simply use an ObjectId array or an ObjectIdCollection.&lt;/P&gt;
&lt;P&gt;If it used in a different session, the string array should be based on Handles instead of ObjectIds.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Mar 2021 23:22:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/convert-string-data-type-to-objectid/m-p/10131652#M17314</guid>
      <dc:creator>_gile</dc:creator>
      <dc:date>2021-03-04T23:22:17Z</dc:date>
    </item>
    <item>
      <title>Re: Convert String data type to Objectid</title>
      <link>https://forums.autodesk.com/t5/net-forum/convert-string-data-type-to-objectid/m-p/10133881#M17315</link>
      <description>&lt;P&gt;Hi Gile,&lt;BR /&gt;&lt;BR /&gt;As per your suggestion i stored Handle to String Collection,&lt;BR /&gt;but when i tried to modify entity property,&amp;nbsp;&lt;BR /&gt;like changing the layer name,&lt;BR /&gt;i got the error as eKeyNotFound.&lt;BR /&gt;&lt;BR /&gt;attached the Code Snip below,&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1.png" style="width: 993px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/889363i165F4F0D4D51693B/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.png" alt="1.png" /&gt;&lt;/span&gt;&lt;BR /&gt;Could you please advice where i am doing wrong.&lt;BR /&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 05 Mar 2021 18:11:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/convert-string-data-type-to-objectid/m-p/10133881#M17315</guid>
      <dc:creator>waseefur.rahman</dc:creator>
      <dc:date>2021-03-05T18:11:31Z</dc:date>
    </item>
    <item>
      <title>Re: Convert String data type to Objectid</title>
      <link>https://forums.autodesk.com/t5/net-forum/convert-string-data-type-to-objectid/m-p/10133920#M17316</link>
      <description>&lt;P&gt;This is a totally different error.&lt;/P&gt;
&lt;P&gt;This time the error is due to the fact none LayerTableRecord named: &lt;FONT face="courier new,courier"&gt;Cur_NM + "_Split_" + Split_Lay.ToString()&lt;/FONT&gt; exists in the layer table.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Mar 2021 18:30:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/convert-string-data-type-to-objectid/m-p/10133920#M17316</guid>
      <dc:creator>_gile</dc:creator>
      <dc:date>2021-03-05T18:30:57Z</dc:date>
    </item>
    <item>
      <title>Re: Convert String data type to Objectid</title>
      <link>https://forums.autodesk.com/t5/net-forum/convert-string-data-type-to-objectid/m-p/10133942#M17317</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/109424"&gt;@_gile&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;That's onspot,&lt;BR /&gt;you nailed it,&lt;BR /&gt;Now i will have a pleasant sleep tonight..&lt;BR /&gt;have a good night..&lt;BR /&gt;really thankful for your help..&lt;/P&gt;</description>
      <pubDate>Fri, 05 Mar 2021 18:42:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/convert-string-data-type-to-objectid/m-p/10133942#M17317</guid>
      <dc:creator>waseefur.rahman</dc:creator>
      <dc:date>2021-03-05T18:42:57Z</dc:date>
    </item>
  </channel>
</rss>

