Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TugboatEng on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Orient current view to closest orientation of WCS

Status
Not open for further replies.

pawelagh

Mechanical
Joined
Aug 7, 2012
Messages
6
Location
PL
Hi,

I'm trying to write a journal code that orients current view to closest canned orientation using the WCS.
Default function under "F8" key - "workPart.ModelingViews.WorkView.SnapToClosestCannedOrientation()"
works with the absolute csys.

Regards,
Pawel
 
You don't need no journal. Use the existing function View-Operation- Set View to WCS.
In NX6 it was called "Set to WCS" . Same function except the name.

Regards,
Tomas


 
I use the function "Set View to WCS", but it orients view to XC-YC plane of WCS.
If I want to orient view to other planes I need to rotate WCS.

My idea is to get the orientation matrix of current view and compare it with the nearest plane of WCS.
That kind of function working under keybord shortcut would be very helpful for me.

Regards,
Pawel


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top