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!

nxopen .net selection

Status
Not open for further replies.

nabilff

Automotive
Jun 26, 2012
6
Hello,

I'm using NX8, and i have a list tagged objects.
I would like to select these objects in the part without creating a dialog. I found the function addToTaggedObjectsSelectionList, I don't know if this function fulfills the criteria I'm looking for but the with this function is the parameter "selection handle" that I couldn't configure.

Does anyone know how to?

Thanks in advance.

Nabil.
 
Replies continue below

Recommended for you

If you already know the tags of the objects why do you need to add it to the selection list. If you would like to highlight them in the graphics window, cast them to DisplayableObject type and use the Highlight method.

The selection handle and addToTaggedObjectsSelectionList are used mainly when the objects need to be selected interactively with a dialog.

Suresh
 
Hello ufsure,

first thank you for your answer.

actually, I know the objects and their tags but the thing is that I need the elements selected and not only highlighted.
Because I created a selection dialog with "selectTaggedObjects" so as I can select and de-select elements through this dialog and then save the results. And I would like that when the user open this dialog, the previously saved elements (the taggedObjects) are selected and the user can either de-select some elements or add new elements to the previous elements and then save the new selection list.
I hope that I could transmit the idea.

Thank you,
Nabil
 
Ok thank you very much for your help, it seems that in order to access this website I have to register with the product information but for this I'll have to ask for it in the company to get the information required for registration. Thanks.
 
The code (in a slightly different form) can also be found here. The journal will preselect all the items in a given reference set and allow the user to deselect existing items to remove and/or select new items to add. It does not use a tagged object selection list, but I assume the process would be similar.

www.nxjournaling.com
 
Thank you very much Cowski, your post was very helpful.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor