
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I would be interested to have opinions on why the VB. net code extract below is so slow. I am building a series of assemblies from a standard set of parametric part templates. Using iMates, the parts are placed in an assembly and then all the user parameters are set one by one. This is the bit that is really slow.
The user parameter names and requried values are held in array vParamValue.
Try
For Each oUserParam In oUserParams
For i = 1 To iParamCount
If oUserParam.Name = vParamValue(0, i) Then
oUserParam.Value = vParamValue(j, i)
Exit For
End If
Next i
Next
Catch ex As Exception
MsgBox("Error setting one ot more part parameters" & vbCrLf & ex.Message)
End Try
Solved! Go to Solution.