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:

named_view_manager bug?


Recommended Posts

Can anyone confirm that calling named_view_manager() with VWMGR_GVIEW sets the tplane and not the gview?

 

Here's some code that can be used to test it.

code:

    view_ent ve;

MC_BOOL succf;

 

named_view_manager (&ve, VWMGR_SELECT, "", &succf);//prompt for a view

named_view_manager (&ve, VWMGR_GVIEW, "", &succf); //set gview? sets to tplane

 

named_view_manager (&ve, VWMGR_SELECT, "", &succf);//prompt for a view

named_view_manager (&ve, VWMGR_CPLANE, "", &succf);//set cplane

 

named_view_manager (&ve, VWMGR_SELECT, "", &succf);//prompt for a view

named_view_manager (&ve, VWMGR_TPLANE, "", &succf); //set tplane

Bryan smile.gif

Link to comment
Share on other sites

hmm, it seems VWMGR_GVIEW is not working.

it might be a bug, I don't know.

 

I'm always using set_gr_view() function instead.

code:

matrix_33 v_mat;

get_view_matrix(VREL_TOP, v_mat);

set_gr_view (v_mat);

repaint_graphics();

::MessageBox(NULL,"top","top",MB_OK);

 

get_view_matrix(VREL_BACK, v_mat);

set_gr_view (v_mat);

repaint_graphics();

::MessageBox(NULL,"back","back",MB_OK);

 


Link to comment
Share on other sites

I haven't been able to get it to work ever but noticed yesterday when tracking down another problem it seems to be setting tplane.

 

I'm at home so I don't access to my code but the function I've been using is set_gview. It just takes a view number.

 

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...