So i've seen this amazing topic about embedding an image to the dll.
https://forums.autodesk.com/t5/revit-api-forum/ribbon-panel-button-image-from-embedded-resource/td-p...
And then i asked my self if there is a way to embedd a revit project to the .dll file
First step would be to change it to an embedded resource (obviously). However, i don't know what to do after that.
Can anyone help me? Thanks!
So i've seen this amazing topic about embedding an image to the dll.
https://forums.autodesk.com/t5/revit-api-forum/ribbon-panel-button-image-from-embedded-resource/td-p...
And then i asked my self if there is a way to embedd a revit project to the .dll file
First step would be to change it to an embedded resource (obviously). However, i don't know what to do after that.
Can anyone help me? Thanks!
Hi:
I have tried some similar softwares before, but not for Revit developing.
I am not quite sure if they work well for Revit API developers. We have not yet thought about merging several dll files into one single .dll file and deploy it.
But if you are interested, try the following links:
https://github.com/Fody/Costura : Only output .exe file (.exe file also works as a .dll class library file)
https://github.com/dotnet/ILMerge : microsoft official tool, no GUI
Hi:
I have tried some similar softwares before, but not for Revit developing.
I am not quite sure if they work well for Revit API developers. We have not yet thought about merging several dll files into one single .dll file and deploy it.
But if you are interested, try the following links:
https://github.com/Fody/Costura : Only output .exe file (.exe file also works as a .dll class library file)
https://github.com/dotnet/ILMerge : microsoft official tool, no GUI
It is very simple and obviously has nothing to do with the Revit API.
Search for something like 'extract embedded resource .net':
https://duckduckgo.com/?q=extract+embedded+resource+.net
It is very simple and obviously has nothing to do with the Revit API.
Search for something like 'extract embedded resource .net':
https://duckduckgo.com/?q=extract+embedded+resource+.net
A dll is designed to embed any binary data, no matter the data is a string, an image, an executable, or another dll. The way reading the data at runtime is the same. It really matters how you work with the embedded data. In your case, it's a rvt file so you can read the data and write the data to disk using FileStream. Then use Revit API to open that saved rvt file to continue your business.
A dll is designed to embed any binary data, no matter the data is a string, an image, an executable, or another dll. The way reading the data at runtime is the same. It really matters how you work with the embedded data. In your case, it's a rvt file so you can read the data and write the data to disk using FileStream. Then use Revit API to open that saved rvt file to continue your business.
Can't find what you're looking for? Ask the community or share your knowledge.