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. if I get quad core and quad gpu, I have to open 4 Mastercams.. Intel Quad core http://www.youtube.com/watch?v=3j6rR-Xv2Ro http://www.tomshardware.com/2006/09/10/fou...on_the_rampage/ AMD Quad core http://www.amd.com/us-en/Corporate/Virtual...~111541,00.html nVidia Quadro Quad SLi http://www.techarray.com/video/new_quadro_..._solutions.html Quadro Plex http://www.nvidia.com/page/quadroplex.html
  2. I recommend to use VS2003 when you make chooks for X-MR2 , because MR2 is compiled under VS2003. or wait until X2 is released. quote from "VS 2003 to VS 2005 Conversion.doc" by CNC quote: For development on the Mastercam X2 release, we will switch from Visual Studio .NET 2003 to Visual Studio 2005. In Visual Studio 2005 (VS 2005), Microsoft has made VC++ ANSI compliant and added secure versions of many of the library functions. These changes require a significant number of updates to existing code. We have already converted most of the Mastercam code. ... VS 2005 also changes some data types. Although these changes are not necessarily ANSI related, we document the changes here. VS 2005 changes the time_t data type from 32 bits to 64 bits. This change impacts Mastercam significantly, because we store time in a couple of database entities. Because a 32-bit time value is sufficient for the lifetime of this code base, we decided not to change the size stored in the entities. This decision avoids file conversion problems. However, in our code, many calls to time(), ctime(), and localtime() pass a pointer to the time member of an entity. To avoid overwrites of adjacent members in the entities, you must declare a local time_t variable and pass that variable to these functions. Then, copy that result into the entity. For example:
  3. I dont know,, please write the whole error message. I think you are missing something to link... LPCTSTR ToolPrefix = ToolPrefixStr();
  4. I think you have it already if you use MR2 SDK //Dfregen_CH.h /* * Copyright © 2004 CNC Software, Inc. * * $Workfile: dfregen_CH.h $ * $Revision: 2 $ * $Date: 2/11/05 5:48p $ * $Author: Mjc $ */ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 #ifndef _DFREGEN_CH_H_ #define _DFREGEN_CH_H_ #include "CoreDllImpExp.h" /** * @par Purpose: * Regenerate a drafting entity. * @param[in,out] entity entity to regenerate * @param[in] reset_flags reset messagebox flags * @param[in] forced regenerate non-assoc * @param[in] keep_tp maintain old text positions? * @return TRUE if the entity was regenerated successfully */ DllImpExp MC_BOOL DfRegenEnt ( ent *entity, MC_BOOL reset_flags, MC_BOOL forced, MC_BOOL keep_tp); /** * @par Purpose: * Regenerate drafting entities. * @param[in] display display stats * @param[in] sel_bit 0=all or just matching sel_bit * @param[in] forced regenerate non-assoc * @param[in] keep_tp maintain old text positions? * @param[in] allow_marking allow result to be set? * @param[in] add_undo add undo item? * @return TRUE if the entities were regenerated successfully */ DllImpExp MC_BOOL DfRegenDatabase ( MC_BOOL display, short sel_bit, MC_BOOL forced, MC_BOOL keep_tp, MC_BOOL allow_marking, MC_BOOL add_undo); #endif
  5. hi markov Did you try FT command? post_FT_command("Mastercam", "doDraft_REGENERATE_ALL"); //PumpMessage();
  6. hi naruse try these functions, // Return the active tool library, and/or parts thereof // String is empty, if it can't be found DllImpExp CString& ToolLibrary ( group_list *pTpGroup = NULL, // I: toolpath group to get library for LPTSTR path = NULL, // O: path to file LPTSTR fname = NULL, // O: file name LPTSTR ext = NULL); // O: extension // Return the active tool library, and/or parts thereof // String is empty, if it can't be found // Non-MFC version for NETHooks DllImpExp LPCTSTR ToolLibraryStr ( group_list *pTpGroup = NULL, // I: toolpath group to get library for LPTSTR path = NULL, // O: path to file LPTSTR fname = NULL, // O: file name LPTSTR ext = NULL); // O: extension // Return the path to the tool library DllImpExp CString& ToolPrefix ( group_list *pTpGroup = NULL); // I: toolpath group to get library path for // Return the path to the tool library // Non-MFC version DllImpExp LPCTSTR ToolPrefixStr ( group_list *pTpGroup = NULL); // I: toolpath group to get library path for C:McamX2sdkinterfacesMachineDefMachineDefFilesAndPaths_CH.h(86):DllImpExp CString& ToolLibrary () C:McamX2sdkinterfacesMachineDefMachineDefFilesAndPaths_CH.h(95):DllImpExp LPCTSTR ToolLibraryStr () HTH
  7. I sent a mail to you. some snippet code to create extrude solid with a chain.
  8. Hi arenner You got mail, I tested your code with X-MR2, it is OK but with X2, it crashed.. something is wrong with wr_stl() function. SO I mailed you another way to save ascii stl. HTH
  9. Hi, I dont know much about nethook. can you try this? Chain.ChainManager(opRef, chainRefs, 4, 0); because CHNMGR_REVERSE is 4 code: /** *@defgroup chn_mgr_def Chain Manager Modes * @{*/ #define CHNMGR_MENU 0 ///< display chain manager dialog #define CHNMGR_ADD 1 ///< add chains to an existing operation #define CHNMGR_DELETE 2 ///< remove chains from an existing operation #define CHNMGR_RENAME 3 ///< change the name of chains within an operation #define CHNMGR_REVERSE 4 ///< reverse the chains in an operation #define CHNMGR_RECHAIN 5 ///< replace chains within an operation #define CHNMGR_RECHAIN_ALL 6 ///< replace ALL chains within an operation #define CHNMGR_CHG_SIDE 7 ///< flip cutter comp on chains within an operation #define CHNMGR_CHG_AT_PT 8 ///< modify attributes at a point on chain(s) #define CHNMGR_START_PT 9 ///< change start point of chains within an operation #define CHNMGR_GET 10 ///< get all the chains from an operation /** @}*/ HTH OT: I said "it seemed chook functions available in nethook2.0" in another thread. that was incorrect.. I just saw chook functions in NETHook2_0.xml. I could not use them. NETHook2_0.xml code: <member name="M:uu_to_scrn(System.Double*,System.Int16*)"> @par Purpose: This method converts user units (inches or mm) to screen units (pixels). @param[in] pt a 2d point in user units @param[out] scrn_pt a point in screen units </member> <member name="M:scrn_to_uu(System.Int16*,System.Double*)"> @par Purpose: This method converts screen units (pixels) to user units (inches or mm). @param[in] scrn_pt screen point in pixels @param[out] pt point in user units </member>
  10. It may be caused by Mastercam crash while creating backup files. I dont know what caused the prob
  11. quote: quote: -------------------------------------------------------------------------------- Did you try deleting the file in safe mode -------------------------------------------------------------------------------- damn english grammar.. [ 10-02-2006, 09:31 AM: Message edited by: MasterShake ]
  12. Thad Did you tried to delete the file in safe mode?(press f8 key while XP logo showing on reboot) or try this utility from sysinternals http://www.sysinternals.com/Utilities/pendmoves.html HTH
  13. G95G99G84Z-.6R.5F.03 X4.5978 (F20.31) pitch(feed) is changed in second hole?
  14. hi I have also installed X2 yesterday. you can send me your chook code. BTW, it seems almost all chook's functions and variables are available in NETHook2_0.dll. wow,it would be nice for nethook developers.
  15. Yes, it may be possible by my chooks You can bind 'A' key as Left arrow key open your mastercam.kmp with notepad.exe quote: KEYMAP KeyEvent EVENT_VK_DOWN "Ctrl+S" KEYMAP KeyEvent EVENT_VK_UP "Ctrl+W" KEYMAP KeyEvent EVENT_VK_LEFT "Ctrl+A" KEYMAP KeyEvent EVENT_VK_RIGHT "Ctrl+D" or quote: KEYMAP KeyEvent EVENT_VK_DOWN "S" KEYMAP KeyEvent EVENT_VK_UP "W" KEYMAP KeyEvent EVENT_VK_LEFT "A" KEYMAP KeyEvent EVENT_VK_RIGHT "D" HTH http://www.emastercam.com/ubb/ultimatebb.p...ic;f=1;t=022663 http://ai-sols.sytes.net/download/ Thad I'm testing new dll which has clock on ribbonbar (ai_bkcolor.zip ) if it has no problem, I will make new installer.
  16. I think it will be ok just by filling memory with 0. memset(ch_ent,0,sizeof(CH_ENT)); or ch_ent->density=0; density will be ignored if you are not using sync mode = manual density (ch_ent->id=DENSITY ). what are you trying to do with your chook? creating surfaces or toolpath?
  17. I have never touched 'density' of CHAIN_ENT. I guess it will be used when you use sync mode = manual density in chaining options dialog. code: enum CHAIN_ENT_ID {CHN_CURVE, BRANCH, SYNC, END_OF_CHAIN, DENSITY}; typedef struct _CHAIN_ENT { enum CHAIN_ENT_ID id; ///< curve/branch/sync/end of chain/density DB_LIST_ENT_PTR e_ptr; ///< pointer to entity DB_LIST_ENT_PTR tp_ptr; ///< pointer to toolpath chain entity short ep_n; ///< end point number (0 = first, 1 = second) double density; ///< manual sync with density value struct _CHAIN_ENT *prev; ///< previous chain entity struct _CHAIN_ENT *next; ///< next chain entity } CHAIN_ENT;
  18. quote: Is the scroll mouse speed supposed to affect all applications, or just MC? Just asking. it affects just gview,it does not affect the other windows. quote: I'd be interested to hear some specific examples of how you, or anyone else, use the key events.I bind the key f12 as VK_RETURN_ESCAPE, when I make spline, click spline nodes and I come to the end point of the spline, I press F12 key. and I use EVENT_RB_7 in Ai_Xmenu.txt as example. RB_7 is command of clicking button #7 of ribbonbar. BEGIN COMMAND TrimDivide Mastercam sketcher_trim_1 KeyEvent EVENT_RB_7 END quote: I kinda liked the clock where you had it since we keep the taskbar hidden. That's not a big deal though..if I find a stable way, I will put the clock back.
  19. I've added menu and eMastercam.com link at Mainmenu of mastercam http://ai-sols.sytes.net/download/AI_Utility_1_06_en.exe
  20. Thad I removed ribbonbar of logo and link. Could you try this one? until I fix the problem, please be patient. http://ai-sols.sytes.net/download/ai_bkcolor.zip Thank you
  21. Thank you Thad. I'll fix it as soon as possible, I think the way creatig its own ribbonber is cousing the problem. it may be better to make ai_bkcolor.dll without ribbonbar. Thank you for using my chook and bug reports Colin you got mail back,
  22. I was having supper.. yep,you need validated hasp and and timed access code only for it. recently,some resellers and end-users are evaluating them. this is a test chook program to check if your video card does support hardware shading. http://ai-sols.sytes.net/download/test.zip btw, version 1.05 did not work for you?
  23. quote: Do you get the same errors as I do? If not, maybe it's something on my end. last week I did windows update,after that I got error on closing mastercam. So, I looked in my code, fixed same code, and error is gone.. I thought.. I will look my code again. Thanks

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