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 disable the "Partial NCI output file" Message.


Recommended Posts

Hello!

 

My problem is that when I select partial operations to generate NCI file, I alway got the "Partial NCI output file" message. How can I get rid of it.

 

For Example:

I have a program which has more than one operations. I just want to post-process the first 2 operations. I have the following code:

code:

operation *temp_op = NULL;

for (int i=0; i<TpMainOpMgr.GetMainOpList().GetSize(); i++)

{

temp_op = TpMainOpMgr.GetMainOpList().GetAt(i);

temp_op->db.select_flag = (i<2)? TRUE:FALSE;

}

 

post_dlg_settings ps;

 

ps.description = FALSE;

ps.editNC = FALSE;

ps.editNCI = FALSE;

ps.export_oplist = FALSE;

ps.export_prm = FALSE;

ps.overwrite_nc = FALSE;

ps.overwrite_nci = TRUE;

ps.save_nc_file = FALSE;

ps.save_nci_file = TRUE;

ps.send_to_machine = FALSE;

ps.wcs_1014 = TRUE;

 

char pf[MAX_PATH];

char ncdir[MAX_PATH] = "C:";

 

strcpy_s(pf, PostProcFileStr(NULL, NULL, NULL, NULL));

 

postOps(&ps, pf, ncdir, FALSE, TRUE);


Any suggestion will be appricated.

 

Thanks!

Link to comment
Share on other sites

Sigma,

 

If you're writing an application that needs this feature, I can't help you. But, if you simply want to eliminate the message during your normal MC usage, I suggest you download the free program RtvReco. It's a very small "clean" program that will push buttons for you, check/uncheck boxes, select/unselect radio buttons, etc...all in the blink of an eye. It works with all Windows programs, not just MC. You can set it up to eliminate the annoying dialog boxes that you always answer the same way.

 

RtvReco

 

Thad

Link to comment
Share on other sites

There is no call that has a "don't show this message" parameter.

 

A way around this would be to mark all the other operations as "Do not Post".

 

 

code:

void PostOperations()	

{

operation *temp_op = NULL;

for (int i=0; i<TpMainOpMgr.GetMainOpList().GetSize(); i++)

{

temp_op = TpMainOpMgr.GetMainOpList().GetAt(i);

temp_op->db.select_flag = FALSE; // reset ALL

temp_op->db.no_post = FALSE; // reset ALL

if (i<2)

temp_op->db.select_flag = TRUE;

else

temp_op->db.no_post = TRUE;

}

 

// ...<snipped>...

}


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