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:

CNCLaundry

Verified Members
  • Posts

    26
  • Joined

  • Last visited

Uncategorized

  • Location
    Gütersloh

Recent Profile Visitors

949 profile views

CNCLaundry's Achievements

Newbie

Newbie (1/14)

1

Reputation

  1. Hello, I want to ensure that the screen z-value is set to 0.0. But i don't know how to get and/or set the z-value of the screen? Thanks in advance for your help.
  2. Thank you Roger, that works fine. But now i have found that i cant't store that print in a file without manually enter the path (with an pdf printer driver). That's what i want to avoid. Now i think like acam did. Make a printscreen image and than store it as a bmp in the directory where the mc-file lives. I'm able to store that bmp with "screen_to_bitmap_file(...)" That works also. But what if i want to manipulate that image before storing it. Saw the function "screen _to_Bitmap(...)" and got the same problems as acam. How to get the bitmap-size in "graphic screen in the original size"? Best regards Norbert
  3. Hello and a lucky new year to you all, i have a further question about creating screenshot or better creating a print like File/Print. Let's assume, that the setup for printer, orientation, color etc. is done. Is it then possible to control that print function with a chook-function (in MC2019 and above) ? Maybe the undocumented function "send_file_to_printer(class CStdioFile *, int, wchar_t *)" is the key for that? Please help. Best regards
  4. Roger, thank you very much for your helpful descriptions. So, my arc's view number is 22 and it lays on a named plane ("S1") with Plane ID 52. But can you give me a hint how i get the Plane ID from the view numer.
  5. Yes Zaffin, you are right, i wish to get the view matrix of arc's too. But also i want to get the view-matrix from my selected and self created views. It works for the "non reserved planes" TOP, BOTTOM, LEFT … but not for my created views/planes.
  6. Hello peter~ and Zaffin, thanks for your replies. My Mastercam-Version is 2019 (21.0.28020.0).
  7. Hello again, trying to access Mastercam Plane which is not one of the reserved, i got Always errors. Don't know why. This code works: const Plane *arcPlane = Planes.GetPlanePtrByID(1); //get-Plane 1==TOP swprintf(sztext, L"Name of Plane %s\n", arcPlane->GetName()); //tell me name, WORKS and gives TOP and this didn't work with existing plane No. 22. plane 22 is in planemanager visible and ok but this code CRASHES: const Plane *arcPlane = Planes.GetPlanePtrByID(22); //get Plane No. 22 swprintf(sztext, L"Name of Plane %s\n", arcPlane->GetName()); //-----------------------CRASH Do you know why? Thanks in advance for any help or hint.
  8. found it and the solution is extern DllImpExp MastercamPlanes Planes;
  9. Hi, unfortunatly i can't get the list of all names of WCS's under 2017 no more? Neither the extern DllImpExp VIEWARRAY NamedViews; ///< Current array of named views nor the named_view_manager(...) worked for me. How can we get the mentioned list of WCS's under 2017/2018? Thanks in advance
  10. Microsoft Windows 7 64 bit MasterCam X7 (16.0.8.0) Visual Studio Prof. 2012 Version 11.0.61030.00 Update 4 with Platform Toolset v100 (Visual Studio 2010) Trying the same as rocheey did. And made the same mistakes. After correcting, as discribed here, my debug-environment won't start. i always get many failures "Debug Assertion Failed!". My CHook-Prject is very simple and created with the Mastercam-CHook-Wizard with the "Dialog sample" option and without any additional code. The x64 release version compiles and works correctly. Please give me a hint.
  11. Roger, tried the function build_all_edgecrvs_on_surf with chordal and break angle as i do in Mastercam directly. The output from my chook differs in most cases. 'Mastercam direct' produces at cylinder-surfaces the correct arcs and lines. With my chook i got at the same cylinder-surfaces splines and lines, no arcs. In both cases i use for the chordal-tolerance 0.075 and for the break-angle 20.0. Have you any ideas, what to do, to get these arcs with my chook? Thanks in advance. Norbert
  12. Hello, having a bunch of drilling operations in my mastercam model, i want to modify the options for these operations, espacially the drilling-point sort options. I need to set them to cross sort SORT_ZzmCcw with an Z-axis to rotate about. First i tested it with setting the variable operation.u.prm_drl.sort_method and rewriting it with the operation_manager(...)-function. That works only for setting the sort_method. I found nothing to set the axis, except in the structure drill_options in Drill_CH.h. My question is, how to set abovementioned options for my drilling operation? Thanks in advance

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