I am writning a program in VB2013-64bit to convert my autocad blocks drawing into robot.
It works very well, but with complex structures the transfer takes very long time. Maximum usage of the processor during conversion is 13-14% I hav 2 ssd drives in stripe that transfers over 1Gb/s so i don´t think that is the bottleneck.
Any advise of what to do?
Solved! Go to Solution.
Solved by Rafal.Gaweda. Go to Solution.
Your sample code needed.
Try to work on interactive "off" robot.
If you are creating nodes and bars use Cache ; for panels use BeginMultiOperation as described here:
Sample of Cache
Private Sub CommandButton1_Click()
Dim RobApp as RobotApplication Set RobApp = New RobotApplication Dim RC As RobotStructureCache Set RC = RobApp.Project.Structure.CreateCache For I = 1 To 1001 RC.AddNode I, I * 10, 0, 0 Next I For I = 1 To 1000 RC.AddBar I, I, I + 1, "IPE 100", "STEEL" Next I RobApp.Project.Structure.ApplyCache RC RobApp.Project.ViewMngr.Refresh Set RobApp = Nothing End Sub