Message 1 of 2
Connect arc end point with spline start point using vba
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Dear all
With VBA I draw an arc and an spline. Now I try to connect the arcs end point with the spline start point using the following:
Call sklobe.GeometricConstraints.AddCoincident(oArc1.EndSketchPoint, oSpline1.StartSketchPoint)
But it comes up with Run-time error '5' "Invalid procedure call of argument.
If I try to connect the center point of the arc with the starting point of the spline it works!
Call sklobe.GeometricConstraints.AddCoincident(oArc1.CenterSketchPoint, oSpline1.StartSketchPoint)
I try as well with the merge command, but the same run-time error occurs.
Does anybody have a clue why this happens?
Thanks