<?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: How retrieve already exist Extensible Storage ? in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/how-retrieve-already-exist-extensible-storage/m-p/6830623#M60738</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Dear Philippe,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thank you for your query.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Glad to hear you are looking into this important, useful and powerful functionality.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Many thanks to Matt for all the help you already provided!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;In addition to Matt’s suggestions, The Building Coder defines a dedicated topic group for extensible storage:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="http://thebuildingcoder.typepad.com/blog/about-the-author.html#5.23" target="_blank"&gt;http://thebuildingcoder.typepad.com/blog/about-the-author.html#5.23&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Philippe, you answer is already answered there, several times over.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;As far as I can tell, the extensible storage helper class JtNamedGuidStorage described in the post on Named Guid Storage for Project Identification shows how to implement what you are asking for.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I would be surprised if you run into any relevant questions on extensible storage that have not already been answered and published in that collection.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If you do, I will certainly add them!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Looking forward to seeing what you come up with&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I hope this helps.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Jeremy&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 25 Jan 2017 16:48:22 GMT</pubDate>
    <dc:creator>jeremytammik</dc:creator>
    <dc:date>2017-01-25T16:48:22Z</dc:date>
    <item>
      <title>How retrieve already exist Extensible Storage ?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-retrieve-already-exist-extensible-storage/m-p/6829954#M60734</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to use an extensible storage.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do I know if it already exists in the current document (I know the GUID)?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Philippe.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2017 13:18:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-retrieve-already-exist-extensible-storage/m-p/6829954#M60734</guid>
      <dc:creator>pmeigneux</dc:creator>
      <dc:date>2017-01-25T13:18:09Z</dc:date>
    </item>
    <item>
      <title>Re: How retrieve already exist Extensible Storage ?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-retrieve-already-exist-extensible-storage/m-p/6830149#M60735</link>
      <description>&lt;P&gt;Hi &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/2173978"&gt;@pmeigneux&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Have you looked at the examples in the SDK?&lt;/P&gt;
&lt;P&gt;What have you tried so far?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-Matt&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2017 14:26:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-retrieve-already-exist-extensible-storage/m-p/6830149#M60735</guid>
      <dc:creator>matthew_taylor</dc:creator>
      <dc:date>2017-01-25T14:26:43Z</dc:date>
    </item>
    <item>
      <title>Re: How retrieve already exist Extensible Storage ?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-retrieve-already-exist-extensible-storage/m-p/6830168#M60736</link>
      <description>&lt;P&gt;Hi Matt,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes, I'm find :&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;///&lt;/SPAN&gt; &lt;SPAN&gt;&amp;lt;summary&amp;gt;&lt;/SPAN&gt;
