Inventor Customization

Inventor Customization

Reply
Moderator
filat
Posts: 439
Registered: ‎05-14-2009
Message 1 of 4 (274 Views)

Multi-threaded through the API

274 Views, 3 Replies
07-29-2012 11:05 PM

You can organize a multi-threaded work with data through Inventor API? For example, there is a assembly and I need the first part of assembling a list of items to consider in a data set, the second part of the list - in the second data set, the third - the third and so on up to N, where N - depends on how many threads can run in the system . Whether these flows are processed and to receive data in parallel? Or go to the consistent implementation of this algorithm will first be processed by the first part, and only after it will start the second ...?

ADN Support Specialist
philippe.leefsma
Posts: 646
Registered: ‎06-02-2009
Message 2 of 4 (233 Views)

Re: Multi-threaded through the API

08-08-2012 08:50 AM in reply to: filat

Hi,

 

Basically the Inventor API is not multi threaded, so there is little advantage to write a multi-threaded application if several threads are going to perform API calls. What will happen is that each call will be queued by the COM server and processed sequentially. You can however have a multi-theaded application where a single thread access the Inventor API and other threads perform custom logic, either by using the data stored by the Inventor thread, access your custom database and so on...

 

I hope it helps.

 

Regards,

Philippe.



Philippe Leefsma
Developer Technical Services
Autodesk Developer Network

Valued Contributor
eric.mathews
Posts: 86
Registered: ‎04-19-2006
Message 3 of 4 (199 Views)

Re: Multi-threaded through the API

09-14-2012 07:18 AM in reply to: philippe.leefsma

Has the multi-threaded status of the Inventor API changed?

ADN Support Specialist
philippe.leefsma
Posts: 646
Registered: ‎06-02-2009
Message 4 of 4 (194 Views)

Re: Multi-threaded through the API

09-14-2012 07:31 AM in reply to: eric.mathews

Hi Eric,

 

No and there is no plan to provide multi-threaded capabilities to the API in a near future unfortunately. I would say, for the reason I provided above, as long as the API is a COM API, you have no chance to see it multi-threaded.

 

Regards,

Philippe. 



Philippe Leefsma
Developer Technical Services
Autodesk Developer Network

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.