mery0
Automotive
- Nov 15, 2023
- 2
I want to create a mirror curve by storing all the tags of the few splines I created in an array.
Putting the contents of the create_spline array into the CurveDumbRule array results in an error. How do I fix this?
Dim create_curve(*) As Spline
create_curve(*) = CType(theWorkPart.Splines.FindObject(mytag), NXOpen.Spline)
…
Dim curveDumbRule(*) As NXOpen.CurveDumbRule
For i As Integer = 0 To line_count - 1
curveDumbRule(*) = theWorkPart.ScRuleFactory.CreateRuleBaseCurveDumb(create_curve) '<----- Error(curves1)
Next i
Putting the contents of the create_spline array into the CurveDumbRule array results in an error. How do I fix this?
Dim create_curve(*) As Spline
create_curve(*) = CType(theWorkPart.Splines.FindObject(mytag), NXOpen.Spline)
…
Dim curveDumbRule(*) As NXOpen.CurveDumbRule
For i As Integer = 0 To line_count - 1
curveDumbRule(*) = theWorkPart.ScRuleFactory.CreateRuleBaseCurveDumb(create_curve) '<----- Error(curves1)
Next i