Selecting trimmed surface via MEL

Hello,

I have a bunch of trimmed surfaces (200 or more) in the scene, and need to convert all of them into polys.
They are imported geometries so no history node (ie., trim node) are there.

I looked around a bit but could not access to node type specific to trimmed surface (nodeType command just returns "nurbsSurface").

Does anyone know how to select just trimmed surface via MEL ( or API )?

thanks in advance,

-tak

One way that can be done is
a) select the Nurbs Object
getAttr -size .trimFace

if the result of ( is 0 the nurbs is not trimed if is greater then 0 the nurbs have trim faces.

Hope this helps and make sense let me know.

-a

Thanks a lot ... you saved me a lot of hassle.
It works like a charm