Update iProperties without Inventor installed

Update iProperties without Inventor installed

Anonymous
Not applicable
513 Views
6 Replies
Message 1 of 7

Update iProperties without Inventor installed

Anonymous
Not applicable

What is the best way using the API to update the iProperties without have the Inventor installed?

 

I want have a service in a server (without Inventor) that in background will update some values of the iProperties.

 

It is possible do this with Apprentice? If yes, it is enought  link to the dll "Autodesk.Inventor.Interop.dll" for doing this?

 

Thanks & Regards,

Rui

0 Likes
514 Views
6 Replies
Replies (6)
Message 2 of 7

mucip
Collaborator
Collaborator

Hi,

You must be doing this using VB-Express and API...

 

Regards,

Mucip:)

0 Likes
Message 3 of 7

Anonymous
Not applicable

I am calling the ApprenticeServerComponent from an C# Windows Service and I am getting the following error when using the ApprenticeServerComponent in C#:

 

"Retrieving the COM class factory for component with CLSID {C343ED84-A129-11D3-B799-0060B0F159EF} failed due to the following error: 80040154."

 

The error appears in the following line:

ApprenticeServerComponent oApprentice = new ApprenticeServerComponent();
0 Likes
Message 4 of 7

mucip
Collaborator
Collaborator

Hi,

I think it's better to check below website (and many others in this forum) first...

 

http://modthemachine.typepad.com/my_weblog/2010/03/iproperties-without-inventor-apprentice.html

 

Regards,

Mucip:)

0 Likes
Message 5 of 7

Anonymous
Not applicable

When I call the ApprenticeServerComponent from an C# WindowsFormsApplication works well.

 

If I call exactly the same ApprenticeServerComponent code from a C# WindowsService appears the error:

 

"Retrieving the COM class factory for component with CLSID {C343ED84-A129-11D3-B799-0060B0F159EF} failed due to the following error: 80040154."

 

The error appears in the following line:

ApprenticeServerComponent oApprentice = new ApprenticeServerComponent();

 

0 Likes
Message 6 of 7

philippe.leefsma
Alumni
Alumni

You may hit some restrictions when trying to run Apprentice from a Windows service. As you describe the situation, you should rather use a WCF service running on your server that will instanciate your Apprentice component and do the job, this is proven to work well.

 

You may use Node.js as well, as I was blogging about it there:

 

http://adndevblog.typepad.com/cloud_and_mobile/2013/06/a-nodejs-server-running-apprentice-on-the-clo...

 

I hope it helps,

Philippe.



Philippe Leefsma
Developer Technical Services
Autodesk Developer Network

0 Likes
Message 7 of 7

Anonymous
Not applicable

I have changed my code to call ApprenticeServerComponent from a webservice instead of the first approach of call ApprenticeServerComponent from a Windows Service.

 

But the problem is exactly the same, when webservice in IIS call the ApprenticeServerComponent I get exactly the same error. 😞

If I run webservice from VStudio works well, but when I publish it to IIS I get the same COM error.

 

What could I change in IIS to make it work?

 

Thanks & Regards,

Rui

0 Likes