<?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: API Examples - Setting Office Address in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/api-examples-setting-office-address/m-p/5975597#M68481</link>
    <description>&lt;P&gt;Hi Jeremy,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your quick response again&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the office address as a drop down menu within Revit. My reason for this was&amp;nbsp;to limit the number of title blocks and Project templates I have to create in the first place. With 14 offices it gets very confussing. Easier to build content for one office then roll it out.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The issue I was having was the Technicians complanining they had to set the office address everytime a new sheet was added to the project.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will take a look at your suggestions and see how I get on.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Lee&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 06 Jan 2016 14:37:45 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-01-06T14:37:45Z</dc:date>
    <item>
      <title>API Examples - Setting Office Address</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/api-examples-setting-office-address/m-p/5975327#M68479</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First post on the API forumn.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have been muddling my way through Revit API for a couple of months now, having no previous programming expereience need a few pointers and examples if anyone is able to help me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Trying to create a line of code to use with my companies title blocks when loaded in the project. The office address is a Generic Annotation Label using a Instance Parameter within the title block Family.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I would like to achieve is once the user has set the office address from a drop down menu, this setting continues to be applied to every sheet there after.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestions would be most welecome&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jan 2016 11:54:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/api-examples-setting-office-address/m-p/5975327#M68479</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-01-06T11:54:32Z</dc:date>
    </item>
    <item>
      <title>Re: API Examples - Setting Office Address</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/api-examples-setting-office-address/m-p/5975553#M68480</link>
      <description>&lt;P&gt;Dear L_Barnett,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for posting your query here in public.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So, you have a title block that is used in all projects?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And you have a list of different addresses to use in the tile block?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You wish to pick one of them, and use it forever after?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If so, you might just as well only have one single address in the frst place &amp;nbsp;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anyway, my first suggestion to any programmer for any task is to apply the &lt;A href="https://en.wikipedia.org/wiki/KISS_principle" target="_self"&gt;KISS&lt;/A&gt; principle: keep it simple!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In this case, split the problem up into separate tasks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It might be simplest to start by implementing two&amp;nbsp;external commands:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One has nothing whatsoever to do with Revit or its API: it simply displays a dropdown list of the addresses to use and selects one of them as the default address.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The second grabs the default address defined by the first command and applies that to the title block.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To determine how this can be achieved, I would&amp;nbsp;again recommend going through a couple of basic steps. These also apply to almost all Revit programming tasks:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;SPAN style="line-height: 15px;"&gt;Determine the optimal workflow to achieve the task manually&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN style="line-height: 15px;"&gt;Use RevitLookup and other more intimate Revit database exploration tools to determine how the manually executed task has modified the model, i.e., which elements and properties have been added, modified, or deleted: &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="line-height: 15px;"&gt;&lt;A href="http://thebuildingcoder.typepad.com/blog/2013/11/intimate-revit-database-exploration-with-the-python-shell.html&amp;nbsp;" target="_blank"&gt;http://thebuildingcoder.typepad.com/blog/2013/11/intimate-revit-database-exploration-with-the-python-shell.html&amp;nbsp;&lt;/A&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN style="line-height: 15px;"&gt;Implement the external command to achieve the same result programmatically&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In this case, all of these steps should be pretty simple.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this helps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jeremy&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jan 2016 14:23:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/api-examples-setting-office-address/m-p/5975553#M68480</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2016-01-06T14:23:19Z</dc:date>
    </item>
    <item>
      <title>Re: API Examples - Setting Office Address</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/api-examples-setting-office-address/m-p/5975597#M68481</link>
      <description>&lt;P&gt;Hi Jeremy,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your quick response again&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the office address as a drop down menu within Revit. My reason for this was&amp;nbsp;to limit the number of title blocks and Project templates I have to create in the first place. With 14 offices it gets very confussing. Easier to build content for one office then roll it out.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The issue I was having was the Technicians complanining they had to set the office address everytime a new sheet was added to the project.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will take a look at your suggestions and see how I get on.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Lee&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jan 2016 14:37:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/api-examples-setting-office-address/m-p/5975597#M68481</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-01-06T14:37:45Z</dc:date>
    </item>
  </channel>
</rss>

