Takashi Sato from Ai Solutions.
Verified Members-
Posts
338 -
Joined
-
Last visited
Content Type
Profiles
Forums
Downloads
Store
eMastercam Wiki
Blogs
Gallery
Events
Everything posted by Takashi Sato from Ai Solutions.
-
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);
-
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.
-
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 */
-
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);
-
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);
-
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.
-
Learning some kinematic math....
Takashi Sato from Ai Solutions. replied to Watcher's topic in Industrial Forum
Wow, Thanks I didn't have any idea of .mpk files until today. -
Learning some kinematic math....
Takashi Sato from Ai Solutions. replied to Watcher's topic in Industrial Forum
Hi guys, I found VLIB.MPK on ftp. but what is .mpk extension? Is it a mastercam packed file? -
Trouble Swarf Cutting a parrallel Face
Takashi Sato from Ai Solutions. replied to Greg Williams's topic in Industrial Forum
MPFAN.PST seems good. rot_on_x : 3 #Default Rotary Axis Orientation, it just does rotary outputs. -
Trouble Swarf Cutting a parrallel Face
Takashi Sato from Ai Solutions. replied to Greg Williams's topic in Industrial Forum
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.. -
Trouble Swarf Cutting a parrallel Face
Takashi Sato from Ai Solutions. replied to Greg Williams's topic in Industrial Forum
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. -
Trouble Swarf Cutting a parrallel Face
Takashi Sato from Ai Solutions. replied to Greg Williams's topic in Industrial Forum
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. -
Trouble Swarf Cutting a parrallel Face
Takashi Sato from Ai Solutions. replied to Greg Williams's topic in Industrial Forum
I looked at your curve 5ax toolpath. why are you setting side tilt angle = 0.001? -
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; }
-
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);
-
AI Utility Chooks
Takashi Sato from Ai Solutions. replied to Takashi Sato from Ai Solutions.'s topic in Industrial Forum
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. -
AI Utility Chooks
Takashi Sato from Ai Solutions. replied to Takashi Sato from Ai Solutions.'s topic in Industrial Forum
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 -
AI Utility Chooks
Takashi Sato from Ai Solutions. replied to Takashi Sato from Ai Solutions.'s topic in Industrial Forum
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.