×
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

NX Journal Deselect

NX Journal Deselect

NX Journal Deselect

(OP)
I'm writing a journal that applies a transparency to already selected solids. Once I run the journal though, I want to deselect the bodies. The only thing I've been able find is

CODE --> .vb

theUI.SelectionManager.RemoveAllFromSelectionList 
, which requires a SelectionHandle as one of the parameters. I can't hardly find anything about using a SelectionHandle and can't find a way to initialize one. Is there a way to deselect everything without having to worry about using a SelectionHandle?

RE: NX Journal Deselect

Have you tried:

CODE

bodyObject.Unhighlight 

This seems to 'deselect' objects.

www.nxjournaling.com

RE: NX Journal Deselect

(OP)
That's a start. The object types I'm working with are from the DisplayableObject class which doesn't have that method though. NX doesn't like casting a DisplayableObject or a Component to a Body either.

RE: NX Journal Deselect

Unhighlight is a method in the DisplayableObject class. It should work with all objects that inherit from DisplayableObject. I just used bodyObject as a generic variable name.

www.nxjournaling.com

RE: NX Journal Deselect

(OP)
Ahh there it goes. I was trying to apply it to an array of DisplayableObject objects and it recognizing System.Array as the superclass. I just had to apply it to each object in the array via a For loop.

Thanks much.

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