<?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 manifest localization in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/manifest-localization/m-p/6813816#M60859</link>
    <description>&lt;P&gt;Revit 2017.1.1&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have read the&amp;nbsp;&lt;A href="http://help.autodesk.com/view/RVT/2017/ENU/?guid=GUID-74C35C7C-22E8-4F7F-844F-E602EF45CFA2" target="_self"&gt;Localization&lt;/A&gt; web-page. This page has link to&amp;nbsp;&lt;A href="https://msdn.microsoft.com/en-us/library/e9zazcx5.aspx" target="_self"&gt;Walkthrough: Creating Managed Satellite DLLs&lt;/A&gt; article. That article describes how to create the assembly on the base of &lt;STRONG&gt;Visual Studio Add-in&lt;/STRONG&gt; template. But my Visual Studio 2015 hasn't such template.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&amp;gt; In &lt;SPAN class="label"&gt;Solution Explorer&lt;/SPAN&gt;, right-click &lt;STRONG&gt;Resource1.resx&lt;/STRONG&gt; and then click &lt;SPAN class="label"&gt;Properties&lt;/SPAN&gt;.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&amp;gt; In the &lt;SPAN class="label"&gt;Properties&lt;/SPAN&gt; window, change &lt;STRONG&gt;&lt;SPAN class="label"&gt;Build Action&lt;/SPAN&gt;&lt;/STRONG&gt; from &lt;STRONG&gt;&lt;SPAN class="label"&gt;Embedded Resource&lt;/SPAN&gt;&lt;/STRONG&gt; to &lt;STRONG&gt;&lt;SPAN class="label"&gt;None&lt;/SPAN&gt;&lt;/STRONG&gt;.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&amp;gt; At the command prompt, type &lt;STRONG&gt;AL.exe /embed:Resource1.resources /culture:en-US /out:Add-In Name.resources.dll&lt;/STRONG&gt;.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&amp;gt; Replace Add-In Name by using the name of your add-in. For example, if your add-in project is named MyAddin, then the /out: switch would be&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&amp;gt; /out:MyAddin.resources.dll. The /out: name must match the name of your project; otherwise, the resource DLL will not be found.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ok... I switched the &lt;STRONG&gt;Build Action&lt;/STRONG&gt; and called the utilities:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;cd /D "D:\projects\vs\Revit\CodeExamples\Transactions"&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;resgen TransactionExample.resx&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;AL.exe /embed:TransactionExample.resources /culture:en /out:TransactionExample.resources.dll&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;After compilation of my add-in, I created&amp;nbsp; &lt;STRONG&gt;en&lt;/STRONG&gt; subdirectory in the output directory and copied the &lt;STRONG&gt;TransactionExample.resources.dll&lt;/STRONG&gt; into that folder.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is my manifest file:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&amp;lt;?xml version="1.0" encoding="utf-8" standalone="no"?&amp;gt;
&amp;lt;RevitAddIns&amp;gt;
   &amp;lt;AddIn Type="Command"&amp;gt;
      &amp;lt;Assembly&amp;gt;Transactions\Transactions.dll&amp;lt;/Assembly&amp;gt;
      &amp;lt;AddInId&amp;gt;{C857093F-594E-4384-9FA3-5897D874C0FD}&amp;lt;/AddInId&amp;gt;
      &amp;lt;FullClassName&amp;gt;Revit.CodeExamples.Transactions.TransactionExample&amp;lt;/FullClassName&amp;gt;
      &amp;lt;Text&amp;gt;@Text&amp;lt;/Text&amp;gt;
      &amp;lt;VendorId&amp;gt;@VendorId&amp;lt;/VendorId&amp;gt;
      &amp;lt;VendorDescription&amp;gt;@VendorDescription&amp;lt;/VendorDescription&amp;gt; 
      &amp;lt;VisibilityMode&amp;gt;NotVisibleInFamily&amp;lt;/VisibilityMode&amp;gt;
      &amp;lt;Discipline&amp;gt;Structure&amp;lt;/Discipline&amp;gt;
      &amp;lt;AvailabilityClassName&amp;gt;Revit.CodeExamples.Transactions.TransactionExampleAvailability&amp;lt;/AvailabilityClassName&amp;gt;
      &amp;lt;LongDescription&amp;gt;@LongDescription&amp;lt;/LongDescription&amp;gt;
      &amp;lt;TooltipImage&amp;gt;@zero&amp;lt;/TooltipImage&amp;gt;
      &amp;lt;LargeImage&amp;gt;@zero&amp;lt;/LargeImage&amp;gt;
   &amp;lt;/AddIn&amp;gt;
