Look for solution to do data processing simultaneously for Inventor using VB.NET
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi, experts,
I am doing some path planning within map-network using inventor and VB.NET. The map is always the same with massive fixed points in a data base. And the pair of start and end points for paths can be hundreds. Through a math algorithm I can calculation shortest path in the map from start to end point for each point pair. The pseudo code in my current processing is as below:
For each Start_End_Point_Set in Start_End_Point_Set_Collection
Create_Path_Point_List(Start_End_Point_Set, Map_Data, ByRef Point_List_for_Path)
oCollection(Point_List_for_path)
Next For
Right now, because the code runs in single thread and process sequentially, with hundreds of point sets, it may take tens of minutes to calculate all the paths.
Because Start_End_Point_Set_Collection and Map_Data are all in pure math format and pre-known, I wonder whether it is possible to utilize any of multiple thread calculation or parallel calculation or Async Function or Parallel.For loopin VB.NET to make call to Create_Path_Point_List() simultaneously, so to speed up to get the result of path collection much faster?
Very appreciated that you can shed some light or give recommendation on this, even better if there is some sample code in VB.NET.
Limin
Inventor pro 2026 64 bit; Windows 11 pro 64 bit version 24H2; Office 2016 64 bit
Check into My Apps:
iCable : Create Cables, Hoses, Tubes and Pipes Easily.
iCable Professional : Create and Edit Them, Quick, Easy and Much More.
iCable Electrical : Auto Router to Create Massive Cables Automatically for Electrical Cabinet.