Search code examples
c#embedrevit-api

Open embedded file in Windows program


I put a file on my Resources in my C# program. I try to open it in a specific app but don't understand how.

I already see this: .NET: Open files, which are embedded in a resource file

and this: Use embedded file from resources.resx in program

I need to open "TEST.rvt" (Autodesk Revit file), Which is an embedded resource, in Revit.exe

I don't want to copy the file to my system, so setting the Copy to Output Directory option is not possible.

Is it possible?

This is my little program


Solution

  • As I can read on many thread in the internet, it seem to be impossible. I will copy my .rvt in a temp folder and delete it just before using them.

    To copy them I use the solution from this thread