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. I also have a question. I made a chook with STRINGTABLE ID=5092’TEST STRING', and made a .ft file for it. When I was playing with solid and clicked undo button, Messagebox of ’TEST STRING' poped up. MCCoreRes.dll STRINGTABLE 5092, "Geometry is used in a solid. Are you sure?" Is it better not to use STRINGTABLE ID=5092?
  2. Yes, I use the converter made by me I converted zbrush's .obj to 4000000+ polys STL. Anyway, Blender should support common file formats. it is free! http://www.blender.org/download/get-blender/
  3. We have to rename group_list to op_group. code: extern DllImpExp TpGrpMgr TpMainGrpMgr; op_group *glist=NULL; for(int i=0;i<TpMainGrpMgr.m_MainGrpList.GetSize();i++) { glist=TpMainGrpMgr.m_MainGrpList.GetAt(i); }
  4. I think you need these... code: AfxMessageBox(op.cmn.nci_name); AfxMessageBox(post_args[2]); Still you don't have the nci output as a text file. You have to use the postOps funtion or the nci_manager function.. quote: By the way, anybody... I have the Mastercam V9 SDK document only, it has some demo codes.. but the X sdk header files are well commented, so it is good to code a chook. X3? Mastercam X3 API - Whats New.doc quote: The Mastercam APIs are undergoing drastic changes for the Mastercam X3 release later this year.
  5. Hi, if you want to run your post dll by pressing the post (G1) button. You need "PostMain" function exported in your dll, put it in c:mcamxapps, and set post excutable dll in the current control definition. sigmawave, if you just need a nci data as text, postOps function will do it. http://www.emastercam.com/cgi-bin/ultimate...c;f=13;t=000198 or if you process a binary nci data, use nci_manager function.
  6. When I made a post chook dll, I just added "PostMain" function.. code: extern "C" __declspec(dllexport) int m_main (int not_used) { AFX_MANAGE_STATE(AfxGetStaticModuleState()); //process binary nci //operation_manager (&op, OPMGR_GET_FIRST_LIST, &eptr, &succf); //nci_manager (op.op_idn, NCIMGR_RD_SOS, &n, &fpos, &succf); //nci_manager (0, NCIMGR_RD, &n, &fpos, &succf); return MC_NOERROR; } extern "C" __declspec(dllexport) int PostMain (int prm) { return m_main(prm); } (it processes NCI with other script languages.)
  7. ok. how about this method. 1, add a dummy menu by using insetthirdpartymenu() 2, get a menu from the main window and remove it by using GetSubMenu()and RemoveMenu() 3, popup your menu (pMenu->TrackPopupMenu()) I dont have X3 and the sdk yet, but there should be a function to register AppPreTranslateMessage() function.. if it does not exist, try subclassing the main window..
  8. You can popup your menu, CMenu YourMenu; ///load a menu from resource ,etc YourMenu.TrackPopupMenu( TPM_LEFTALIGN|TPM_LEFTBUTTON, pos.x, pos.y, get_MainFrame()); and read/process messages around here. code: static BOOL AppPreTranslateMessage(MSG* pMsg) { AFX_MANAGE_STATE(AfxGetStaticModuleState()) if(pMsg->message==WM_COMMAND&&(UINT)pMsg->wParam==IDR_MENU1_ITEM1) { // do something; return true; } return theApp.PreTranslateMessage(pMsg); }
  9. See this thread. http://www.emastercam.com/cgi-bin/ultimate...c;f=13;t=000492
  10. Thanks, That robot with the lizard head originally looked like "Robot Paruta" from NHK. (we chaned his head because of copyright restriction). http://www.youtube.com/watch?v=lwF2xHkgjy0
  11. I made a chook for you. http://ai-sols.sytes.net/download/UpdatePlaneToggle.zip It was easy to make. code: extern "C" __declspec(dllexport) int m_main (int not_used) { AFX_MANAGE_STATE(AfxGetStaticModuleState()); cplane_equals_gview=!cplane_equals_gview; set_FT_item_checked ("UpdatePlaneToggle","m_main",cplane_equals_gview); return MC_NOERROR; }
  12. OK. I think I fixed the issue. http://ai-sols.sytes.net/download/SwapMachines.zip When you run this chook with control key pressed, it will only swap the current active machine.
  13. woot, I noticed that it only swaps machine files, and it does not change the post file. I have to look into this. Please wait a while.
  14. Thank you Colin for the new bitmaps, Here is a new one. http://ai-sols.sytes.net/download/SwapMachines.zip
  15. This is a chook file.Please send me your bitmap images, I can add them. quote: .. but not X3. It looks there are lots of changes between X2 and X3. I have a lot of things to do!
  16. Hi It was national holidays in my country Anyway, I just made a chook that calls the function 'SelectTpGroupMachineDef()' for each machine groups. http://ai-sols.sytes.net/download/SwapMachines.dll let me know if it works or does not..
  17. I think so. See another thread http://www.emastercam.com/cgi-bin/ultimate...c;f=13;t=000347
  18. You don't have to pay for it. Ask it from your reseller.
  19. you mean this icon? quote: Toolpath NCI not restored - The NCI file has not been restored (via a toolpath regeneration) since the file was opened with the "restore NCI" option deselected (icon is light blue). Note: Click the Options button in the upper right corner of Mastercam's Open dialog box to set this restore NCI option.
  20. I've just found this tool. It looks useful. http://krapplets.cream.org/populist.shtml http://www.google.com/search?q=clipboard+freeware&
  21. See op.db.display_toolpath is true or false. it will toggle toolpath display on/off
  22. Ai Utility version 1.2 is downloadable now. I added some new features to Ai Utility chooks. http://www.ai-sols.co.jp/eng/product/eng_aiutility.htm (we have to add more details to English pages..) New features.. + Drag and Drop from Explorer. You can open/merge files by drag'n dropping from expolrer window. + Customizable menu.(third party menu) You can add FT commands by editing *.menu files.. and the main menu file is Ai_ChookMenu.main. +Auto hide operation manager.(only for X2MR2) I recommend to undock OPmanager when this feature is ON. +Increment/decrement levels/colors with mouse wheel. Please let me know if you have suggestions or find a bug.. Previous thread.. http://www.emastercam.com/cgi-bin/ultimate...ic;f=1;t=027797 Merry Christmas and Happy New Year To All.
  23. Hi Unfortunately, I've removed freehand.zip from our website, because that chook is not a freeware anymore..(my boss's order! ) I'm sorry. But, if you already have it, you can use it freely.

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