Showing results for 
Search instead for 
Do you mean 
Reply

Persistence of auto-generated wave links

Hi all,

I make an application to measure distance between CAD automatically generated by the application and objects selected by the user.
This is my main window:

 

mainWin.png


A double click on “measure” node opens a new window to select one or several objects (only a SelectObject widget with filters)

selectWin.png


While object are selected in the work part or its children, it works.
If an object comes from another part of the assembly, NX automatically create a Wave link object. It is great.

Wave.png

sel.png

But when I destroy my object selection windows, those wave links are also destroyed.

  • How can I detect selected object is a wave link (UF_OBJ_ask_type_and_subtype do not give this information)?
  • How can I know if a selected object is a temporary object?

 

  • How can I do to keep it alive longer (and destroyed them by myself when I delete my first window).
    Do I need to create an UDO and link the objects with?

Thanks in advance.

2 REPLIES

Re: Persistence of auto-generated wave links

What object type/subtype are reported?

Can you ask the feature of the object to see if the feature is a WAVE link?

Ken Akerboom Sr CAx Systems Engr, Moog, Inc.
Production: NX10.0.3.5 MP5 + patch/TC11.2
I'd rather be e-steemed than e-diseaseled


Re: Persistence of auto-generated wave links

For a face picked on a solid, I have a UF_solid_type(70) and UF_solid_face_subtype(2), whether it is selected from the current work part or through an auto generated WAVE link.

 

But my first purpose is to keep temporary WAVE links alive.