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:

ashjo16

Verified Members
  • Posts

    40
  • Joined

  • Last visited

Everything posted by ashjo16

  1. Hello all, I am trying to create Rest Roughing toolpaths using X7 SDK through a stand alone software. However I get a the following message when I try importing operations from the operations-7 file. Please see the attached error msg picture. Any idea why is it giving me this error.? Is there any information missing from the operations-7 file that I am using as a template to import ops.?? //Some programming information // As a head start I get a true value from the output parameter "successful" when I call the following function import_operations (file.GetBuffer(0), origin_pt, op_idn, true, 1, false, true, dup, true, &successful); which probably means that it is reading the template file and is able to find the operation, however still some information missing to create tool paths. Please find attached picture of error message. ThankYou for help. Ashish
  2. In X6 it would allow the user to create a operations/defaults file with "Surface high speed general toolpaths" This allowed me to use that operations file as template and choose whichever high speed toolpaths type I wanted, through X6 SDK Is there a way I could do it in X7. because in X6 whenever I try to "reload parameters from Defaults file", it would switch to general toolpaths, but now I cant find a way to do that. Is there a way I could save the operations/default file with "high speed surface general toolpaths" in X7? or is there any other option ?
  3. Hello, Having issue with migration from X6 to X7 SDK using C/C++ for standalone software package. surface_manager(op->op_idn, NULL, SRFMGR_SRF_ADD, 2, &successful); //take all surfaces with select bit on The last parameter (successful) in the function above is returning false.(Dont know why). Before calling the above function I call the function below import_operations (file.GetBuffer(0), origin_pt, op_idn, true, 0, false, true, dup, true, &successful); where it is returning successful as true; (which means it is reading the required operations from the .Operations-7 file; file path specified by file.GetBuffer()) Any idea in what case would the surface_manager function return successful as false?? Thanks for the help Ash
  4. Hello Would it be Ok to use VS 2010 for X7 SDK use or VS 2012 with toolset (V100) VS2012.? I assume, using either option would be Ok but just wanted to make sure, I am not missing any subtle thing in it. Thanks Ash
  5. Thanks, we always used among the options listed under variable "MC_BYTE style" in the file "AssocTyp_ch.h". Thanks Ashish
  6. Hello, This is Ash, In X6,is there a way to use OptiCore toolpath through X6 64bit SDK.? The options provided in the X6 SDK are // 0-Core roughing (pocket, out to in) // 1-Area clearance (pocket, in to out) // 2-Waterline (Z contour) // 3-Constant stepover (scallop) // 4-Horizontal (facing) // 5-Raster (parallel) // 6-Pencil (single and multipass) // 8-Hybrid (waterline and scallop) // 9-Spiral // 10-Radial // 11-Rough rest passes // 12-Opt Rough I think the OptiCore,OptiArea,OptiRest fall under the general category of No 12- Opt Rough but when I use Opt Rough, it uses the OptiArea option automatically by default. However I cant find an option which would allow me to use OptiRest. Thanks for the help Ashish
  7. Brandon: Thanks for asking Its not a typing mistake, but just a different name for the boolean variable that is returned by the function!
  8. To Roger: Thanks for the reply All of the (4) functions listed return false. get_ent(&ptr, &e_ptr, &entity, SURF_ID|SOLID_ID, &bsuccf); surface_manager(op->op_idn, NULL, SRFMGR_SRF_ADD, 1, &succf); //take all surfaces with select bit on operation_manager (&op, OPMGR_GET, &eptr, &succf); operation_manager (&op, OPMGR_REWRITE, &eptr, &succf);
  9. Another thing I was wondering is that, In X6 it would allow the user to create a operations/defaults file with "high speed surface general toolpaths" This probably allowed me to choose which high speed toolpath type I wanted using my application through my CHOOK. Is there a way I could do it in X7. because in X6 whenever I try to "reload parameters from Defaults file", it would switch to general toolpaths, but now I cant find a way to do that. Is there a way I could save the operations/default file with "high speed surface general toolpaths" in X7? or is there any other option ?
  10. Hello, This is Ashish again from ISU.(iowa State University) I have migrated our standalone package from X6 to X7 SP2 using X7 SDK(Visual Studio 2010, C++) The only thing remaining is the creating toolpaths. For this, from the SDK I call the following function import_operations (file.GetBuffer(0), origin_pt, op_idn, true, 0, false, true, dup, true, &succf); where the last parameter "succf means successful" is returning true.(from the operations-7 file) However when I call the functions below, it returns succf = false ( which means it didnt work, which I can't recognize why) MC_BOOL succf = true;// initialized as true ent entity; DB_LIST_ENT_PTR e_ptr, ptr; get_ent(&ptr, &e_ptr, &entity, SURF_ID|SOLID_ID, &bsuccf); surface_manager(op->op_idn, NULL, SRFMGR_SRF_ADD, 1, &succf); //take all surfaces with select bit on operation_manager (&op, OPMGR_GET, &eptr, &succf); operation_manager (&op, OPMGR_REWRITE, &eptr, &succf); Does anybody know in what case would it return the succf as false.? Prior to X7, the solution to this issue was to uncheck the "Enable Multi-threading" check box in the "Configuration->Tools option" and it would work. Now it doesnt and I have almost ran out of options to try. Apart from this issue, the mastercam doesnt crash because of my application nor any other weird issue, just that it returns succf as false because of which toolpaths are not created. Any help is appreciated. I apologize for long post. ThankYou Ashish
  11. I switched back to VS 2010 toolset and fixed this problem, Thanks Ashish
  12. Thanks for the reply, Let me try that, I will get back to you. Thanks once again. Ash
  13. Hello i am a grad student from Iowa State Uni I am in the process of migrating our add-on software package from X6 to X7(using X7 SDK, VS2012, C++) However when I openup a CAD file through the add-on software ( IGES,STEP), The code crashes at functions that initiate creating STL files. The function name (from file Stl_CH.h in SDK) are : void wr_stl(real err_tol, FILE *f, LPCTSTR fname, long ent_idn, MC_BOOL ascii_data, MC_BOOL silent, MC_BOOL use_wcs, MC_BOOL okIfNotVisible, MC_BOOL okIfBlanked=FALSE); void wr_stl(real err_tol, FILE *f, LPCTSTR fname, long ent_idn, MC_BOOL ascii_data, MC_BOOL silent); When I use either of these functions the mastercam crashes. Here is the code snippet I am using below: FILE * stl_file; fopen_s(&stl_file,file.GetBuffer(), "wt"); wr_stl(0.001, stl_file, "", -1, false, true,false,false,false);// crashes at this point.! fclose (stl_file); It always works fine in X6 but crashes in X7, which is confusing. Can somebody help please.? ThankYou for help. Ash
  14. My bad, I was specifying machining depths (min, max) above stock position. Thanks for the reply. Ash
  15. Hello all, Sorry if this is a very elementary question. but what does it mean if the mastercam gives out the message below, whenever I click on the "verify operations" button. "unable to estimate stock extent, please use stock setup" Thanks Ash
  16. Hello All, I am using Mastercam X6 SDK to connect our self developed C++ application to X6. and used for CNC milling. For this I need to pull out different tools from the tools library through our C++ code. For this different tools in the tool-6 library are identified by tool ids. eg- flat end mill -10, ball end mill -11 , Does anybody know about a list that contains tool ids or atleast does anybody know the id for bull end mill.? X6 SDK doesnt seem to have the doc list for different Tool ids.? (or I am not looking in the right place!) Thank you for the help Ash
  17. Fixed it, There was an issue with the PC admin privilages.!! Thank you all for replying.!
  18. That error "insert.tbl" isnt contributing to anything that causes the installation folder issue. I am, still facing the original issue, even after fixing the "insert.tbl' error issue. (I just had to shift the insert.tbl file to the user folder location) However the installation folder persists.! Thanks for replying. Ash
  19. Just as more information, it gives me the following event in the event log Please see the attached picture and the highlighted area at the pictures bottom. ThankYou Ashish
  20. Thank you all for the replies, I had to make changes in my code. to fix that issues Now it can handle any file format smoothly. Appreciated! Ash
  21. Hello, I have a CAD CAM package that is integrated with the Chooks and used with the X6 64 bit. However the issue is that, if I install the mastercam under C:/programfiles/mcamx6 the mastercam crashes when I try to use my CAM package. However if I install the mastercam directly under "C:/mcamx6" the CAM package works fine.! Does anybody know how I can fix this issue.? I NEED to have mastercam installed in Program Files folder.! Thanks Ashish
  22. Hello , I am trying to generate the series of toolpaths for a part about rotary axis on a X6-64 bit on Win7 PC. The toolpath is created from one orientation then part rotates automatically and then again toolpaths are created. However during toolpath gen, the model just sits there and toolpaths are not displayed. however the NC code created is correct ( I compared it with NC code created on other machine) I tried changing into configurations-> screen setting but nothing seems to work Does anybody know what am I doing wrong.? Thanks for the Help. Ash
  23. Hello , I am using a standalone CAM package developed in my lab integrated through Chooks with MastercamX6 64 bit. (recently upgraded from X4 to X6) What this CAM package does is that it automatically creates high speed machining toolpaths for a part AUTOMATICALLY from various orientations. For ex: machining from a 0 deg;180 deg for a given part. The issue is that when I rotate the model between two toolpaths, the models break apart; ex: half of the model rotate and half doesnt which ends up with surfaces hanging in air for which toolpath is generated.! (Please see the picture attached) Has any body faced the same issue.? It does this for all the standard format files like sldprt, prt, iges, step, parasolid It always worked fine when I used it in X4, but in X6 it is literally tearing away the model geometry everytime I rotate it about an axis.! Does anybody happen to have a clue? Help is appreciated, Ash
  24. Hello, I am trying to install an X6 copy on a PC. while the install is going on , it suggested that it needs to install VS 10 redistributable. but sometime it says that it failed Does anybody know why it says that it failed.? or is it required to have VS 10 installed as a dependency to get X6 installed.? Thanks Ash

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