I am still trying to upgrade a project from 2010 to 2013. The 2010 project uses several CFUNCS which are compiled into dll files. I don't know how to register these dll files with ETO. I've tried putting the files in the places where Inventor/Intent should be looking. I've also placed the corresponding iks files where I think they belong, but ETO keeps telling me unable to load "mydll.dll" DLL. Any guidance will be much appreciated. Thank you.
I have a few questions so we can understand the problem better:
Where have you placed dll's and corresponding iks files?
What does your intent code look like that accesses the DLL?
When does it show you an error on the CFuncs? On building an Intent assembly?
I have placed the iks files in the Design Files Directory of my project. I also placed them at: C:\Program Files\Autodesk\Inventor ETO Components 2013\Library\Inventor\ivhostlib just for giggles.
I placed dll files C:\Program Files\Autodesk\Inventor ETO Components 2013\Bin , C:\Windows\System32, C:\Windows\SysWOW64 (this is a 64-bit system), and also in the Design files directory of my project.
I realize these files only need to be in one correct place, but I'm grasping at straws trying to get this to work.
Dim BasePoint1 As Point = (ivfindusingray(StartingPoint,Vector(0,1,0),Building.WallGroup.BaseBoard1))
ivfindusingray is defined in ExtraStuff.iks as:
Function ivFindUsingRay(objStartPoint As Point, objUnitVector As Vector, objPart As Part) As Point
ivFindUsingRay = CFunc("iv_FindUsingRay", "ExtraStuff")
ExtraStuff.dll is the trouble maker that ETO can't seem to load. How do I load it? Everything works fine on the original 2010 machine. I just need to get all the pieces in place on the 2013 machine.
You say that you have compiled the old CFunc logic into a dll but it looks like you are still calling the CFunc in the Intent function ivFindUsingRay.
Where are you getting the instance of the ExtraStuff.dll in Intent code?
Could you attach your dll so I can see how it is built?
Here is the trouble maker. I gave a fake file name earlier to protect the innocent. I changed the .dll to a .vtf so I could attach the file.
Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register
Start with some of our most frequented solutions to get help installing your software.
Upgrading to a 2015 product? Make sure to check these out 1st!
Created by the community for the community, Autodesk Exchange Apps for Autodesk Inventor helps you achieve greater speed, accuracy, and automation from concept to manufacturing.