Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Will using VB express to multithread speed the program?

3 REPLIES 3
Reply
Message 1 of 4
jpblower
400 Views, 3 Replies

Will using VB express to multithread speed the program?

I have a repetetive task that will repeat 40k times.  I'm thinking about using VB express to write the operation and take advantage of multithreading.  However I'm concerned that even if I multithread the code VB will need to write back into IV and it won't speed anything up. 

 

For the time being I'm doing thousands of splits.  While I can split up the proccess of splitting does IV become a chokepoint?

Tags (2)
3 REPLIES 3
Message 2 of 4
ekinsb
in reply to: jpblower

The main process of Inventor is single threaded so it's not possible to perform multiple operations in Inventor at the same time.  Multi-threading most modeling operations would be very difficult.  For a parametric model, each operation begins with the current state of the model and then modifies the model and adds intelligence to be able to re-compute if changes are made.  It's based on one adding one step at a time that builds on what's happened before.  What you described is several threads taking the same model, each thread performing operations, and then somehow combine this all together in the end.  A very difficult problem and one that's not supported today.


Brian Ekins
Inventor and Fusion 360 API Expert
Mod the Machine blog
Message 3 of 4
jpblower
in reply to: ekinsb

I figured as much.  Darn. 

 

Being someone who's not a hard core programmer this may be a dumb question but can the calculations be divided like a simulink model?  I've seen this done w/ some eularian FEA solvers but they were built from scratch and only in linux.  I would expect trying to build IV from scratch would be a non starter is there any planned?   

Message 4 of 4
ekinsb
in reply to: jpblower

That's essentially what multi-threading is doing.  It's breaking a problem into multiple pieces, calculating the pieces independently, and then putting it all together in the end.  Some things lend themselves very well and other things don't.

 

There may be some other modeling approaches you can take that let you do more than your currently doing in a single operation.  It's difficult to say without a better understanding of exactly what it is you're trying to do.


Brian Ekins
Inventor and Fusion 360 API Expert
Mod the Machine blog

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report