Your Products have been synced, click here to refresh
The big difference lies in
For Each PcCmd In PcCmds
vs.
for (int i = 1; i <= PCPart.Commands.Count; i++) { var PCCommand = PCPart.Commands.Item(i);
Indexing into .Commands seems to be quite a bit slower compared to getting the next one through For Each.... If the modern language doesn't support For Each, I think you can use a while-loop and PCCommand.Next (or something similar) instead.
The "write to file" part is probably also much slower in .NET than in VB6.
The big difference lies in
For Each PcCmd In PcCmds
vs.
for (int i = 1; i <= PCPart.Commands.Count; i++) { var PCCommand = PCPart.Commands.Item(i);
Indexing into .Commands seems to be quite a bit slower compared to getting the next one through For Each.... If the modern language doesn't support For Each, I think you can use a while-loop and PCCommand.Next (or something similar) instead.
The "write to file" part is probably also much slower in .NET than in VB6.
© 2025 Hexagon AB and/or its subsidiaries. | Privacy Policy | Cloud Services Agreement |