&amp;lt;/RevitAddIns&amp;gt;&lt;/PRE&gt;
&lt;P&gt;But Revit doesn't display the text from resources for &lt;STRONG&gt;/language ENU&lt;/STRONG&gt; key. Look the attached screens, please. Why does it happen?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Usually, when I create localized resources I don't switch &lt;STRONG&gt;Embedded Resource&lt;/STRONG&gt; to &lt;STRONG&gt;None&lt;/STRONG&gt;, and IDE creates resources &lt;SPAN class="ref_result"&gt; automatically&lt;/SPAN&gt;. But Revit doesn't see these localized resources also. Therefore I tried to use &lt;SPAN class="ref_result"&gt;focus&lt;/SPAN&gt;es with &lt;STRONG&gt;resgen.exe&lt;/STRONG&gt; and &lt;STRONG&gt;al.exe&lt;/STRONG&gt;. as recommends Autodesk...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My project code source is attached too.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 18 Jan 2017 15:55:23 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-01-18T15:55:23Z</dc:date>
    <item>
      <title>manifest localization</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/manifest-localization/m-p/6813816#M60859</link>
      <description>&lt;P&gt;Revit 2017.1.1&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have read the&amp;nbsp;&lt;A href="http://help.autodesk.com/view/RVT/2017/ENU/?guid=GUID-74C35C7C-22E8-4F7F-844F-E602EF45CFA2" target="_self"&gt;Localization&lt;/A&gt; web-page. This page has link to&amp;nbsp;&lt;A href="https://msdn.microsoft.com/en-us/library/e9zazcx5.aspx" target="_self"&gt;Walkthrough: Creating Managed Satellite DLLs&lt;/A&gt; article. That article describes how to create the assembly on the base of &lt;STRONG&gt;Visual Studio Add-in&lt;/STRONG&gt; template. But my Visual Studio 2015 hasn't such template.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&amp;gt; In &lt;SPAN class="label"&gt;Solution Explorer&lt;/SPAN&gt;, right-click &lt;STRONG&gt;Resource1.resx&lt;/STRONG&gt; and then click &lt;SPAN class="label"&gt;Properties&lt;/SPAN&gt;.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&amp;gt; In the &lt;SPAN class="label"&gt;Properties&lt;/SPAN&gt; window, change &lt;STRONG&gt;&lt;SPAN class="label"&gt;Build Action&lt;/SPAN&gt;&lt;/STRONG&gt; from &lt;STRONG&gt;&lt;SPAN class="label"&gt;Embedded Resource&lt;/SPAN&gt;&lt;/STRONG&gt; to &lt;STRONG&gt;&lt;SPAN class="label"&gt;None&lt;/SPAN&gt;&lt;/STRONG&gt;.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&amp;gt; At the command prompt, type &lt;STRONG&gt;AL.exe /embed:Resource1.resources /culture:en-US /out:Add-In Name.resources.dll&lt;/STRONG&gt;.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&amp;gt; Replace Add-In Name by using the name of your add-in. For example, if your add-in project is named MyAddin, then the /out: switch would be&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&amp;gt; /out:MyAddin.resources.dll. The /out: name must match the name of your project; otherwise, the resource DLL will not be found.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ok... I switched the &lt;STRONG&gt;Build Action&lt;/STRONG&gt; and called the utilities:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;cd /D "D:\projects\vs\Revit\CodeExamples\Transactions"&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;resgen TransactionExample.resx&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;AL.exe /embed:TransactionExample.resources /culture:en /out:TransactionExample.resources.dll&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;After compilation of my add-in, I created&amp;nbsp; &lt;STRONG&gt;en&lt;/STRONG&gt; subdirectory in the output directory and copied the &lt;STRONG&gt;TransactionExample.resources.dll&lt;/STRONG&gt; into that folder.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is my manifest file:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&amp;lt;?xml version="1.0" encoding="utf-8" standalone="no"?&amp;gt;
