×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

bodies selected outside of the work part

bodies selected outside of the work part

bodies selected outside of the work part

(OP)
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

RE: bodies selected outside of the work part

(OP)
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

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources