Have you tried any of the examples at the solution center?
From my understanding only solid geometry in supported, but then I am not an expert.
Production: NX10.0.3, VERICUT 8.0, FBM, MRL 3.1.4 | TcUA 10.1 MP7 Patch 0 (10.1.7.0) | TcVis 10.1
Development: VB.NET, Tcl/Tk Testing: NX12.0
How to Get the Most from Your Signature in the Community
If you use NX11, and your body is a "convergent" one, then I'd guess that UF_MODL_trace_a_ray will work. Convergent bodies are real solid bodies, even though their faces are facetted "mesh" surfaces.
But, this is just a guess -- I haven't tried it myself.