DrawingCurve.Evaluator2D.GetPointAtParam Fails when GetParamExtents Works

DrawingCurve.Evaluator2D.GetPointAtParam Fails when GetParamExtents Works

rfink
Enthusiast Enthusiast
538 Views
1 Reply
Message 1 of 2

DrawingCurve.Evaluator2D.GetPointAtParam Fails when GetParamExtents Works

rfink
Enthusiast
Enthusiast

I am trying to get a point a a drawing curve using the Evaluator2D.GetPointAtParam( ) method, but it fails. The Evaluator2D.GetParamExtents(Min, Max) works.

 

The parameter I pass into the function is halfway between the Min and Max. 

 

I have used this on other drawing curves and sometimes it works and sometimes it fails. ??????????????????????????? Does it matter of what Type is the associated Model Geometry?????????????

 

Here is the code:

 

Set oEvaluator2D =oDrawingCurve.Evaluator2D

Call oEvaluator2D.GetParamExtents(Min, Max)

oParameter = Min + ((Max - Min) * .5)'''' HALFWAY BETWEEN MIN AND MAX

 

Dim oPoints ( ) as Double

 

Dim oParams(1) as Double

 

Set oParams = oParameter

Call oIntentCurve.Evaluator2D.GetPointAtParam(oParams, oPoints) '''''THIS FAILS

0 Likes
Accepted solutions (1)
539 Views
1 Reply
Reply (1)
Message 2 of 2

rfink
Enthusiast
Enthusiast
Accepted solution

Solved!

 

0 Likes