Showing results for 
Search instead for 
Do you mean 
Solved! Go to solution

NXOpen::Selection::SelectTaggedObject "cursor" output seems wrong

[ Edited ]

When I select a certain line or curve object with the mouse under the menu created by  NXOpen:: Selection:: SelectTaggedObject , the "cursor" output argument is populated with coordinates that are not anywhere on the line -- when I enter them into the Menu->Information->Point dialog, they're floating in space a little ways away.  Two of the coords are correct, Switching between coordinate systems doesn't rescue it.  Am I misunderstanding the meaning of this output?  I'm trying to replace usages of the deprecated uc1618 function.

Accepted by topic author user_name
‎08-26-2015 04:32 AM

Re: NXOpen::Selection::SelectTaggedObject "cursor" output seems wrong

uc1618 suggests using UF_UI_select_with_single_dialog, which as far as I'm aware is NOT deprecated, so you could try using the wrapper for that.

However, both UF_UI_select_with_single_dialog and NXOpen.Selection.SelectTaggedObject state that the returned cursor value is the absolute coordinates of the cursor position. So this point will only be on the line you are selecting if you position the cursor exactly over the line. Usually though it is expected that this point will be slightly away from the selected object as that is where the cursor cross hairs are.

Graham Inchley Snr R&D Engineer (Systems Development), Sandvik Coromant
Lenovo ThinkPad W540, Win7, 16GB. Developing in: Java | C | C# | KF
Production: NX8.5.3.3 MP11 64bit Testing: NX9.0.2.5

Re: NXOpen::Selection::SelectTaggedObject "cursor" output seems wrong

OK, thanks.  I guess I was just misunderstanding the meaning of that output.