&lt;SPAN&gt;///&lt;/SPAN&gt;&lt;SPAN&gt; Create a data structure, attach it to a wall, &lt;/SPAN&gt;
&lt;SPAN&gt;///&lt;/SPAN&gt;&lt;SPAN&gt; populate it with data, and retrieve the data &lt;/SPAN&gt;
&lt;SPAN&gt;///&lt;/SPAN&gt;&lt;SPAN&gt; back from the wall&lt;/SPAN&gt;
&lt;SPAN&gt;///&lt;/SPAN&gt; &lt;SPAN&gt;&amp;lt;/summary&amp;gt;&lt;/SPAN&gt;
&lt;SPAN&gt;public&lt;/SPAN&gt; &lt;SPAN&gt;void&lt;/SPAN&gt; StoreDataInWall( &lt;SPAN&gt;Wall&lt;/SPAN&gt; wall, &lt;SPAN&gt;XYZ&lt;/SPAN&gt; dataToStore )
{
&amp;nbsp; &lt;SPAN&gt;Transaction&lt;/SPAN&gt; createSchemaAndStoreData
&amp;nbsp; &amp;nbsp; = &lt;SPAN&gt;new&lt;/SPAN&gt; &lt;SPAN&gt;Transaction&lt;/SPAN&gt;( wall.Document, &lt;SPAN&gt;"tCreateAndStore"&lt;/SPAN&gt; );
&amp;nbsp;
&amp;nbsp; createSchemaAndStoreData.Start();
&amp;nbsp; &lt;SPAN&gt;SchemaBuilder&lt;/SPAN&gt; schemaBuilder = &lt;SPAN&gt;new&lt;/SPAN&gt; &lt;SPAN&gt;SchemaBuilder&lt;/SPAN&gt;(
&amp;nbsp; &amp;nbsp; &lt;SPAN&gt;new&lt;/SPAN&gt; &lt;SPAN&gt;Guid&lt;/SPAN&gt;( &lt;SPAN&gt;"720080CB-DA99-40DC-9415-E53F280AA1F0"&lt;/SPAN&gt; ) );
&amp;nbsp;
&amp;nbsp; &lt;SPAN&gt;// allow anyone to read the object&lt;/SPAN&gt;
&amp;nbsp; schemaBuilder.SetReadAccessLevel( 
&amp;nbsp; &amp;nbsp; &lt;SPAN&gt;AccessLevel&lt;/SPAN&gt;.Public );
&amp;nbsp;
&amp;nbsp; &lt;SPAN&gt;// restrict writing to this vendor only&lt;/SPAN&gt;
&amp;nbsp; schemaBuilder.SetWriteAccessLevel( 
&amp;nbsp; &amp;nbsp; &lt;SPAN&gt;AccessLevel&lt;/SPAN&gt;.Vendor );
&amp;nbsp;
&amp;nbsp; &lt;SPAN&gt;// required because of restricted write-access&lt;/SPAN&gt;
&amp;nbsp; schemaBuilder.SetVendorId( &lt;SPAN&gt;"ADSK"&lt;/SPAN&gt; );
&amp;nbsp;
&amp;nbsp; &lt;SPAN&gt;// create a field to store an XYZ&lt;/SPAN&gt;
&amp;nbsp; &lt;SPAN&gt;FieldBuilder&lt;/SPAN&gt; fieldBuilder = schemaBuilder
&amp;nbsp; &amp;nbsp; .AddSimpleField( &lt;SPAN&gt;"WireSpliceLocation"&lt;/SPAN&gt;, 
&amp;nbsp; &amp;nbsp; &lt;SPAN&gt;typeof&lt;/SPAN&gt;( &lt;SPAN&gt;XYZ&lt;/SPAN&gt; ) );
&amp;nbsp;
&amp;nbsp; fieldBuilder.SetUnitType( &lt;SPAN&gt;UnitType&lt;/SPAN&gt;.UT_Length );
&amp;nbsp;
&amp;nbsp; fieldBuilder.SetDocumentation( &lt;SPAN&gt;"A stored "&lt;/SPAN&gt;
&amp;nbsp; &amp;nbsp; + &lt;SPAN&gt;"location value representing a wiring "&lt;/SPAN&gt;
&amp;nbsp; &amp;nbsp; + &lt;SPAN&gt;"splice in a wall."&lt;/SPAN&gt; );
&amp;nbsp;
&amp;nbsp; schemaBuilder.SetSchemaName( &lt;SPAN&gt;"WireSpliceLocation"&lt;/SPAN&gt; );
&amp;nbsp;
&amp;nbsp; &lt;SPAN&gt;Schema&lt;/SPAN&gt; schema = schemaBuilder.Finish(); &lt;SPAN&gt;// register the Schema object&lt;/SPAN&gt;
&amp;nbsp;
&amp;nbsp; &lt;SPAN&gt;// create an entity (object) for this schema (class)&lt;/SPAN&gt;
&amp;nbsp; &lt;SPAN&gt;Entity&lt;/SPAN&gt; entity = &lt;SPAN&gt;new&lt;/SPAN&gt; &lt;SPAN&gt;Entity&lt;/SPAN&gt;( schema );
&amp;nbsp;
&amp;nbsp; &lt;SPAN&gt;// get the field from the schema&lt;/SPAN&gt;
&amp;nbsp; &lt;SPAN&gt;Field&lt;/SPAN&gt; fieldSpliceLocation = schema.GetField(&lt;SPAN&gt;"WireSpliceLocation"&lt;/SPAN&gt; );
&amp;nbsp;
&amp;nbsp; entity.Set&amp;lt;&lt;SPAN&gt;XYZ&lt;/SPAN&gt;&amp;gt;( fieldSpliceLocation, dataToStore, &lt;SPAN&gt;DisplayUnitType&lt;/SPAN&gt;.DUT_METERS ); &lt;SPAN&gt;// set the value for this entity&lt;/SPAN&gt;
&amp;nbsp;
&amp;nbsp; wall.SetEntity( entity ); &lt;SPAN&gt;// store the entity in the element&lt;/SPAN&gt;
&amp;nbsp;
&amp;nbsp; &lt;SPAN&gt;// get the data back from the wall&lt;/SPAN&gt;
&amp;nbsp; &lt;SPAN&gt;Entity&lt;/SPAN&gt; retrievedEntity = wall.GetEntity( schema );
&amp;nbsp;
&amp;nbsp; &lt;SPAN&gt;XYZ&lt;/SPAN&gt; retrievedData = retrievedEntity.Get&amp;lt;&lt;SPAN&gt;XYZ&lt;/SPAN&gt;&amp;gt;( schema.GetField( &lt;SPAN&gt;"WireSpliceLocation"&lt;/SPAN&gt; ),
&amp;nbsp; &amp;nbsp; &lt;SPAN&gt;DisplayUnitType&lt;/SPAN&gt;.DUT_METERS );
&amp;nbsp;
&amp;nbsp; createSchemaAndStoreData.Commit();
}&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;But How define a variable schema when i cannot create a new Schema ?&lt;BR /&gt;&lt;BR /&gt;Philippe.&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2017 14:32:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-retrieve-already-exist-extensible-storage/m-p/6830168#M60736</guid>
      <dc:creator>pmeigneux</dc:creator>
      <dc:date>2017-01-25T14:32:15Z</dc:date>
    </item>
    <item>
      <title>Re: How retrieve already exist Extensible Storage ?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-retrieve-already-exist-extensible-storage/m-p/6830194#M60737</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/2173978"&gt;@pmeigneux&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;The API documents return quite a few hits for the search word 'schema'. I can see one that lists the loaded schemas, another that looks for one given a GUID.&lt;/P&gt;
