Inventor Engineer-to-Order

Inventor Engineer-to-Order

Reply
Contributor
Bull_Frog_5299
Posts: 12
Registered: ‎06-14-2012
Message 1 of 5 (236 Views)

how to load a dll with ETO 2013

236 Views, 4 Replies
11-12-2012 02:57 PM

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.

Active Contributor
Chris_Rogers
Posts: 44
Registered: ‎06-22-2009
Message 2 of 5 (230 Views)

Re: how to load a dll with ETO 2013

11-12-2012 04:41 PM in reply to: Bull_Frog_5299

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?

-Chris Rogers
Inventor Certified Professional
________________________________________________________
If this post helps, please click the "Thumbs up"/"Kudos"
If this post gives the solution, please click "Accept as Solution"
Contributor
Bull_Frog_5299
Posts: 12
Registered: ‎06-14-2012
Message 3 of 5 (219 Views)

Re: how to load a dll with ETO 2013

11-13-2012 06:49 AM in reply to: Chris_Rogers

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.

 

Intent Code:

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")

End Function

 

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.

Active Contributor
Chris_Rogers
Posts: 44
Registered: ‎06-22-2009
Message 4 of 5 (202 Views)

Re: how to load a dll with ETO 2013

11-13-2012 08:38 AM in reply to: Bull_Frog_5299

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?

-Chris Rogers
Inventor Certified Professional
________________________________________________________
If this post helps, please click the "Thumbs up"/"Kudos"
If this post gives the solution, please click "Accept as Solution"
Contributor
Bull_Frog_5299
Posts: 12
Registered: ‎06-14-2012
Message 5 of 5 (176 Views)

Re: how to load a dll with ETO 2013

11-13-2012 01:42 PM in reply to: Chris_Rogers

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.

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.

Announcements
Manufacturing Community
The Manufacturing Community provides additional access to tips, tutorials, blogs and networking with peers.