Connect arc end point with spline start point using vba

Connect arc end point with spline start point using vba

ThomasBeck8987
Participant Participant
470 Views
1 Reply
Message 1 of 2

Connect arc end point with spline start point using vba

ThomasBeck8987
Participant
Participant

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

 

arcspline1.jpgarcspline2.jpg

 

 

0 Likes
471 Views
1 Reply
Reply (1)
Message 2 of 2

chandra.shekar.g
Autodesk Support
Autodesk Support

@ThomasBeck8987

 

Hoping that below suggestion in blog link would help to add Coincident constraint.

 

http://adndevblog.typepad.com/manufacturing/2012/05/addcoincident-with-two-sketch-points.html

 

Thanks and regards,


CHANDRA SHEKAR G
Developer Advocate
Autodesk Developer Network



0 Likes