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:

wire123

Verified Members
  • Posts

    24
  • Joined

  • Last visited

Everything posted by wire123

  1. Adding C:\Program Files\mcamx7\ to the path solved the IFStitch.dll issue for me.
  2. But the 2 Lathe seats are working w/o Admin rights. And by the way, it is X2 to be specific.
  3. We are having a blow up issue with MCAMX - Wire. We are migrating users from the local Administrators group into the Users group. Previously, DOMAINCWIRE would be a member of the local Administrators group. We are removing DOMAINCWIRE from Administrators and making sure every user is a member of Domain Users and placing Domain Users into the local Users group. On two of the PC's running Lathe, this is working fine. On the computer running Wire, unless an Administrator opens the file, MCAMX terminates with errors (I don't know what error, MCAM wants to report over the web). If I put Domain Users into the Administrator, it works. If I put Domain Users into Power Users or Users, MCAMX terminates. I've been looking for hints in the admin manual and installation manual and thought I would post to see if anyone else has had a similar problem. Cliff
  4. So, if I buy v7.1 now so I can upgrade and use my c-hooks now, will I be able to use 7.1 for X2 as well? Would/should the C-hook continue to work in X2? Thanks Cliff Wire Roll-Kraft
  5. tool_manager() is used to read/write the tool information tp_tool which contains milling/drilling tools. LATHETOOL appears to be the equivalent of tp_tool for latheing, but tool_manager doesn’t use LATHETOOL. The linked lists on 5-61 of mill tool entities and lathe tool entities show that the tool types aren’t interchangeable. How do you get a lathe tool into/out of the database?
  6. pt1[X] = 2.5000 pt1[Y] = 5.1260 pt2[X] = 2.4380 pt2[Y] = 5.2500 pt3[X] = 1.2500 pt3[Y] = 5.2500 pt4[X] = 0.0620 pt4[Y] = 5.2500 pt5[X] = 0.0000 pt5[Y] = 5.1260 pt1 to 2 and pt4 to 5 are 0.062radius 90deg arcs (0to90 and 90to180 respec.). Pt2 to 3 and pt3 to 4 are equal length lines. I can draw the above 4 entities. I have managed to draw the above chain using only one CHAIN(chnAll) and one CHAIN_ENT (lastCe). LastCe = NULL; err = add_curve_to_chain(&entRtOCR, 0, TRUE, TEMP2_BIT, chnAll, &lastCe); draw_chain_direction ( chnAll ); lastCe = last_chain_curve(chnAll); err = add_curve_to_chain(&entRtLine, 0, TRUE, TEMP2_BIT, chnAll, &lastCe); lastCe = last_chain_curve(chnAll); err = add_curve_to_chain(&entLftLine, 0, TRUE, TEMP2_BIT, chnAll, &lastCe); lastCe = last_chain_curve(chnAll); err = add_curve_to_chain(&entLftOCR, 0, TRUE, TEMP2_BIT, chnAll, &lastCe); draw_chain_direction ( chnAll ); draw_chain( chnAll, 11); //12=red, 11=lt blue, 10=green draw_chain_sel( chnAll); //not exactly sure what this is doing A call to chain_manager() sets succf to TRUE. Does every entity in a complete chain need a CHAIN_ENT? What I want to do is have the chook finish up and create g-code. I’m not entirely sure what calls and the order using operation_manager(), tool_manager(), chain_manager() & nci_manager() I need to achieve that end. Any suggestions would be welcome. I’ve read the C-Hooks FTP download which I used to accomplish the above.
  7. The Box Font is a stick font MCAM created and supplies. I could manually rotate my strings, but that adds extra steps for the end user. I am trying to minimize that with templates. I also don't know what height/width ratio those TT fonts use. I tried to find one that seemed to come close, but no luck. New information. If you go into the MCAM9 dir and find the CommonFontsBox. There is a Letters.DAT text file detailing the width of characters based upon a 1.4 height (MCAM doesn't tell you the height used). That ratio scales up or down. So I may have found a solution to my problem.
  8. And I appreciate it. I think we may be talking past each other. I was thinking that if there is a font close enough to the box font, I could use Word to creat the templates. The bigger the radius, the wider spaced the numbers for the clock positions. You could then place your words appropriately for the radius and not have to adjust them.
  9. ?? I don't understand your question. I'm not trying to assimilate anything.
  10. Does anyone know which font is most similar in proportion to the box font? I am trying to create a series of templates using the box font. The text will go on an arc. We have about 3 doz different arc radii that we reuse. The user would be able to pick the arc radii and type in the line below the numbers which represent the positions of the clock and know how the text will lay out. The general concept below is from Notepad which doesn't work because it is a fixed width font. In Word, Courier New and Monospace821BT come closest, but are still off. We want to place our text between 9&12 and 3&6 o'clock spaced according to size of the arc. All the extra spaces get stripped out when I preview this post. The "RK 73217 D-2 5/05" is spaced from 9 to 12 o'clock. The "W.R.-B 8.625 O.D." is spaced from 3 to 6 oclock CenterDia/Rad of StampR is 8.25/4.125 USING .375 LETTERS. 3.9375 IS LETTER RADIUS 6 7 8 9 10 11 12 1 2 3 4 5 6 RK 73217 D-2 5/05 W.R.-B 8.625 O.D. CenterDia/Rad of StampR is 8.50/4.25 USING .375 LETTERS. 4.0625 IS LETTER RADIUS 6 7 8 9 10 11 12 1 2 3 4 5 6 RK 73217 D-2 5/05 W.R.-B 8.625 O.D. CenterDia of StampR is 9.00 USING .375 LETTERS. 4.3125 IS LETTER RADI 4.5 IS CENTER OF STAMP 6 7 8 9 10 11 12 1 2 3 4 5 6 RK 73217 D-2 5/05 W.R.-B 8.625 O.D. Thanks. wire123
  11. It does work in the dialog test mode: LAYOUT-TEST. MSVC++6.0 SP5
  12. Yes. That's why I'm puzzled. I can even 'test' it under the layout dropdown.
  13. "Tab Stop" is checked for all the edit boxes. This is a release version.
  14. I called up GEAR.DLL and CVIEW.DLL, and the tab works with those. But not with mine or SHAPES. I am calling the AFX_MANAGE_STATE() macro before my dialog is created. In the configure section, I can't find any mapping for the TAB key, and I have scrolled through it 3 times.
  15. I suspect I am missing something simple, but... I have created my chook and it works with one problem. I can't tab through the Edit boxes. I have gone back to the Shapes example, and I can't tab through that either. Hitting the tab key just causes the 'bell' to ring. I am new to GUI programming, and my manuals haven't shown an answer yet. The 'Tab Layout' shows the desired sequence, and can be tested. The manuals indicate that once I set a tab order, thats it. What I have done in VB (outside of MCAM) works. TIA wire123
  16. I have a v9 CD. I recompiled with those .OBJ files. It no longer blows up. And it prints! Thanks all.
  17. Sorry for the delay, I was pulled to other projects. Here are my date time stamps. With the char array I also tried: char txtout[]="some text to print"; m_init.obj 01/25/01 3:16pm m_ptrs.obj 01/25/01 3:16pm I really don't need the text to say around past the initial screen.
  18. Here is what I did to get it to work. The above information helped a bunch. Thanks all. In my CMyDialog::OnInitDialog() function, I added a call to the following function (that has all the static vars) with a junk pointer and a handy flag that tells the function to repaint the variables (if there are any) in the dialog. CMyDialog::LoadRoll (someptr, Flag); The static vars in LoadRoll contain the array of parts (1 to many that were read in from a file) that I need to increment/decrement through and have drawn in a MCAM window. Alt-C or the 2nd CREATE menu calls my chook back up to the point where I left off. I can then increment to my next part, Draw, ToolPath, Post, etc. I modified the SHAPES.CPP and SHAPEDLG.CPP files to suit my needs // Purpose: main function static void chook_main (void) { boolean show_dialog; Crkrolldlg dlg; // Enable use of the MFC dynamically linked libraries AFX_MANAGE_STATE( AfxGetStaticModuleState() ); show_dialog = TRUE; undo_hold(); while (TRUE) { if (show_dialog) { if (dlg.DoModal() == IDOK) // run the dialog { dlg.m_RollType .MakeUpper (); Process_Roll (Variables); } else // Cancel break; } cleartextall(); } //while (TRUE) } //static void chook_main (void) // Purpose: Entry point for C-Hooks programs /************************************************/ /* do not delete m_main() */ /* M_MAIN FUNCTION */ /************************************************/ extern "C" void CH_ENTRY m_open (long *ptrs) { if (open_app (ptrs)) chook_main(); close_app (ptrs); } //************************************************/ /* do not delete m_main() */ /* END M_MAIN FUNCTION */ /************************************************/ extern "C" void CH_ENTRY m_enter (long *ptrs) { boolean show_dialog; Crkrolldlg dlg; // Enable use of the MFC dynamically linked libraries AFX_MANAGE_STATE( AfxGetStaticModuleState() ); if (open_app (ptrs)) { show_dialog = TRUE; undo_hold(); while (TRUE) { if (show_dialog) { if (dlg.DoModal() == IDOK) // run the dialog { dlg.m_RollType .MakeUpper (); Process_Roll (Variables); } else // Cancel break; } cleartextall(); } //while (TRUE) } close_app (ptrs); } //extern "C" void CH_ENTRY m_enter (long *ptrs) extern "C" void CH_ENTRY m_close (long *ptrs) { //if (open_app (ptrs)) //chook_main(); close_app (ptrs); }
  19. Sorry about that, here you are. static void WR190( variables) { p_3d TxtLoc; //for draw_txt_on_screen() way below char textOut[20] = {{'0'}}; strcpy ( textOut, "Flat: .562"); //many lines of working code if( pt55[X]>0 ) { TxtLoc[X] = pt55[X]; TxtLoc[Y] = pt55[Y] + 1.0; TxtLoc[Z] = 0; draw_txt_on_screen (TxtLoc, textOut, RED); //blows up } } //MyFunc() end This program has performed and illegal operation and will be shut down. LATHE8 caused an invalid page fault in module at 00de:00000009. Registers: blah, blah, blah
  20. draw_txt_on_screen(p_3d pt, char txt[], byte color); Anybody have any experience with the above function, pg. 9-3 of the chook manual. When I run it, my system throws a nasty error from unknown module and wants to shut down Mastercam. Thanks.
  21. I have found something, which of course I can't recreate. PROJECT-SETTINGS, RESOURCE tab I removed _DEBUG, which gave me an error which pointed me to NODEFAULT. I looked that up in MSDN and that listed Multithreaded DLL, Single threaded DLL, etc And that pointed me to the libraries. (I did put _DEBUG back.) In PROJECT-SETTINGS-LINK tab it was: /nodefaultlib:"msvcrtd.lib" MSVCRTD.DLL is the switch /MDd Mastercam specifies /MD which is /nodefaultlib:"msvcrt.lib" Even though the /MD switch was in place, so was msvcrtd.lib. I changed it to /nodefaultlib:"msvcrt.lib" and compilied and linked with zero errors. Thanks for all the assistance.
  22. I can compile, link and run the SHAPES example from the command line. But I want to use the windows debugger. I am new to MSC++(Have always used Borland). I can compile SHAPES.CPP & SHAPEDLG.CPP, but when I link: --------------------Configuration: Shapes - Win32 Debug-------------------- Linking... mfcs42.lib(dllmodul.obj) : error LNK2005: _DllMain@12 already defined in MSVCRT.lib(dllmain.obj) mfcs42.lib(dllmodul.obj) : warning LNK4006: _DllMain@12 already defined in MSVCRT.lib(dllmain.obj); second definition ignored Creating library Debug/Shapes.lib and object Debug/Shapes.exp Debug/Shapes.dll : fatal error LNK1169: one or more multiply defined symbols found Error executing link.exe. Shapes.dll - 2 error(s), 1 warning(s) I have followed the instructions regarding m_init.obj, and m_ptrs.obj. I have removed _DEBUG and added _MSVC_ and MSWINDOWS. 1 byte alignment. I have #undef EXPORT and moved #include "math.h" to below the mcam includes. #undef _DllMain@12 gave other errors. Any suggestions

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