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:

CAM Disciple

Verified Members
  • Posts

    157
  • Joined

  • Last visited

Everything posted by CAM Disciple

  1. Try changing this question in the post; 302. Absolute or Incremental [0=ABS, 1=INC] (mi2)? 1 HTH
  2. I got the following message when I compile my program. --------------------Configuration: whatever - Win32 Release-------------------- Compiling resources... Compiling... StdAfx.cpp Compiling... whatever.cpp WhateverDlg.cpp Generating Code... Linking... Creating library Release/whatever.lib and object Release/whatever.exp whatever.dll - 0 error(s), 0 warning(s) Am I suppose to see some kind of message indicating that the two critical object file have been link to the project? How can I be sure that those two files have been compiled? Do I need to change any setting in the link tab of the project setting? Please help. Thanks
  3. code: extern "C" void CH_ENTRY m_main (long *ptrs) { if (open_app (ptrs)) // open interface to Mastercam { // Enable use of the MFC dynamically linked libraries AFX_MANAGE_STATE(AfxGetStaticModuleState()); // call our main function main_whatever(); } close_app (ptrs); // close interface to Mastercam } I do have these lines of code and it still gimme the same error message. Any clue? Thanks
  4. Bryan, quote: I just used them to start a new mfc/c++/chook project and they worked fine. Did you change anything to make it work? I did exactly what Bulliness said and I still get that anoying Fatal Error: Program Entry Not found error. The only thing that I change is commented out the #UNDEF export line. If I have those lines, I will have three compiler errors. Please help. Thanks
  5. Maybe move some of your script to VB and compile it into ActiveX DLL then have a script that link to this dll. Mick wrote the sample VBS script to achieve this goal. HTH
  6. or open your SDK document 10menu.doc. Goto page 9 and 10. might have to reinstall your chook SDK if you cannot locate the m_menu.h file. HTH
  7. James, There's a sample from the Chook SDK on chapter 22 page 19-24 that shows you how to create a chook dialog without any MFC. However, I haven't make it to work. Hope you get a better luck than me. You can always create your own C++ dialog in MFC too. The first chapter of the SDK shows a pretty good example. Again, I am just not smart enough to make it work. Please let me know if you can make both sample work.
  8. Bryan, I can compile the shapes example but I couldn't execute it in MasterCAM. It always said program entry not found no matter what I change in my settings. I am using VC++ 6.0. Can you show me what you did? I can write program in plain C without any MFC linking. When I have my file in .cpp, I cannot make it work. Which is the reason I wanna try the dbm from the chook library. also, sometime MC will say incompatible script version when execute the chook w/dbm. Anybody knows what should be done? Thanks
  9. I am trying to run the sample from the Chook SDK on chapter 22 page 19-24. I had copy the scr file, create the sample.c file and also the sample.txt file. I am running Win2000, MC 9.1 SP2, MS-VC 6.0. When I execute the sample.dll chook, I got two errors: a) DBM Alert: Invalid control type DBM Alert: Internal fatal error... cannot run dialog. The SDK scr file says it's a Version 7.0 scrversion. Do I need to change anything in the script file? Did anybody try this sample dialog before? What did I do wrong here? Please help. Thanks
  10. Does the March Maintenance update fix the operation manager edit common problem? Thanks
  11. John T, In your transform toolpath option, does it make a difference whether you select absolute or incremental mode?? Is it crash both way?
  12. maybe we can drag and drop our part into the screen and ask MasterCAM to draw it. or play UT2004.. that would be awesome!
  13. John, If you want to format a string of text in the text box, you can find the space character that seperate each word. Do a search string for char(32) which is the space character, then seperate the string into two field. Is this what you want to do??
  14. quote: 'Rekd teh On Error GoTo Hell LOL How about On Error Goto Then yourself?
  15. I am not sure I understand correctly, but here's a couple of function to manipulate string: Mid(string, start[, length]) Left(string, length) The vbs help file should get you there. Let say your filename is johnt.mc9 code: Dim strFileName Dim strLen strLen = Len(strFileName) 'take the .mc9(4 chars) off strFileName = Left(string, length-4) strFileName = strFileName & "doc" HTH
  16. If you already have a good RS232 network, then keep using it. You do not necessary need to use the PCMCIA card. It's an option. However, it's a neat feature to have. You can avoid the hassle of buffer overrun, bad cable, XOn/Xoff, software or hardware handshaking.... A card reader cost not more than $50.
  17. PCMCIA can store up to 2 gigs of programs. Pretty cool for drip feeding if you have that option. Buy one card reader that is USB base. We got one here that's using parallel port and it act strange with the HASP. Also, make sure you buy compact flash pcmcia card and not the SRAM.
  18. We are using Mill to program a laser. Have our own chook develop to do all sorts of macro thing available for laser. The post needs to customize though. Let me know if you are interested. Thanks
  19. John, If you have two group of toolpath, you might have to rethink about this vbscript. I start with this script a while ago and I cannot seperate them if I have multiple group of toolpaths. Anyway, your script works if you have a single toolpath group. JM2C
  20. In NCI file, when you delete an operation, your operation id will skip instead of the incremental order of 1,2,3,4. I will try to delete one operation and try to see the op id skip or not. Thanks! Mick!
  21. well, hopefully it will be thre by the time X release. Then again, it will not be VB Script anymore. I was trying to get the operation tool information from the mc9 file, and I thought VB Script will be the easiest. I haven't look into Chook yet, is that info available?
  22. Mick, I have question about the Op_Id code: ' get the number of operationsnCount = GetOperationCount("") If nCount = 0 Then ShowString "No operations found in current drawing": Exit sub For idx = 1 To nCount ' get the tool number using the current operation nToolNum = GetToolNumberFromOperationID("", idx) ReDim Preserve arrToolNumber(idx) ReDim Preserve arrToolComment(idx) ReDim Preserve arrToolDiameter(idx) ReDim Preserve arrToolFluteLength(idx) ReDim Preserve arrToolLength(idx) ' copy tool data into our individual arrays arrToolNumber(idx) = nToolNum arrToolComment(idx) = GetToolComment(nToolNum) arrToolDiameter(idx) = GetToolDiameter(nToolNum) arrToolFluteLength(idx) = GetToolFluteLength(nToolNum) arrToolLength(idx) = GetToolLength(nToolNum) Next Is the op_Id(idx above) always in an incremental mode? If I delete a toolpath #2, will the Op_Id still return in 1,2,3,4,5 or 1,3,4,5?? Please advise. Thanks
  23. +1 How can I know what operation group does an Operation id belong to? If I have the op id, is there a way to know which group it belongs to? Thanks
  24. You can either try chook or wait until version X that has more API function. sorry.

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