Is there a size limit for Revit 2015 Add-in dlls ?

Is there a size limit for Revit 2015 Add-in dlls ?

Anonymous
Not applicable
409 Views
2 Replies
Message 1 of 3

Is there a size limit for Revit 2015 Add-in dlls ?

Anonymous
Not applicable

I have a complex add-in so the dll size gets somewhat large.
In Revit 2013 and 2014 the size is 21.9 MB (22,998,528 bytes) and works fine in both.
In Revit 2015 the size is 22.3 MB (23,481,856 bytes) and when I run it I get the attached error (LoadError.png).

But if I remove some of the tools in the add-in and get its size down to 21.7 MB (22,795,264 bytes), it works fine.

 

So my question is, is this because Revit has a maximum threshold for the add-in dll size ? or is this linked to the .NET symbol limit ?
I am using C++ (mixed managed and native)


Things I tried:
1 - This might sound like the tools I removed are the cause of the problem, but I tried removing different combinations of tools and all tools work but they don't work all at the same time.
2 - Tried compiling with /GF "Enable String Pooling" but didn't help.

0 Likes
410 Views
2 Replies
Replies (2)
Message 2 of 3

jeremytammik
Autodesk
Autodesk

Dear Waleed511,

 

That really is very large indeed.

 

Why do you not split out some of the components you are using into separate DLLs?

 

Cheers,

 

Jeremy



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

0 Likes
Message 3 of 3

Anonymous
Not applicable

Hi Jeremy,

 

I have already split a portion of the code (that didn't need /CLI or any access to revit resources) into a separate pure native dll which I load dynamically on start.

The problem with doing any further splitting is it will require major code restructuring and not sure if eventually will be possible. So I hoped someone will have faced this problem before and knows a solution for it.

0 Likes