Search the Community
Showing results for tags 'operations'.
-
(In MasterCam 2018) Help me, When creating the Code does not go all the marked operations at once... Sometimes an operation goes alone after all the others have been processed, creating a g1 code for just one, and this operation has nothing different, it has the same tool, the same parameters, etc... 01.mp4 02.mp4
-
Frustrating problem using X9. In attempting to re-organize my existing toolpath groups and machine groups the vast majority of my toolpaths themselves just disappeared. The Toolpath groups are still there with correct titles but NO toolpaths are in them. I was just adding a new machine group and then moved it to be before the current top group and boom.....no more toolpaths left in that machine group. I immediately exited without saving and tried to recover to a state before the loss but no backup existed and autosave had done it's damage. I had been using auto save with no backup. Lesson learned.....I changed to get rid of autosave and now automatically have a backup file every time I save. Not the first time I've had unrecoverable problems when "editing" things in operations manager. Best to manually remember to save and to do so BEFORE attempting any "editing". Bottom line is you execute a perfect plan steps 1-10 and never go back to change or shuffle things and you don't often have problems. Try to "edit" after the fact and the wheels can come off the bus more often than desirable.
-
Short question for NET-Hook development. We can get several info about the operations in the Mastercam. For example in VB: Dim SpindleRotation As String = Mastercam.Support.SearchManager.GetOperation(CurrentOperation).SpindleSpeed.ToString But, how to get the "current operation" from the backplot Window? In previous example - how to get the right value for var CurrentOperation. Thanks, Crnko I would like in a new window which is the part of the NETHook module, show the Spindle Speed for the current active operation in Backplot window. I can get the Spindle Speed for any relevant operation, but how to synchronize Backplot and new windows? It should shows the data for the same operation. So how to get a number / id for current active operation in Backplot window (or simulation)? In my example Dim SpindleRotation As String = Mastercam.Support.SearchManager.GetOperation(CurrentOperation).SpindleSpeed.ToString variable CurrentOperation should have the number/id of the current active operation in Backplot window. How to get this value for Current operation? Crnko
- 4 replies
-
- NET-Hook
- operations
-
(and 1 more)
Tagged with:
-
Hello to all, I try to get geometry from operations with a c-hook in X6 , in contour and pocket all is fine, I get the entities. But in drilloperations the chain_manager get no chains because there are points in the geometry and no chains I think. Can someone tell me how I can solve this? I use the following code, thank you for help, Karsten void OPDatenLesen() { CHAIN_ENT *chain_elem; CHAIN *act_chain; ent entity; chain_manager_info cmi; memset(&cmi,0,sizeof(chain_manager_info)); MC_BOOL succf; DB_LIST_ENT_PTR eptr; operation op; for (int i=1; i<5; i++) { op.op_idn = i; operation_manager(&op, OPMGR_GET, &eptr, &succf); if (succf) { if (op.db.select_flag == TRUE) { if (op.opcode == TP_DRILL) { cmi.op_idn = op.op_idn; cmi.mode = CHNMGR_GET; chain_manager(&cmi,0,&succf); // <- does not work in drill operations if (succf) { act_chain = cmi.chns; do { chain_elem=act_chain->start; do { get_ent_from_eptr(chain_elem->e_ptr,&entity); switch (entity.id) { case P_ID: { AfxMessageBox(_T("point")); break; } case A_ID: { AfxMessageBox(_T("arc")); break; } default: break; } chain_elem=(chain_elem->next); } while(chain_elem!=NULL); act_chain=(act_chain->next); } while(act_chain!=NULL); free_chains(&act_chain); } } else if (op.opcode == TP_CONTOUR || op.opcode == TP_POCKET) { cmi.op_idn = op.op_idn; cmi.mode = CHNMGR_GET; chain_manager(&cmi,0,&succf); if (succf) { act_chain = cmi.chns; do { chain_elem=act_chain->start; do { get_ent_from_eptr(chain_elem->e_ptr,&entity); switch (entity.id) { case A_ID: { AfxMessageBox(_T("arc")); break; } case L_ID: { AfxMessageBox(_T("line")); break; } case NB_ID: { AfxMessageBox(_T("spline")); break; } default: break; } chain_elem=(chain_elem->next); } while(chain_elem!=NULL); act_chain=(act_chain->next); } while(act_chain!=NULL); free_chains(&act_chain); } } } } } }
- 3 replies
-
- chook
- operations
-
(and 1 more)
Tagged with:
-
Is there a way to know or see a history of recent commands executed in MasterCAM, kind of like SolidWorks with a drop down under the Undo.
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.