Autodesk.iLogic.Interfaces and Copy Local
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Making DLLs using VB in Visual Studio 2017. I've found that to get the DoubleForEquals type to be recognized in my VB code, I need to add a reference to the project to Autodesk.iLogic.Interfaces.dll. I found some obscure Autodesk documentation which suggests it should be in C:\Program Files\Autodesk\Inventor 2018\Bin\iLogicBin, but that directory doesn't exist. It's actually in C:\Program Files\Autodesk\Inventor 2018\Bin. Then I have to put an Imports Autodesk.iLogic.Interfaces at the beginning of the source file that uses DoubleForEquals.
This works fine but I noticed that when I compile the project, it says "2 succeeded" and when I look in my "Build output path" directory, there's a copy of Autodesk.iLogic.Interfaces.dll there along with my DLL. Looking at the reference in Visual Studio, I noticed "Copy Local" said "True" on that reference. It allowed me to change it to false, and that did stop it from making the copy.
If I distribute my DLL and somebody else with Inventor tries to use it, will it have trouble finding Autodesk.iLogic.Interfaces.dll? Should I leave Copy Local as True and distribute Autodesk.iLogic.Interfaces.dll with my DLL? I've read some descriptions where Copy Local True actually caused some problems, and it was with this DLL. So I'm confused. Why was it True to begin with when the other references seem to default to False? What is this all about?
Thanks for your insight.