&amp;lt;RevitAddIns&amp;gt;
   &amp;lt;AddIn Type="Command"&amp;gt;
      &amp;lt;Assembly&amp;gt;Transactions\Transactions.dll&amp;lt;/Assembly&amp;gt;
      &amp;lt;AddInId&amp;gt;{C857093F-594E-4384-9FA3-5897D874C0FD}&amp;lt;/AddInId&amp;gt;
      &amp;lt;FullClassName&amp;gt;Revit.CodeExamples.Transactions.TransactionExample&amp;lt;/FullClassName&amp;gt;
      &amp;lt;Text&amp;gt;@Text&amp;lt;/Text&amp;gt;
      &amp;lt;VendorId&amp;gt;@VendorId&amp;lt;/VendorId&amp;gt;
      &amp;lt;VendorDescription&amp;gt;@VendorDescription&amp;lt;/VendorDescription&amp;gt; 
      &amp;lt;VisibilityMode&amp;gt;NotVisibleInFamily&amp;lt;/VisibilityMode&amp;gt;
      &amp;lt;Discipline&amp;gt;Structure&amp;lt;/Discipline&amp;gt;
      &amp;lt;AvailabilityClassName&amp;gt;Revit.CodeExamples.Transactions.TransactionExampleAvailability&amp;lt;/AvailabilityClassName&amp;gt;
      &amp;lt;LongDescription&amp;gt;@LongDescription&amp;lt;/LongDescription&amp;gt;
      &amp;lt;TooltipImage&amp;gt;@zero&amp;lt;/TooltipImage&amp;gt;
      &amp;lt;LargeImage&amp;gt;@zero&amp;lt;/LargeImage&amp;gt;
   &amp;lt;/AddIn&amp;gt;
