Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations IFRs on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

bodies selected outside of the work part

Status
Not open for further replies.

elyann

Computer
Sep 11, 2012
5
Ver: NX 7.5.5.4, openC++ API.

Hi,

Using the block UI Styler, does anyone know, what is the best way to keep a reference on body/ies selected outside of the work part from other assembly or part components.

Indeed, I tried the following:
- Setup a dialogue implementing a Body Collector block to collect the required body.
- In the “apply_cb()” callback function of the dialogue, creates an UDO (so at work part scope) and linked it to the selected body with type3.
- Later on in the work part scope, retrieve the UDO; asks its Links of type 3 => LinkDefinition vector is empty…

Note that:
- In the “apply_cb()” callback function, asking the “occurrenceable” status of the body return "False"
- If bodies are selected in the work part scope, it works fine.
- If these are curve objects and not body objects that are selected it works fine.

Thanks a lot for your help,
Elyann

 
Replies continue below

Recommended for you

Hello,

I resolved my problem by using a "Select Object" block in my dialogue instead of the "Body Collector" block.

Moreover in the NX8 doc it is clearly specified that using the "Body Collector block": " Body selection intent is used in this block."

Regards,
Elyann
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor