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!

Orient current view to closest orientation of WCS

Status
Not open for further replies.

pawelagh

Mechanical
Aug 7, 2012
6
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
 
Replies continue below

Recommended for you

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