Not implemented (Exception from HRESULT: 0x80004001 (E_NOTIMPL))

Not implemented (Exception from HRESULT: 0x80004001 (E_NOTIMPL))

Anonymous
Not applicable
5,574 Views
8 Replies
Message 1 of 9

Not implemented (Exception from HRESULT: 0x80004001 (E_NOTIMPL))

Anonymous
Not applicable
Hi,

In my VB.NET 2008 Inventor Add-in I use some apprentice functions. The apprentice code is in a separate VB6.0 ActiveX exe which the VB.NET code references using COM (because apprentice code needs to run out of process). So far everything works fine.

For easy maintenance I'd like all my code in Visual Studio 2008, so I started a new Class Library project, copied the code into the new project and compiled it. In the add-in I made a new reference to the Class Library dll file (not with COM but native .NET this time) and updated the code to use the new reference. But now I get the following error: Not implemented (Exception from HRESULT: 0x80004001 (E_NOTIMPL)). So I thought maybe because the Class Library is a dll file it also runs in the same process and the Apprentice code fails. So I tried the same with a new Console EXE project and repeated everything. Unfortunately I got the same error.

So I'm kinda stuck here... does anyone know what I'm doing wrong here?

Thanks,
Daniël Reesing
IV2010 SP2
0 Likes
5,575 Views
8 Replies
Replies (8)
Message 2 of 9

Anonymous
Not applicable
There are two things I can think of offhand. First is that you can't call Apprentice in the same process as Inventor (if you were, why aren't you just having Inventor do everything?). Second is that some methods and properties from the Inventor Application aren't available in Apprentice, in which case you do get the Not Implemented exception. Some of these methods have a mentioning in the API help when they aren't usable in Apprentice.
0 Likes
Message 3 of 9

Anonymous
Not applicable
Actually there are some things (or at least there used to be) you can do with apprentice that you can not do with the Inventor API. What I remember was copying an assembly to a new directory. With Inventor I had to run through every file and update the references to the new filenames while with Apprentice I could have collected them all up into an object and saved them with a single function call, allowing it to replace the references for me.
> {quote:title=peter.townsend wrote:}{quote}
> There are two things I can think of offhand. First is that you can't call Apprentice in the same process as Inventor (if you were, why aren't you just having Inventor do everything?).

I'm wondering if your new class is using the Apprentice API or the Inventor API. I take it that you're performing Apprentice work in this dll. If your add-in calls your new dll and the dll is using the Apprentice API, it will not work.
Your best bet is to try to convert your Apprentice code to use the Inventor API instead. I think once you do that you should be up and running.
0 Likes
Message 4 of 9

Anonymous
Not applicable
I actually use it for copying an assembly with some drawings and this used to work fine in an VB6.0 ActiveX exe. Rewriting the code to use the Inventor API should be possible, but this is more work and the code will be more complex than with the Apprentice API.

Isn't it possible to make a dll or exe that runs out-of-process but is referenced by the Addin? This way I can still use the code that I already have.

Cheers, Daniël
0 Likes
Message 5 of 9

Anonymous
Not applicable

Isn't it possible to make a dll or exe that
runs out-of-process but is referenced by the Addin?

 

A dll, no; by definition, the code executes in
the process space of the executable that called it.  An ActiveX EXE,
yes.






Брайян Р.
Ивашкевич


style="FONT-SIZE: 14pt; FONT-FAMILY: Verdana">inventor
specialist


style="FONT-SIZE: 14pt; FONT-FAMILY: Verdana">
href="http://www.corefurnace.com/">core furnace systems

0 Likes
Message 6 of 9

Anonymous
Not applicable
Yes, I know an ActiveX exe runs out-of-process. But what is the .NET equivalent to an ActiveX exe?

I've read somewhere that 'Windows Communication Foundation' is the latest evolution of COM (http://en.wikipedia.org/wiki/Windows_Communication_Foundation). Is this what I should use?

Thanks, Daniël
0 Likes
Message 7 of 9

Anonymous
Not applicable
Is there really no one who can help me with this?

I you have any thoughts, please share them with me.

Daniël
0 Likes
Message 8 of 9

Anonymous
Not applicable
I haven't had time to look through these much, but they came up with a
Google search

You might recognize a name in the first one ;~)
http://social.msdn.microsoft.com/Forums/en-US/vbinterop/thread/82d696c4-788f-47e8-815d-ada5ceb1ff13


http://www.codeproject.com/KB/COM/ActiveXEXEWrappers.aspx

--
KWiKMcad
Kent Keller
"djreesing" wrote in message news:6350364@discussion.autodesk.com...
Is there really no one who can help me with this?

I you have any thoughts, please share them with me.

Daniël
0 Likes
Message 9 of 9

Anonymous
Not applicable
Thanks!

I'll have a look at it.

Daniël
0 Likes