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: 

Embed Revit Project in DLL

3 REPLIES 3
Reply
Message 1 of 4
Anonymous
413 Views, 3 Replies

Embed Revit Project in DLL

Anonymous
Not applicable

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!

0 Likes

Embed Revit Project in DLL

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!

3 REPLIES 3
Message 2 of 4
jlpgy
in reply to: Anonymous

jlpgy
Advocate
Advocate

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

单身狗;代码狗;健身狗;jolinpiggy@hotmail.com
0 Likes

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

单身狗;代码狗;健身狗;jolinpiggy@hotmail.com
Message 3 of 4
jeremytammik
in reply to: Anonymous

jeremytammik
Autodesk
Autodesk

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

 



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

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

 



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

Message 4 of 4
Kennan.Chen
in reply to: Anonymous

Kennan.Chen
Advocate
Advocate

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.

0 Likes

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.

Post to forums  

Autodesk Design & Make Report