&amp;lt;/RevitAddIns&amp;gt;&lt;/PRE&gt;
&lt;P&gt;But Revit doesn't display the text from resources for &lt;STRONG&gt;/language ENU&lt;/STRONG&gt; key. Look the attached screens, please. Why does it happen?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Usually, when I create localized resources I don't switch &lt;STRONG&gt;Embedded Resource&lt;/STRONG&gt; to &lt;STRONG&gt;None&lt;/STRONG&gt;, and IDE creates resources &lt;SPAN class="ref_result"&gt; automatically&lt;/SPAN&gt;. But Revit doesn't see these localized resources also. Therefore I tried to use &lt;SPAN class="ref_result"&gt;focus&lt;/SPAN&gt;es with &lt;STRONG&gt;resgen.exe&lt;/STRONG&gt; and &lt;STRONG&gt;al.exe&lt;/STRONG&gt;. as recommends Autodesk...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My project code source is attached too.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jan 2017 15:55:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/manifest-localization/m-p/6813816#M60859</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-18T15:55:23Z</dc:date>
    </item>
    <item>
      <title>Re: manifest localization</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/manifest-localization/m-p/6814103#M60860</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Dear Andrey,&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 interesting 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;I have not worked with localised resources.&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;The first thought that comes to mind is:&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;This may be an issue with .NET functionality not working automatically as expected unless the assembly DLL lives in the same folder as or a subfolder of Revit.exe.&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;Have you checked that possibility?&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;I look forward to discovering and documenting a solution to this.&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 am sure that would be useful for others as well.&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, 18 Jan 2017 17:10:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/manifest-localization/m-p/6814103#M60860</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2017-01-18T17:10:50Z</dc:date>
    </item>
    <item>
      <title>Re: manifest localization</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/manifest-localization/m-p/6814855#M60861</link>
      <description>&lt;P&gt;I created new special HelloWorld project for demonstration of this problem and published it on Bitbucket &lt;A href="https://bitbucket.org/Andrey-Bushman/helloworld" target="_self"&gt;here&lt;/A&gt;. At the Russian forum Revit API (&lt;A href="http://adn-cis.org/forum/index.php?topic=7559.0" target="_self"&gt;here&lt;/A&gt;) I described a problem in more detail. After all my experiments I began to think that it never worked in Revit and was never checked by anybody, even by those who wrote documentation. I nevertheless hope that I am mistaken...&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jan 2017 22:00:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/manifest-localization/m-p/6814855#M60861</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-18T22:00:25Z</dc:date>
    </item>
    <item>
      <title>Re: manifest localization</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/manifest-localization/m-p/6815388#M60862</link>
      <description>&lt;P&gt;&lt;EM&gt;&amp;gt; This may be an issue with .NET functionality not working automatically as expected unless the assembly DLL lives in the same folder as or a subfolder of Revit.exe.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&amp;gt; &lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&amp;gt; Have you checked that possibility?&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It didn't help me. I tried to do it with my &lt;A href="https://bitbucket.org/Andrey-Bushman/helloworld" target="_self"&gt;HelloWorld&lt;/A&gt; project. I placed the output (the &lt;STRONG&gt;HelloWorld&lt;/STRONG&gt; directory with its content) into the "C:\Program Files\Autodesk\Revit 2017\AddIns\" directory.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also I edited my "C:\Users\developer\AppData\Roaming\Autodesk\Revit\Addins\2017\HelloWorld.addin" file:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&amp;lt;?xml version="1.0" encoding="utf-8" standalone="no"?&amp;gt;
&amp;lt;RevitAddIns&amp;gt;
  &amp;lt;AddIn Type="Command"&amp;gt;
    &amp;lt;Assembly&amp;gt;C:\Program Files\Autodesk\Revit 2017\AddIns\HelloWorld\HelloWorld.dll&amp;lt;/Assembly&amp;gt;
    &amp;lt;AddInId&amp;gt;{39E8DC8B-DC8F-44A5-ABC9-39442B5031ED}&amp;lt;/AddInId&amp;gt;
    &amp;lt;FullClassName&amp;gt;HelloWorld.ExternalCommand&amp;lt;/FullClassName&amp;gt;
    &amp;lt;Text&amp;gt;@Text&amp;lt;/Text&amp;gt;
    &amp;lt;VendorId&amp;gt;@VendorId&amp;lt;/VendorId&amp;gt;
    &amp;lt;VendorDescription&amp;gt;@VendorDescription&amp;lt;/VendorDescription&amp;gt;
    &amp;lt;VisibilityMode&amp;gt;NotVisibleInFamily&amp;lt;/VisibilityMode&amp;gt;
    &amp;lt;Discipline&amp;gt;Structure&amp;lt;/Discipline&amp;gt;
    &amp;lt;Discipline&amp;gt;Architecture&amp;lt;/Discipline&amp;gt;
    &amp;lt;AvailabilityClassName&amp;gt;HelloWorld.ExternalCommandAvailability&amp;lt;/AvailabilityClassName&amp;gt;
    &amp;lt;LongDescription&amp;gt;@LongDescription&amp;lt;/LongDescription&amp;gt;
    &amp;lt;TooltipImage&amp;gt;@TooltipImage&amp;lt;/TooltipImage&amp;gt;
    &amp;lt;LargeImage&amp;gt;@LargeImage&amp;lt;/LargeImage&amp;gt;
  &amp;lt;/AddIn&amp;gt;
&amp;lt;/RevitAddIns&amp;gt;&lt;/PRE&gt;
&lt;P&gt;But it didn't solve the problem.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jan 2017 07:35:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/manifest-localization/m-p/6815388#M60862</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-19T07:35:36Z</dc:date>
    </item>
  </channel>
</rss>

