cancel
Showing results for 
Search instead for 
Did you mean: 

how to create drafting note in current view plane

I am using Nx 11.By using NXopen api I have created a point UDO and I have created a drafting note attached to that point_UDO 

as shown in attaches image.png  i.e part(A)

current situation:

 when I ratate view drafting note also rotated w.r.t view. 

as shown in image.png  i.e part(B)

 

requirement:

 when I ratate view drafting note should always be in current view plane i.e on screen plane.

as shown in image.png  i.e part(C)

 

I want to know that is it possible by programming?if yes please tell us how to do that..

thanks

3 REPLIES

Re: how to create drafting note in current view plane

Phenom
Phenom

Have you thought of using temporary display objects instead of a Note?

Note that I haven't actually done this, but the idea is to register a DisplayCallback for your UDO and in that callback display whatever you want to indicate data about the UDO. To display text you can use UF_DISP_display_temporary_text() which always displays the text on the viewing plane.

In UF_DISP there are a number of other functions that allow display of arcs, lines etc so you can construct geometric shapes as well as text.

Graham Inchley Snr R&D Engineer (Systems Development), Sandvik Coromant
Lenovo ThinkPad W540, Win7, 16GB. Developing in: Java | C | C# | KF
Production: NX8.5.3.3 MP11 64bit Testing: NX9.0.2.5

Re: how to create drafting note in current view plane

can you please explain with sample project code?

Re: how to create drafting note in current view plane

Phenom
Phenom
Note that I haven't actually done this

So, no sorry I can't supply any code to show how it works.

But if you go to the Solution Center and search for nx_api4898 there is a C# example there.

Graham Inchley Snr R&D Engineer (Systems Development), Sandvik Coromant
Lenovo ThinkPad W540, Win7, 16GB. Developing in: Java | C | C# | KF
Production: NX8.5.3.3 MP11 64bit Testing: NX9.0.2.5