Need help: Odd behavior when calling a 3rd party library

Need help: Odd behavior when calling a 3rd party library

dhaverstick
Advocate Advocate
438 Views
3 Replies
Message 1 of 4

Need help: Odd behavior when calling a 3rd party library

dhaverstick
Advocate
Advocate

I have an Inventor addin that I recently added some functionality to. To make some calculations that I needed to make, I referenced the MathNet.Spatial library that I downloaded as a NuGet package. The Inventor addin compiles without issue and I made sure there was a copy of the MathNet.Spatial dll in the addin installation directory. However, when I try to run the addin, I get an error telling me "Could not load file or assembly 'MathNet.Spatial, version= blah, blah, blah' or one of its dependencies. The system cannot find the file specified."

Annotation 2020-01-31 134019.jpg

 

Does anyone have any ideas why this dll cannot be found/loaded?

 

Thanks in advance,

 

Darren Haverstick

Paul Mueller Company

0 Likes
439 Views
3 Replies
Replies (3)
Message 2 of 4

bradeneuropeArthur
Mentor
Mentor

Take a look at this!

https://stackoverflow.com/questions/19273918/added-mathnet-numerics-as-reference-but-the-executable-...

Regards,

Arthur Knoors

Autodesk Affiliations & Links:
blue LinkedIn LogoSquare Youtube Logo Isolated on White Background


Autodesk Software:Inventor Professional 2025 | Vault Professional 2024 | Autocad Mechanical 2024
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:
Drawing List!|
Toggle Drawing Sheet!|
Workplane Resize!|
Drawing View Locker!|
Multi Sheet to Mono Sheet!|
Drawing Weld Symbols!|
Drawing View Label Align!|
Open From Balloon!|
Model State Lock!
Posts and Ideas:
My Ideas|
Dimension Component!|
Partlist Export!|
Derive I-properties!|
Vault Prompts Via API!|
Vault Handbook/Manual!|
Drawing Toggle Sheets!|
Vault Defer Update!

! For administrative reasons, please mark a "Solution as solved" when the issue is solved !


 


EESignature

0 Likes
Message 3 of 4

dhaverstick
Advocate
Advocate

As I stated in my original post, the MathNet dll files are in the same directory as my Inventor addin dll. 

 

Darren

0 Likes
Message 4 of 4

chandra.shekar.g
Autodesk Support
Autodesk Support

@dhaverstick,

 

Check the supported .net framework of MathNet.Spatial.dll with version of Inventor. Usually, if framework is not matching. This kind of error may appear.

 

Thanks and regards,


CHANDRA SHEKAR G
Developer Advocate
Autodesk Developer Network



0 Likes