×
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

Identify occurrence face of the same part in different assemblies using NXOpen?

Identify occurrence face of the same part in different assemblies using NXOpen?

Identify occurrence face of the same part in different assemblies using NXOpen?

(OP)
Hello Friends,

This group has never disappointed me when I have been looking for some answers to my NX automation. Here I come with another question. I have different assemblies in which the same part is instantiated (as another component assembly). Is there any direct NX API that I can use to determine an occurrence face across the different assemblies and relate them to the same prototype face.
I am aware of the "FindOccurrence" method that gives the occurrence face for the input prototype face. Is there any other way around?
My program takes as input one of the occurrence face in an assembly and I need to find out the same face in another assembly.

Thank you for your help!
Amitabh

RE: Identify occurrence face of the same part in different assemblies using NXOpen?

If you have an occurrence face, you can get the prototype using the occFace.Prototype method. Once you have the prototype face, you can use the .AskOccsOfEntity to get references to all the occurrences in the current session. Since this returns all the occurrences in session, you may need to filter the results to determine which occurrences belong to the assembly of interest.

www.nxjournaling.com

RE: Identify occurrence face of the same part in different assemblies using NXOpen?

(OP)
Thank you, Cowski. I knew you have an answer to my problem. Let me go ahead and try this out and I will get back. Thanks!

RE: Identify occurrence face of the same part in different assemblies using NXOpen?

(OP)
It works like a charm! Thank you, Cowski!

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