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. sorry, I have not tested that code. and then I got an another idea. 1. remember the address of db_end. 2. create geometry 3. get_ent from previous db_end.. ent e; DB_LIST_ENT_PTR dPtr, foundPtr, endPtr; dPtr=db_start; endPtr=db_end; //create lines.. dPtr=endPtr; do { get_ent(&dPtr, &foundPtr, &e, ALIVE_BIT, L_ID, &succf ); //do select? } while(succf);
  2. ow, drw_string (ref_pt, 1, ¶ms, 1.0, color_not_in_use, 1, (MC_BYTE*)t); how about using the color which is not in use, and selecting the entities by color.?
  3. Hi You can see the time when the entity is created. ent e; e.time;( time_t time; ///< Date entity was created in db) So, I think you can see which entity is just created.
  4. Thanks Titus, I was looking for this function! code: DllImpExp void set_init_op_use_prev_op_same_type ( MC_BOOL use_prev_op ) I just made prmdef.dll for X in a few minutes. http://ai-sols.sytes.net/download/prmdef.zip However, I think prmdef.dll will be added in the next release.. quote: This has been previously logged as enhancement request number cnc00028175. Thank you.
  5. How about this code? code: MC_BOOL succf; DB_LIST_ENT_PTR eptr; operation op; operation_manager (&op, OPMGR_GET_FIRST_LIST, &eptr, &succf); while(succf) { op.db.select_flag=TRUE; sprintf(op.cmn.nci_name,"%snewname.nci",NCIPrefixStr()); operation_manager (&op, OPMGR_REWRITE, &eptr, &succf); operation_manager (&op, OPMGR_GET_NEXT_LIST, &eptr, &succf); } post_dlg_settings ps; ps.save_nci_file = FALSE; ps.overwrite_nci = FALSE; ps.editNCI = FALSE; ps.save_nc_file = TRUE; ps.overwrite_nc = TRUE; ps.editNC = TRUE; ps.send_to_machine = FALSE; ps.export_oplist = TRUE; ps.export_prm = TRUE; ps.wcs_1014 = FALSE; ps.descriptor = FALSE; char postfile[MAX_PATH]=""; strcpy(postfile,PostProcFileStr(NULL,NULL,NULL,NULL)); char ncdir[MAX_PATH]="c:"; postOps( &ps,postfile,ncdir, FALSE, /* CALL POST DIALOG */ TRUE); /* DISABLE POST BUTTON */
  6. code: //I don't need the NCI! my_post_settings.save_nci_file = FALSE; //I have to open the nc data with editor! my_post_settings.editNC = TRUE; in your post.. code: fastmode$ : yes$ #CD_VAR Enable Quick Post Processing, (set to no for debug) bug1$ : 0 #0=No display, 1=Generic list box, 2=Editor
  7. I've never used these functions though, I guess these functions will do. code: /** * @par Purpose: * Checks to see if there is anything to scale, and if the user wants to * @param[in] e2m TRUE if the entities are to be scaled to metric; FALSE if they're to be scaled to English * @param[in] eptr The mark from which to check for scalable entities * @param[in] b4eptr TRUE if we're to check the entities before the eptr; FALSE if we're to check the ones after * @param[in] prmpt TRUE if the user is to be prompted as to whether or not there should be any scaling done * @return TRUE if there are entities to be scaled */ DllImpExp MC_BOOL fmu_scale_yn (MC_BOOL e2m, DB_LIST_ENT_PTR eptr, MC_BOOL b4eptr, MC_BOOL prmpt); /** * @par Purpose: * Scales either from metric to english or from english to metric * @param[in] e2m TRUE if the entities are to be scaled to metric; FALSE if they're to be scaled to English * @param[in] eptr The mark from which to check for scalable entities * @param[in] b4eptr TRUE if we're to check the entities before the eptr; FALSE if we're to check the ones after * @param[in] prmpt TRUE if the user is to be prompted as to whether or not there should be any scaling done */ DllImpExp void fmu_scale_db (MC_BOOL e2m, DB_LIST_ENT_PTR eptr, MC_BOOL b4eptr, MC_BOOL prmpt);
  8. ah, read_ent() can read each entity from a file. and load the entities you need by store_ent()/store_ent_asocc(). code: DllImpExp void read_ent ( FILE *f, ent *entity, MC_BOOL *succf);
  9. I found this function in the RegVars_CH.h header. ChangeConfiguration (FALSE, 1, TRUE);
  10. 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);
  11. You have to add some exported functions that are called by the operation manager, etc.. code: strcpy( op.u.chook.opmgr_txt, "my chook toolpath!!!"); strcpy( op.u.chook.chook_name, "chook.dll"); strcpy( op.u.chook.opmgr_prm, "ParametersFunction"); // chook's function to call when op's parameters are selected in the Operation Manager strcpy( op.u.chook.opmgr_tool, "ToolFunction"); // chook's function to call when op's tool is selected in the Operation Manager strcpy( op.u.chook.opmgr_geom, "GeometryFunction"); // chook's function to call when op's geometry is selected in the Operation Manager strcpy( op.u.chook.opmgr_nciL, "LeftClickFunction"); // chook's function to call when op's nci is selected in the Operation Manager strcpy( op.u.chook.opmgr_nciR, "RightClickFucntion"); // chook's function to call when op's nci is selected in the Operation Manager strcpy( op.u.chook.regen_nci, "RegenFunction"); // chook's function to call to regenerate op's nci section extern "C" int DllExport ParametersFunction () I think it couuld be a hard work to make your own toolpath chook.
  12. Alex, Are you trying to add geometry chains for the contour toolpath or boudary chains for the multi surface toolpath? http://www.emastercam.com/ubb/ultimatebb.p...0221;p=1#000011
  13. Wow, Thanks I didn't have any idea of .mpk files until today.
  14. Hi guys, I found VLIB.MPK on ftp. but what is .mpk extension? Is it a mastercam packed file?
  15. MPFAN.PST seems good. rot_on_x : 3 #Default Rotary Axis Orientation, it just does rotary outputs.
  16. I'm home... Yes, it's a post issue. I'm not a post programmar though, all our 5 axis posts are based on our original. I haven't look at generic 5ax fanuc post yet, but a part of axis angle calclation may be binaried..
  17. Greg I put the nc file here. http://ai-sols.sytes.net/download/C%20AXIS...WARF%20CUT2.zip when I use swarf, it is XY move. when 2d contour, it is XC move and Y0.
  18. Greg, If you use curve 5axis, it may be better to use Tool axis control = plane. And I aslo tried swarf 5axis toolpath with teh red surface, it looks fine.
  19. I looked at your curve 5ax toolpath. why are you setting side tilt angle = 0.001?
  20. You have to change operation's tool parameters. code: group_list *machine=OMgetActiveMachineGroup(); while (tl_move != NULL) { if (tl_move->tl.op.type==END_MILL&&1.0<=tl_move->tl.op.dia) { if(machine)tl_move->tl.op.machine_grp_idn=machine->grp_idn; op.tl.slot = tl_move->tl.op.slot = newslotnum; op.tl.tlno = tl_move->tl.op.tlno = newtoolnum; op.tl.type = tl_move->tl.op.type; op.tl.dia = tl_move->tl.op.dia = 1.0; tool_manager (&tl_move->tl, TLMGR_ADD, &eptr, &succf); break; } tl_move = tl_move->next_ptr; }
  21. Alex, 2nd argument is the tool library name. char toollib[MAX_PATH]="c:.....MILL_INCH.TOOLS"; list_manager(TL_ID, toollib, LSTMGR_GET, list_ptr); code: tl_list *tl_head, *tl_move; list_manager (TL_ID, "", LSTMGR_GET, (void **)&tl_head);//current tool library tl_move = tl_head; while (tl_move != NULL) { //do something, (tool_manager etc.. tl_move = tl_move->next_ptr; } list_manager (TL_ID, "", LSTMGR_FREE, (void **)&tl_head);
  22. And if you have not installed X2MR1 yet, you will need either files below. These are from Microsoft Visual C++ 2005 Service Pack 1. http://ai-sols.sytes.net/download/vcredist_x86.exe (32bit) http://ai-sols.sytes.net/download/vcredist_x64.exe (64bit) The Microsoft Visual C++ 2005 Redistributable Package installs runtime components of Visual C++ Libraries required to run applications developed with Visual C++ on a computer that does not have Visual C++ 2005 SP1 installed.
  23. If you are using both of X2 and X2MR1, Copy the Ai chook files into the c:/mcamx2-mr1/chooks folder. files installed by the lnstaller: Ai_Backupcpy.chm Ai_backupcpy.dll Ai_backupcpy.ft Ai_bkcolor.dll Ai_bkcolor.ft Ai_KeyEvent.dll Ai_KeyEvent.ft Ai_ProcessPriority.dll Ai_ProcessPriority.ft Ai_XMenu.dll Ai_XMenu.ft Ai_XMenu.txt HTH
  24. Hi, I have updated my utility chooks installer. X2,X2MR1 http://ai-sols.sytes.net/download/AI_Utility_X2_1_09_en.exe X http://ai-sols.sytes.net/download/AI_Utility_1_09_en.exe added features: 1. thumbnail images have version number.. 2. changing the priority of mastercam.exe processes and selecting which cpu to be used by mastercam.exe.. this supports up to 4 cpus(CPU0,CPU1,CPU2,CPU3), and set process's priority normal(green) or above normal(red icon). it is the same thing as that you open task manager and go to the processes tab for mastercam.exe process and right-click on it, you'll have an option for setting affinity... fixed: the version 1.08 installer does not have atl71.dll and sometimes it causes an error like "dll failed to register. ... error: LoadLibrary(" on brand new PC, because the preview shell extension dll is using atl71.dll from Microsoft Visual Studio .NET 2003 (version 7.1)..

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