UGNX .net API: How to get the parameter range of a curve?

27 Oct

static public void GetCurveParamRange(Tag CurveTag, out double MinPara, out double MaxPara) { UFSession gUfSession = UFSession.GetUFSession(); IntPtr evaluator; double[] pararm_range = new double[2]; gUfSession.Eval.Initialize(CurveTag, out evaluator); gUfSession.Eval.AskLimits(evaluator, pararm_range); MinPara = pararm_range[0]; MaxPara = pararm_range[1]; gUfSession.Eval.Free(evaluator); }

Download Visual Studio 2010 project here.

Leave a comment

Posted by on October 27, 2010 in CAD, Dotnet/C#


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: