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:

sigmawave

Verified Members
  • Posts

    69
  • Joined

  • Last visited

Everything posted by sigmawave

  1. Hi, Takashi. I searched both X2 and X3 SDK documents. I can't find them you mentioned. I searched for "COLORREF", it find nothing. Would you mind telling me which header file they are in? Thanks!
  2. Sorry, Hedelius. I didn't check the forum yesterday. It seems you have got your solution. If you still need more information, I will check my source code to tell you more. Sorry about that.
  3. When I grab the color property of an entity, I can get color index number(MC_BYTE type) such as 63 . It doesn't contain the RGBA value (for color number 63: Red:153, Green:204, Blue:255). How can get the RGB value behind the color index number of entity. Any suggestion will be appreciated.
  4. When I go through the DB_LIST_ENT_PTR, I want to know if an entity is a solid or surface or not. I checked the SDK document, I didn't find any function about that. Anybody can give a way? Thanks a lot!
  5. Hi, Everyone. I did some 32-bits C-Hooks. I am thinking about how to update them to be 64-bits compatible. According to the Mastercam official website, Mastercam suppors 64-bits windows from X2-MR1. If I want to make 64-bits development, where can I get the libs for 64-bits? Thanks a lot!
  6. Happiness will around eveyone in the oncoming 2009! Best wishes from Sigmawave.
  7. I tried. I failed. I think the the resource is the source of the issue.
  8. Thank you, markov However, I can't use the non-debug version mastercam.exe. If I use it for debuging, I can't load my debug version C-Hook. Certainly, It will stop at the break point, if I am using the release version. But it doesn't contain the debug information.
  9. quote: Q? Can you startup the debug version of X3 outside of Visual Studio? A quick and easy test, just create a shortcut-> Target = C:McamX3SDKdebugMastercam.exe Start in = C:mcamx3 Answer: I can't. I tried to create a shorcut on the desktop with the settings you mentioned above. I got a error message as following: C:Macamx3sdkdebugMastercam.exe This application has failed to start because the application configuration is incorrect. Reinstallting the applicatio may fix this problem. By the way, there are following Mastercam versions installed on my computer: Mastercam 9/X/X2/X3 If I change the settings of the Shortcut to be with X2, it works. Target = C:McamXSDKdebugMastercam.exe Start in = C:mcamx
  10. I am developing the C-Hook with Mastercam X3 under VS2005. I set the Debugging settings in project properties as following: Command: C:McamX3sdkdebugMastercam.exe Working Directory: C:McamX3 When I start the debugger. the following message comes up: Unable to start program 'C:McamX3sdkdebugMastercam.exe'. This application has failed to start because the application configuration is incorrect. Review the manifest file for possible errors. Reinstalling the application may fix this problem. For more details, please see the application event log. By the way, I can use the VS debugger with X2 with the similiar settings. Anybody can tell me how to set the configuration for X3 debugging. Any help will be appreciated. Thanks!
  11. HI, Thank you for your reply. I built it with Mastercam X MR2 SDK and Visual Studio 2005. I run it in Mastercam X MR2. (Not X2, X3)
  12. I compiled the demo project. I run it in the Mastercam X. It can run. But all the resources disappear. For example: all the captions of the buttons disappear. And the buttons can not react the click event. At this time you have to terminate the Mastercam thread. I don't know how to stick a image. Otherwise I can post the picture. Anybody can give me a demo case with the modal dialog? Thanks!
  13. Thank for everybody. I use the Mastercam X SDK to recompile my C-Hook. I can call the dll. But when the dialog(modal) appears, it seems the initialdialog even doesn't work. I think there is a issue in the archetecture. I really appreciate your help.
  14. I started my C-Hook development with X2. After the X3 was released, I update my program to make it compatible with X3. Today I tried my C-Hook(built with X2 SDK) in Mastercam X MR2. It doesn't work. Anybody can tell me the changes between the X and X2 SDK. Any help will be appreciated.
  15. Hi, CaKiwi I am working the C-HOOKs for Mastercam X to X3. I use the same codes for retrieving tlno from different version Mastercam. Certainly, I use another way to do that. I get the tool number infomation by the following method. it always works. code: operation.tl.tlno So, everytime I get the tool number by analysizing the operation. Hope it is helpful to you.
  16. Hi, buddy! Why don't you use the tlno property, like this: code: slot20004 = binaryNCI.u.m20004.tlno;
  17. Thank you for your reply. I just want to know if we can find a way to develop the Machine definition and Control definition file automaticly by C-Hook.
  18. I searched the MastercamX SDK documentation. I got the result only: code: DllImpExp MC_BOOL SelectMachineDefFile( char* pFileName, CArray<eMachineTypes, eMachineTypes> & machTypes, BOOL bOpen=TRUE, MC_BOOL showAllFiles =TRUE, CWnd* pParentWd =NULL, MC_BOOL allowPrvver = FALSE) But, I don't know how to use this function. What I want is very simple. I just want to read a machine difinition file to a CNCMachine Object. Then save this Object to another Machine Definition file. Any suggestion will be appreciated. Thanks!
  19. I don't think you can use Delphi to write the Net-Hook. You have to use VB. They are almost the same thing. And, if you want to go more deep in Mastercam Automation development, VC is the only choice. I did many developments by Delphi, I use it from Version 5. It is amazing. But it is sold to other company by Borland. It is too bad. Further more, most of the SDKs are Microsoft language based. I did CATIA Macros by VB. Mastercam by MFC. I don't have opptunity to use Delphi any more. What a pitty! Good luck!

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