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:

Takashi Sato from Ai Solutions.

Verified Members
  • Posts

    338
  • Joined

  • Last visited

Everything posted by Takashi Sato from Ai Solutions.

  1. hey Paul I added new a function. it creates backup history file,and history menu popups ftp://www.ppcadcam.com/Mastercam_forum/C-...cpy_history.zip
  2. quote: It would be nice, if Mr MasterShake add the option in the C-hook for muti backup files Ex: file_backup1.mcx file_backup2.mcx ... like this?? ftp://www.ppcadcam.com/Mastercam_forum/C-.../backupcpy3.zip
  3. hey Paul here is new one. ftp://www.ppcadcam.com/Mastercam_forum/C-.../backupcpy2.zip if you get MR2, this chook may be useless.
  4. yeah, this is much better for me. All can I do is just looking at export table of mastercam.exe,and waiting for new SDK release.
  5. Oww sry,I have not checked it yet.. I asked SDK Inbox about it 3 weeks before,and I was also told to try that last week. I just tried and it didnt work, it made me sad.. I thought it would solve the problemm hmmmm.
  6. I have the same problem with vs2005, and I'm using vs2003 for chook development anyway.
  7. Yes,that is how the chook is intended to func. I hooked a function to savefile. 1. remove the previous backup file if it exists. 2. create copy of the previous file renaming like file_backup.mcx 3. Mastercam writes a new file.mcx .
  8. Here is a backup copy chook by me, which creates backup copy file when you save a file. ftp://www.ppcadcam.com/Mastercam_forum/C-hooks/backupcpy.zip Usage: Copy the backupcpy.dll and backupcpy.ft files to your chooks folder. That's all. DISCLAIMER WE MAKE NO WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, WITH REGARD TO THIS SOFTWARE
  9. IDARRAY OpIds; reorder_operations (&OpIds); Clayton told me to add this in the chook headers extern DllImpExp int OMrefreshOpManTree(void);
  10. h.. hello.. 1st question is about chaining in chook. I'm trying to get chains from an operation by using chain_manager function, but it seems not working... there is a few sample code and documentaion about chaining in chook code: operation_manager (&op, OPMGR_GET_FIRST_LIST, &e_ptr, &succf); while(succf) { if(op.opcode==TP_CONTOUR&&op.db.select_flag) { memset (&cmi, 0, sizeof (chain_manager_info)); cmi.op_idn = op.op_idn; cmi.mode = CHNMGR_GET; cmi.bnd_n_start = 1; cmi.bnd_n_end = 1; chain_manager (&cmi, 0, &succf); if (cmi.chns != NULL) { offset_2d_contour(cmi.chns,'L',1,true,10.0,3,true); } } operation_manager (&op, OPMGR_GET_NEXT_LIST, &e_ptr, &succf); } ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ another question is about adding a chook toolpath.. I tried this code and something is added in operation manager.. and it says engrave operation.. code: boolean succf; nci_bin n; long fpos; operation op; db_ptr_type e_ptr; memset(&op,0,sizeof(operation)); op.opcode=TP_CHOOK; //operation_manager (&op, OPMGR_INIT, &e_ptr, &succf); strcpy(op.comment, "comment!"); strcpy(op.u.chook.opmgr_txt,"chook toolpath!!"); strcpy(op.u.chook.chook_name,"chookpath.dll"); strcpy(op.u.chook.opmgr_prm,"opmgr_prm"); strcpy(op.u.chook.opmgr_tool,"opmgr_tool"); strcpy(op.u.chook.opmgr_geom,"opmgr_geom"); strcpy(op.u.chook.opmgr_nciL,"opmgr_nciL"); strcpy(op.u.chook.opmgr_nciR,"opmgr_nciR"); strcpy(op.u.chook.regen_nci,"regen_nci"); //add geometory and tool around here??? operation_manager (&op, OPMGR_INIT_ADD, &e_ptr, &succf); //call nci_manager to write nci_bin??? code: extern "C" void CH_ENTRY opmgr_prm(long *ptrs) { } extern "C" void CH_ENTRY opmgr_tool(long *ptrs) { } extern "C" void CH_ENTRY opmgr_geom(long *ptrs) { } extern "C" void CH_ENTRY opmgr_nciL(long *ptrs) { } extern "C" void CH_ENTRY nciR(long *ptrs) { } extern "C" void CH_ENTRY regen_nci(long *ptrs) { } any comments and suggestions,sample codes are welcome
  11. hi I'm coding a chook program to set up teh stock definition of mill & lathe. my code is not working fine.. any ideas?? code: ent p1; p1.id = P_ID; p1.u.pt[0]=0.0; p1.u.pt[1]=0.0; p1.u.pt[2]=0.0; store_ent (&p1, &e_ptr, ALIVE_BIT, main_color, main_level, main_attrib, &succf); job_setup.rstock_id[0]=p1.ent_idn; p1.u.pt[0]=100.0; p1.u.pt[1]=0.0; p1.u.pt[2]=200.0; store_ent (&p1, &e_ptr, ALIVE_BIT, main_color, main_level, main_attrib, &succf); job_setup.rstock_id[1]=p1.ent_idn; job_setup.x=100.0; job_setup.y=200.0; job_setup.z=0.0; job_setup.show_stock[0]=true; job_setup.show_stock[1]=true; job_setup.stock_draw=true;

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