Quantcast
Channel: NX Journaling - Journaling / NXOpen API
Viewing all articles
Browse latest Browse all 787

SelectScreenPosition returning Z=0

$
0
0

Hello, I am attempting to write a journal where a user selects a position for a PMI table to be created while on a specific view of a model (Within the modeling application).

The code below is what I'm using for screen selection:

public bool SelectScreenPos(string dialogTitle, out Point3d selectionPos)
{
int new_cursor_view = 0;
int old_cursor_view;
Selection.DialogResponse userSelection;

UFSession.GetUFSession().Ui.AskCursorView(out old_cursor_view);
UFSession.GetUFSession().Ui.SetCursorView(new_cursor_view);

userSelection = m_NXOpenUI.SelectionManager.SelectScreenPosition(dialogTitle, out View view, out selectionPos);

UFSession.GetUFSession().Ui.SetCursorView(old_cursor_view);

return userSelection == Selection.DialogResponse.Pick;
}

While the X and Y values are correct, Z is always 0, which is inconvenient since I want to place these tables on the X/Z plane.

Is there something I'm overlooking? Or is this method primarily used for NX Drafting? (Thus the automatic Z=0).


Viewing all articles
Browse latest Browse all 787

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>