<?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 to use OpenSharedParameterFile Method? in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-use-opensharedparameterfile-method/m-p/8766158#M79352</link>
    <description>&lt;P&gt;thanks&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/774564"&gt;@ollikat&lt;/a&gt;&amp;nbsp;, I didn't realize at first it was a C# programming question. Do you have any suggestions on what keywords to search for on google?&lt;/P&gt;</description>
    <pubDate>Thu, 02 May 2019 07:44:24 GMT</pubDate>
    <dc:creator>rita.aguiar</dc:creator>
    <dc:date>2019-05-02T07:44:24Z</dc:date>
    <item>
      <title>How to use OpenSharedParameterFile Method?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-use-opensharedparameterfile-method/m-p/3936103#M79344</link>
      <description>&lt;P&gt;I spent whole afternoon trying to figure out how to use&amp;nbsp;OpenSharedParameterFile Method...It seems easy, but when I debug the code, it always give me&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"Error in readParamDatabase", it's internal exception..anybody know how to solve that?&lt;img id="smileysad" class="emoticon emoticon-smileysad" src="https://forums.autodesk.com/i/smilies/16x16_smiley-sad.png" alt="Smiley Sad" title="Smiley Sad" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Really drive me crazy!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for any reply..T T&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;string fileName = @"C:\Users\Administrator\Desktop\revit\w1\try\" + datefromuser + ".txt";&lt;BR /&gt;FileStream fs = File.Create(fileName);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;commandData.Application.Application.SharedParametersFilename = fileName;&lt;/P&gt;&lt;P&gt;try&lt;BR /&gt;{&lt;BR /&gt;SharedParameterFile = commandData.Application.Application.OpenSharedParameterFile();&lt;BR /&gt;}&lt;BR /&gt;catch (Autodesk.Revit.Exceptions.ApplicationException) { }&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;DefinitionGroup sharedParameterGroup = SharedParameterFile.Groups.Create("RevitParameters");&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to create a new shared paramter file and try to add some shared parameter..&lt;/P&gt;</description>
      <pubDate>Fri, 24 May 2013 22:43:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-use-opensharedparameterfile-method/m-p/3936103#M79344</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-05-24T22:43:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to use OpenSharedParameterFile Method?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-use-opensharedparameterfile-method/m-p/3938010#M79345</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could it be that file stream that is returned has "locked" the file for it self. At least File.Create documentation says this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"The FileStream object created by this method has a default FileShare value of None; no other process or code can access the created file until the original file handle is closed."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
      <pubDate>Mon, 27 May 2013 05:16:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-use-opensharedparameterfile-method/m-p/3938010#M79345</guid>
      <dc:creator>ollikat</dc:creator>
      <dc:date>2013-05-27T05:16:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to use OpenSharedParameterFile Method?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-use-opensharedparameterfile-method/m-p/3941665#M79346</link>
      <description>&lt;P&gt;Thanks for the answer, Finally I find the problem...it's because my shared parameter file is empty....T T..spend me so much time....&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2013 21:16:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-use-opensharedparameterfile-method/m-p/3941665#M79346</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-05-29T21:16:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to use OpenSharedParameterFile Method?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-use-opensharedparameterfile-method/m-p/6875828#M79347</link>
      <description>&lt;P&gt;Hello &amp;nbsp;cjl0411&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;you still active here? I got the same question for a different reason, would you please give me your email and &amp;nbsp;help me out? thanks a lot!&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;shrl007@163.com&lt;/P&gt;</description>
      <pubDate>Tue, 14 Feb 2017 05:55:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-use-opensharedparameterfile-method/m-p/6875828#M79347</guid>
      <dc:creator>1368026189</dc:creator>
      <dc:date>2017-02-14T05:55:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to use OpenSharedParameterFile Method?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-use-opensharedparameterfile-method/m-p/6875857#M79348</link>
      <description>&lt;P&gt;@&lt;SPAN&gt;Jeremy Tammik&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;It works well sometime but sometime it doesn't work!&lt;/P&gt;&lt;P&gt;app.OpenSharedParameterFile() get a null as return!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Error in readParamDatabase&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Feb 2017 06:36:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-use-opensharedparameterfile-method/m-p/6875857#M79348</guid>
      <dc:creator>1368026189</dc:creator>
      <dc:date>2017-02-14T06:36:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to use OpenSharedParameterFile Method?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-use-opensharedparameterfile-method/m-p/8762797#M79349</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4284051"&gt;@1368026189&lt;/a&gt;&amp;nbsp;&amp;nbsp;@Anonymous&amp;nbsp;&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/774564"&gt;@ollikat&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a similar issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does anyone know what could be causing this?&lt;/P&gt;
