Your Products have been synced, click here to refresh
Thanks to y'all the time to produce the text file has gone from approx. 2.5 minutes to a little over 1 minute. This is the final code in case it helps anyone else or if anyone has further suggestions to make it even faster...
for (int i = 1; i < cmdCnt; i++) { cmd = pcd.Commands.Item(i); if (cmd != null) { if (cmd.IsTraceField) { //handle trace field... [COLOR="#FF0000"]continue;[/COLOR] } if (cmd.IsDimension) { //handle dimension... } //etc... } }
for (int i = 1; i < cmdCnt; i++) { cmd = pcd.Commands.Item(i); if (cmd != null) { if (cmd.IsTraceField) { //handle trace field... } else if (cmd.IsDimension) { //handle dimension... } //etc... } }
for (int i = 1; i < cmdCnt; i++) { cmd = pcd.Commands.Item(i); if (cmd != null) { if (cmd.IsDimension) { //handle dimension... continue; } if (cmd.IsTraceField) { //handle trace field... } //etc... } }
Thanks to y'all the time to produce the text file has gone from approx. 2.5 minutes to a little over 1 minute. This is the final code in case it helps anyone else or if anyone has further suggestions to make it even faster...
for (int i = 1; i < cmdCnt; i++) { cmd = pcd.Commands.Item(i); if (cmd != null) { if (cmd.IsTraceField) { //handle trace field... [COLOR="#FF0000"]continue;[/COLOR] } if (cmd.IsDimension) { //handle dimension... } //etc... } }
for (int i = 1; i < cmdCnt; i++) { cmd = pcd.Commands.Item(i); if (cmd != null) { if (cmd.IsTraceField) { //handle trace field... } else if (cmd.IsDimension) { //handle dimension... } //etc... } }
for (int i = 1; i < cmdCnt; i++) { cmd = pcd.Commands.Item(i); if (cmd != null) { if (cmd.IsDimension) { //handle dimension... continue; } if (cmd.IsTraceField) { //handle trace field... } //etc... } }
© 2025 Hexagon AB and/or its subsidiaries. | Privacy Policy | Cloud Services Agreement |