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:

X7 SDK issue question


Recommended Posts

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

Link to comment
Share on other sites

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 ?

Link to comment
Share on other sites

Which of the (4) functions you listed returns "false" ???

 

 

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);

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.

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