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

ashjo16's Achievements

Newbie

Newbie (1/14)

0

Reputation

  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

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