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:

jadams

Verified Members
  • Posts

    6
  • Joined

  • Last visited

    Never

jadams's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Still the same thing. I tried commenting out the rotate_silent line though, and the "bSuccf is false" message box did pop up. Does this mean get_ent is making more than one round through the database?
  2. Thanks for the quick response. bSuccf is always true. I had to change it from a boolean to a MC_BOOL type to get the code to compile, but I wouldn't think this would have any affect? Here's what I have for the loop now: code: while (bSuccf){ // get the current entity in the database get_ent(&ptr, &e_ptr, &entity, ALIVE_BIT, P_ID|L_ID|A_ID|S_ID|SURF_ID|SOLID_ID|SPLINE_ID|N_ID|W_ID|D_ID, &bSuccf); if (!(bSuccf == true)) { ::MessageBox(NULL, "bSuccf is false", "Project1", MB_OK); break;} // rotate the entity 90 degrees about the origin in the Top view rotate_silent(&e_ptr, TRUE, FALSE, ptOrigin, 90.0, 1, &bSuccf); }
  3. Thanks for your help bullines, but I'm having some trouble getting it to work. Instead of breaking once it reaches the end of the database, it continues to rotate all the entities 90 degrees repeatedly. Any ideas on what might be causing this?
  4. Eventually, my goal is to be able to take in a part and rotate/translate it to a given orientation so another bit of code can plan toolpaths based on that orientation. Are there any bits of example code out there that show how to perform geometry operations or something similar?
  5. Hi, I'm new to mastercam and I was wondering if you guys could help me out. I'm trying to write a program to rotate a part based on parameters read in from a file. Is it possible to do this with C# or vbs, or even with c-hooks? Any pointers in the right direction would be appreciated. Thanks in advance for your help.

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