Jump to content

Welcome to eMastercam

Register now to participate in the forums, access the download area, buy Mastercam training materials, post processors and more. This message will be removed once you have signed in.

Use your display name or email address to sign in:

How to set 'previous' for views?


Recommended Posts

Anybody got an idea on how to set the previous views for cplane, tplane, or gview? Setting the 'current' view with named_view_manager, set_gview, set_gr_gview doesn't update the 'previous view' settings.

 

I've tried playing with the hidden functions; set_prev_gview, set_prev_cview, set_prev_tview but I can't get them to work. Either I'm not using them right or they don't do what I think.

 

The only 'trick' I've found so far is to call one of the 'previous' system calls OnPlanesLast, OnCPlaneLast, etc and then call named_view_manager. It works but seems like the wrong way to do it.

 

Bryan smile.gif

Link to comment
Share on other sites

Pete,

 

Thanks Pete. But that seems to do the same as calling

OnViewPreviousView. I'm looking for a way to set the previous t/c/g views and then call named_view_manager. So that if the user runs previous view/cplane/tplane through mastercam it'll go back to the t/c/g view from before the chook was run.

 

Either that or named_view_manager should be but isn't setting the 'previous' variables when called with VWMGR_TPLANE, VWMGR_CPLANE, or VWMGR_GVIEW.

 

But I'm thinking since set_gr_view and set_gview don't set the previous whatever, this is by design and there a separate routine(s) for setting 'previous' before or after calling named_view_manager or set_gr_view or set_gview.

 

Bryan smile.gif

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.

Join us!

eMastercam - your online source for all things Mastercam.

Together, we are the strongest Mastercam community on the web with over 56,000 members, and our online store offers a wide selection of training materials for all applications and skill levels.

Follow us

×
×
  • Create New...