<?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: An object's Instance Id into a schedule in Revit Architecture in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/an-object-s-instance-id-into-a-schedule-in-revit-architecture/m-p/3741994#M80051</link>
    <description>Hi explosive 369, additionally, you need to change the value type of your parameter from *text* to *integer* if you want to fill it with the integer value of ElementId.IntegerValue. If you want to use your parameter as a text parameter, you would need to fill it with door.Id.IntegerValue.ToString(). Best regards, Revitalizer</description>
    <pubDate>Sat, 22 Dec 2012 08:57:04 GMT</pubDate>
    <dc:creator>Revitalizer</dc:creator>
    <dc:date>2012-12-22T08:57:04Z</dc:date>
    <item>
      <title>An object's Instance Id into a schedule in Revit Architecture</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/an-object-s-instance-id-into-a-schedule-in-revit-architecture/m-p/3737227#M80044</link>
      <description>&lt;P&gt;I wish to get object's Instance Id numbers into the Revit Architecture schedules. I can obtain them using either the DB Link or the standard ODBC export, but the Instance Id's are not available in schedules. Is there a code that I can put into a schedule field that will transfer the Instance ID of the object into the shedule?&lt;/P&gt;</description>
      <pubDate>Fri, 14 Dec 2012 14:50:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/an-object-s-instance-id-into-a-schedule-in-revit-architecture/m-p/3737227#M80044</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-12-14T14:50:59Z</dc:date>
    </item>
    <item>
      <title>Re: An object's Instance Id into a schedule in Revit Architecture</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/an-object-s-instance-id-into-a-schedule-in-revit-architecture/m-p/3739641#M80045</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The workaround is you add a shared parameter to the target element, and then assign the element's Id value to this shared parameter.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then create a schedule and include the shared parameter.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Dec 2012 07:40:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/an-object-s-instance-id-into-a-schedule-in-revit-architecture/m-p/3739641#M80045</guid>
      <dc:creator>Joe.Ye</dc:creator>
      <dc:date>2012-12-19T07:40:08Z</dc:date>
    </item>
    <item>
      <title>Re: An object's Instance Id into a schedule in Revit Architecture</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/an-object-s-instance-id-into-a-schedule-in-revit-architecture/m-p/3739679#M80046</link>
      <description>&lt;P&gt;Hello Joe,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your post. How do I actually&amp;nbsp;assign the element's Id value to the shared parameter? Is it a formula? What are the steps for assigning the Id to the parameter?&lt;/P&gt;</description>
      <pubDate>Wed, 19 Dec 2012 09:28:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/an-object-s-instance-id-into-a-schedule-in-revit-architecture/m-p/3739679#M80046</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-12-19T09:28:30Z</dc:date>
    </item>
    <item>
      <title>Re: An object's Instance Id into a schedule in Revit Architecture</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/an-object-s-instance-id-into-a-schedule-in-revit-architecture/m-p/3740500#M80047</link>
      <description>&lt;P&gt;Hi explosive369,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is no need for a formula, just define a shared parameter of type integer and set its value like this:&lt;/P&gt;&lt;P&gt;your_element.get_Parameter(your_parameter_name).Set(your_element.Id.IntegerValue)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That's it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Revitalizer&lt;/P&gt;</description>
      <pubDate>Thu, 20 Dec 2012 09:54:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/an-object-s-instance-id-into-a-schedule-in-revit-architecture/m-p/3740500#M80047</guid>
      <dc:creator>Revitalizer</dc:creator>
      <dc:date>2012-12-20T09:54:13Z</dc:date>
    </item>
    <item>
      <title>Re: An object's Instance Id into a schedule in Revit Architecture</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/an-object-s-instance-id-into-a-schedule-in-revit-architecture/m-p/3741483#M80048</link>
      <description>&lt;P&gt;Thank you Revitalizer for your post.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With reference to the attached image, I have tried including the recommended code in both project and object family files. Ultimately, neither approach produced the six digit Revit Instance Id for each object within the schedule. Are the codes that I created incorrect?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Recommended code = your_element.get_Parameter(your_parameter_name).Set(your_element.Id.IntegerValue)&lt;/P&gt;&lt;P&gt;Attempted code 1 = ExtSgl (3).get_Parameter(test_id).Set(door.Id.IntegerValue)&lt;/P&gt;&lt;P&gt;Attempted code 2 =&amp;nbsp;door.get_Parameter(test_id).Set(door.Id.IntegerValue)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To reiterate, ultimately, I wish to be able to import the six digit Revit Instance Id's into schedules for every object. I am able to obtain them using the ODBC and DB Link options but I wish input them into schedules.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Dec 2012 11:08:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/an-object-s-instance-id-into-a-schedule-in-revit-architecture/m-p/3741483#M80048</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-12-21T11:08:29Z</dc:date>
    </item>
    <item>
      <title>Re: An object's Instance Id into a schedule in Revit Architecture</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/an-object-s-instance-id-into-a-schedule-in-revit-architecture/m-p/3741992#M80049</link>
      <description>Hi explosive 369, you cannot use the code in the way you do. First, formula parameters are *family* related, meaning that you define them when editing families. In project context, there are no formula parameters (as far as I know). Second, syntax for formula parameters is different from the code we use in API: &lt;A href="http://wikihelp.autodesk.com/Revit/enu/Community/Tips_and_Tricks/Families%2c_Parameters%2c_Formulas/Formulas_for_%22Everyday%22_Use" target="_blank"&gt;http://wikihelp.autodesk.com/Revit/enu/Community/Tips_and_Tricks/Families%2c_Parameters%2c_Formulas/Formulas_for_%22Everyday%22_Use&lt;/A&gt; In formulas, you can refer to other exposed parameters but not to internal element properties (like the Id). So I would suggest you to implement a little add-in or macro for filling your test_id parameter values *programmatically*. You cannot perform this otherwise. Since this is the Revit *API* forum, you are on the right place here &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; Get all the door instances, and for each door of them do: door.get_Parameter("test_id").Set(door.Id.IntegerValue); Make sure that each door you access already *has* this parameter at all before trying to set it. Ah, i see that your "test_id" parameter must be an *instance* parameter, not a *type* parameter, since each element has an *individual* Id value, of course. For filtering elements performantly, please look at the Revit SDK samples or visit The Building Coder: &lt;A href="http://thebuildingcoder.typepad.com/" target="_blank"&gt;http://thebuildingcoder.typepad.com/&lt;/A&gt; Hope this helpes you. Best regards, Revitalizer</description>
      <pubDate>Sat, 22 Dec 2012 08:32:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/an-object-s-instance-id-into-a-schedule-in-revit-architecture/m-p/3741992#M80049</guid>
      <dc:creator>Revitalizer</dc:creator>
      <dc:date>2012-12-22T08:32:49Z</dc:date>
    </item>
    <item>
      <title>Re: An object's Instance Id into a schedule in Revit Architecture</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/an-object-s-instance-id-into-a-schedule-in-revit-architecture/m-p/3741993#M80050</link>
      <description>Seems that my posting has a formatting problem since the aren't any line breaks, sorry for that ;-(</description>
      <pubDate>Sat, 22 Dec 2012 08:38:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/an-object-s-instance-id-into-a-schedule-in-revit-architecture/m-p/3741993#M80050</guid>
      <dc:creator>Revitalizer</dc:creator>
      <dc:date>2012-12-22T08:38:00Z</dc:date>
    </item>
    <item>
      <title>Re: An object's Instance Id into a schedule in Revit Architecture</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/an-object-s-instance-id-into-a-schedule-in-revit-architecture/m-p/3741994#M80051</link>
      <description>Hi explosive 369, additionally, you need to change the value type of your parameter from *text* to *integer* if you want to fill it with the integer value of ElementId.IntegerValue. If you want to use your parameter as a text parameter, you would need to fill it with door.Id.IntegerValue.ToString(). Best regards, Revitalizer</description>
      <pubDate>Sat, 22 Dec 2012 08:57:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/an-object-s-instance-id-into-a-schedule-in-revit-architecture/m-p/3741994#M80051</guid>
      <dc:creator>Revitalizer</dc:creator>
      <dc:date>2012-12-22T08:57:04Z</dc:date>
    </item>
    <item>
      <title>Re: An object's Instance Id into a schedule in Revit Architecture</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/an-object-s-instance-id-into-a-schedule-in-revit-architecture/m-p/5717019#M80053</link>
      <description>&lt;P&gt;3 years... there is a better solution:&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.youtube.com/watch?v=U-tVoCYilxo" target="_blank"&gt;https://www.youtube.com/watch?v=U-tVoCYilxo&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jul 2015 17:12:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/an-object-s-instance-id-into-a-schedule-in-revit-architecture/m-p/5717019#M80053</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-07-13T17:12:19Z</dc:date>
    </item>
    <item>
      <title>Re: An object's Instance Id into a schedule in Revit Architecture</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/an-object-s-instance-id-into-a-schedule-in-revit-architecture/m-p/5717918#M80054</link>
      <description>&lt;P&gt;Hi Gui.Talarico,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the video you refer to does just the same Joe Ye and I already have suggested.&lt;/P&gt;&lt;P&gt;Just using Dynamo instead of plain Revit API.&lt;/P&gt;&lt;P&gt;You also could write a little Macro or do it per Python console.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Still, I don't think there is another or even better solution for this topic.&lt;/P&gt;&lt;P&gt;Better than the shared parameter workaround would be a generic solution.&lt;/P&gt;&lt;P&gt;Autodesk could provide direct access to the ElementId of a schedule row.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Wait for Revit 2017 API...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Revitalizer&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jul 2015 06:56:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/an-object-s-instance-id-into-a-schedule-in-revit-architecture/m-p/5717918#M80054</guid>
      <dc:creator>Revitalizer</dc:creator>
      <dc:date>2015-07-14T06:56:36Z</dc:date>
    </item>
    <item>
      <title>Re: An object's Instance Id into a schedule in Revit Architecture</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/an-object-s-instance-id-into-a-schedule-in-revit-architecture/m-p/6295525#M80055</link>
      <description>&lt;P&gt;I know this been a while, but got this issues and really want to fix it. Where exactly do i put the formula. In your post you said :&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;Get all the door instances, and for each door of them do: door.get_Parameter("test_id").Set(door.Id.IntegerValue) &amp;nbsp;&lt;/STRONG&gt;&lt;/EM&gt;What do you mean by *do*&lt;/P&gt;&lt;P&gt;When I enter it as the value of my shared parameter it pop-up to me :&lt;EM&gt;&lt;STRONG&gt;Formulas cannot refer to other parameters&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Using Revit 2016&lt;/P&gt;&lt;P&gt;Thx,Regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Apr 2016 13:18:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/an-object-s-instance-id-into-a-schedule-in-revit-architecture/m-p/6295525#M80055</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-04-27T13:18:54Z</dc:date>
    </item>
    <item>
      <title>Re: An object's Instance Id into a schedule in Revit Architecture</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/an-object-s-instance-id-into-a-schedule-in-revit-architecture/m-p/6297334#M80056</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;since this is the &lt;STRONG&gt;&lt;EM&gt;API&lt;/EM&gt; &lt;/STRONG&gt;forum, I suggest you to read the beginner stuff since your question tells me that you try to perform it in the Revit &lt;STRONG&gt;&lt;EM&gt;GUI&lt;/EM&gt;&lt;/STRONG&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Revitalizer&lt;/P&gt;</description>
      <pubDate>Thu, 28 Apr 2016 07:38:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/an-object-s-instance-id-into-a-schedule-in-revit-architecture/m-p/6297334#M80056</guid>
      <dc:creator>Revitalizer</dc:creator>
      <dc:date>2016-04-28T07:38:21Z</dc:date>
    </item>
  </channel>
</rss>

