Announcements
Due to scheduled maintenance, the Autodesk Community will be inaccessible from 10:00PM PDT on Oct 16th for approximately 1 hour. We appreciate your patience during this time.
Revit API Forum
Welcome to Autodesk’s Revit API Forums. Share your knowledge, ask questions, and explore popular Revit API topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Revit not load resources (resx file)

0 REPLIES 0
Reply
Message 1 of 1
minet.axel
309 Views, 0 Replies

Revit not load resources (resx file)

Hello,

I use a dll in which I share the content with 2 project, a project revit and a project exe. This allows me to use the data without starting Revit.

 

Here are my 3 projects:
MySharedProject.dll
- Strings.resx
- Strings.fr-FR.resx
MyRevitProject.dll
- Strings.resx
- Strings.fr-FR.resx
MyExeProject.exe
- Strings.resx
- Strings.fr-FR.resx

 

MyRevitProject.dll and MyExeProject.exe use MySharedProject.dll.

 

MySharedProject does not contain any reference to Revit.

 

Revit not load the resources fr-FR de MySharedProject. Revit uses the default resources (english). I am obliged to use the function at startup of revit: System.Reflection.Assembly.LoadFile(path)
path : "C:\Users\USER A\AppData\Roaming\Autodesk\Revit\Addins\2018\fr-FR\MySharedProject.resources.dll" for resources load.

 

Yet it uses the resources fr-FR of MyRevitProject.dll

 

Do you have another tip?

0 REPLIES 0

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Rail Community


Autodesk Design & Make Report