&lt;P&gt;The Revit document already has a Shared Parameter file. I just wanted to use its parameters so I was trying to open it with the&amp;nbsp;OpenSharedParameterFile method.&lt;/P&gt;
&lt;P&gt;Many thanks.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="ShareParameter file 2.png" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/631706iDBF6F3F23137E772/image-size/large?v=v2&amp;amp;px=999" role="button" title="ShareParameter file 2.png" alt="ShareParameter file 2.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Apr 2019 17:28:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-use-opensharedparameterfile-method/m-p/8762797#M79349</guid>
      <dc:creator>rita.aguiar</dc:creator>
      <dc:date>2019-04-30T17:28:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to use OpenSharedParameterFile Method?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-use-opensharedparameterfile-method/m-p/8762867#M79350</link>
      <description>&lt;P&gt;The thing is, app is null because it is defined in the first method, while the open shared parameter file is in the second method:&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="ShareParameter file 3.png" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/631712i4EF7F8D8064CED29/image-size/large?v=v2&amp;amp;px=999" role="button" title="ShareParameter file 3.png" alt="ShareParameter file 3.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Apr 2019 17:45:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-use-opensharedparameterfile-method/m-p/8762867#M79350</guid>
      <dc:creator>rita.aguiar</dc:creator>
      <dc:date>2019-04-30T17:45:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to use OpenSharedParameterFile Method?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-use-opensharedparameterfile-method/m-p/8765956#M79351</link>
      <description>&lt;P&gt;So...seems to me that you have managed to figure out issues in your code. Or is there still something?&lt;BR /&gt;&lt;BR /&gt;Seems to me, that you are new to C#. I would guess that you will face many similar issues, and probably the problem will not be the Revit API, but the programming environment in general. For those issues google &amp;amp; stackoverflow is your best friend. Detailed instructions to not Revit API specific issues aren't necessary provided here.&lt;/P&gt;</description>
      <pubDate>Thu, 02 May 2019 04:56:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-use-opensharedparameterfile-method/m-p/8765956#M79351</guid>
      <dc:creator>ollikat</dc:creator>
      <dc:date>2019-05-02T04:56:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to use OpenSharedParameterFile Method?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-use-opensharedparameterfile-method/m-p/8766158#M79352</link>
      <description>&lt;P&gt;thanks&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/774564"&gt;@ollikat&lt;/a&gt;&amp;nbsp;, I didn't realize at first it was a C# programming question. Do you have any suggestions on what keywords to search for on google?&lt;/P&gt;</description>
      <pubDate>Thu, 02 May 2019 07:44:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-use-opensharedparameterfile-method/m-p/8766158#M79352</guid>
      <dc:creator>rita.aguiar</dc:creator>
      <dc:date>2019-05-02T07:44:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to use OpenSharedParameterFile Method?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-use-opensharedparameterfile-method/m-p/12650339#M79353</link>
      <description>&lt;P&gt;It may be too late, but if anyone has a similar problem, please pay attention to the encoding used for the &lt;SPAN&gt;shared parameter file&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Mar 2024 10:33:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-use-opensharedparameterfile-method/m-p/12650339#M79353</guid>
      <dc:creator>ilgnv88</dc:creator>
      <dc:date>2024-03-19T10:33:11Z</dc:date>
    </item>
  </channel>
</rss>

