<?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: Is there a maximum integer value of an element id in Revit? in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/is-there-a-maximum-integer-value-of-an-element-id-in-revit/m-p/9747407#M31843</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/413917"&gt;@jeremytammik&lt;/a&gt;&amp;nbsp;,Thank you so much for your response. I use to multiply wall's element id integer by 100 and add layer index just to keep tracking each layer's elements.&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;wall element id: 2444567&lt;/P&gt;&lt;P&gt;list of layers-&lt;/P&gt;&lt;P&gt;244456701 for layer 1,&lt;/P&gt;&lt;P&gt;244456702 for layer 2&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So during this process I faced issues because after adding or multiplying with large integer value ,it exceeds the limit and returns negative value. But Yes I can use unsigned int,long int,unsigned long int in C++ to solve this issue. But I am just making sure what will be the maximum limits.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if&amp;nbsp; 2,147,483,647 Signed 32-bit integer&amp;nbsp;is the maximum limit then I can modify the code so that it wont exceeds this limit.This will help.&lt;/P&gt;&lt;P&gt;Thank you so much once again &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 15 Sep 2020 08:21:30 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-09-15T08:21:30Z</dc:date>
    <item>
      <title>Is there a maximum integer value of an element id in Revit?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/is-there-a-maximum-integer-value-of-an-element-id-in-revit/m-p/9747220#M31841</link>
      <description>&lt;P&gt;when I am handling Revit element Id (integer value) in c++ which gives a 8 or 9 digit number when I try to add or multiply a number with that element id for further operation I am facing an issue. It returns negative value because it exceeds c++ maximum integer value limit. If there is any fixed range integer value of element id in Revit it will be helpfull to write code in c++. Kindly let me know if there is a maximum integer value of element id in Revit.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Sep 2020 05:58:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/is-there-a-maximum-integer-value-of-an-element-id-in-revit/m-p/9747220#M31841</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-09-15T05:58:46Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a maximum integer value of an element id in Revit?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/is-there-a-maximum-integer-value-of-an-element-id-in-revit/m-p/9747341#M31842</link>
      <description>&lt;P&gt;That kind of information is basically totally irrelevant, since it makes no sense for you to add or multiply Revit element ids, from the Revit API point of view. However, if you insist, I think you can safely assume that they are 32 bit signed integers.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Look at the Revit API documentation, e.g., the ElementId.IntegerValue property:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.revitapidocs.com/2020/f7074647-9521-0f64-d2e2-eb2401aace85.htm" target="_blank"&gt;https://www.revitapidocs.com/2020/f7074647-9521-0f64-d2e2-eb2401aace85.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The integer value is represented by a .NET int:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/integral-numeric-types" target="_blank"&gt;https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/integral-numeric-types&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;TABLE class="table"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD&gt;&lt;CODE&gt;int&lt;/CODE&gt;&lt;/TD&gt;
&lt;TD&gt;-2,147,483,648 to 2,147,483,647&lt;/TD&gt;
&lt;TD&gt;Signed 32-bit integer&lt;/TD&gt;
&lt;TD&gt;&lt;A href="https://docs.microsoft.com/en-us/dotnet/api/system.int32" data-linktype="absolute-path" target="_blank"&gt;System.Int32&lt;/A&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Sep 2020 07:34:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/is-there-a-maximum-integer-value-of-an-element-id-in-revit/m-p/9747341#M31842</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2020-09-15T07:34:53Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a maximum integer value of an element id in Revit?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/is-there-a-maximum-integer-value-of-an-element-id-in-revit/m-p/9747407#M31843</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/413917"&gt;@jeremytammik&lt;/a&gt;&amp;nbsp;,Thank you so much for your response. I use to multiply wall's element id integer by 100 and add layer index just to keep tracking each layer's elements.&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;wall element id: 2444567&lt;/P&gt;&lt;P&gt;list of layers-&lt;/P&gt;&lt;P&gt;244456701 for layer 1,&lt;/P&gt;&lt;P&gt;244456702 for layer 2&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So during this process I faced issues because after adding or multiplying with large integer value ,it exceeds the limit and returns negative value. But Yes I can use unsigned int,long int,unsigned long int in C++ to solve this issue. But I am just making sure what will be the maximum limits.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if&amp;nbsp; 2,147,483,647 Signed 32-bit integer&amp;nbsp;is the maximum limit then I can modify the code so that it wont exceeds this limit.This will help.&lt;/P&gt;&lt;P&gt;Thank you so much once again &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Sep 2020 08:21:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/is-there-a-maximum-integer-value-of-an-element-id-in-revit/m-p/9747407#M31843</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-09-15T08:21:30Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a maximum integer value of an element id in Revit?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/is-there-a-maximum-integer-value-of-an-element-id-in-revit/m-p/9747619#M31844</link>
      <description>&lt;P&gt;Thank you for your appreciation. My pleasure.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Sep 2020 10:06:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/is-there-a-maximum-integer-value-of-an-element-id-in-revit/m-p/9747619#M31844</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2020-09-15T10:06:08Z</dc:date>
    </item>
  </channel>
</rss>