&lt;P&gt;Have you perused the search results?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-Matt&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2017 14:40:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-retrieve-already-exist-extensible-storage/m-p/6830194#M60737</guid>
      <dc:creator>matthew_taylor</dc:creator>
      <dc:date>2017-01-25T14:40:05Z</dc:date>
    </item>
    <item>
      <title>Re: How retrieve already exist Extensible Storage ?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-retrieve-already-exist-extensible-storage/m-p/6830623#M60738</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Dear Philippe,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thank you for your query.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Glad to hear you are looking into this important, useful and powerful functionality.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Many thanks to Matt for all the help you already provided!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;In addition to Matt’s suggestions, The Building Coder defines a dedicated topic group for extensible storage:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="http://thebuildingcoder.typepad.com/blog/about-the-author.html#5.23" target="_blank"&gt;http://thebuildingcoder.typepad.com/blog/about-the-author.html#5.23&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Philippe, you answer is already answered there, several times over.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;As far as I can tell, the extensible storage helper class JtNamedGuidStorage described in the post on Named Guid Storage for Project Identification shows how to implement what you are asking for.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I would be surprised if you run into any relevant questions on extensible storage that have not already been answered and published in that collection.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If you do, I will certainly add them!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Looking forward to seeing what you come up with&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I hope this helps.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Jeremy&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2017 16:48:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-retrieve-already-exist-extensible-storage/m-p/6830623#M60738</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2017-01-25T16:48:22Z</dc:date>
    </item>
  </channel>
</rss>

