spline info

suppose there are splines displayed...

how to get whether particular spline is prepared by using bypoles or bypoints.?

You can use the function "UF_CURVE_ask_spline_thru_points" function to check if the spline has defining points; if so, the spline was created with the 'through points' option.

The GTAC solution center has a close example, search for "nxopen sample report spline through points".

I have used this function, in try it works f9 but in case of bypoles it is catching the exception

What i exactly need is messagebox showing bypoles spline or bypoints spline, using asksplinethrupoints the 3rd or 4th arguement returned is degree, using degree in if else condition it is working good for bypoints spline & in bypoles case ot is just catching catch statement which i have to avoid it

Don't rely on the degree of the spline to give you information on how it was created. A 'through points' spline may have the same degree as a 'by poles' spline.

Ya you are correct...
But intializing degree =0 and using funct. Askthrupoints it will return degree for only bypoints. In case of bypoles degree will stil be 0

Were you able to get what you need?
If not, where are you stuck?

I don't think there is any reliable way to do this. In some cases (at least) NX doesn't know how the spline was created. Getting degree = 0 for a spline created by poles sounds like a bug, to me.

The function "UF_CURVE_ask_spline_thru_points" was designed specifically to deal with "through point splines", so I think the fact that it returns "degree 0" for splines "by poles" is more by design than a flaw.