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:
Guys,
I’m trying to set the “tplane” by API; the equivalent to the UI “common operation parameters T/C Plane and than the Tool Plane/Construction Plane dialog box”
piece of code I’m using :
=================================================
ent* op;
short iNbView =2;
operation_manager (&(op->u.op), OPMGR_INIT_ADD, &d_ptr, &succf);
if (!succf) return;
……….
op->u.op.tpln.on = TRUE;
op->u.op.tpln.view_n = iNbView;
op->u.op.cpln.on = TRUE;
op->u.op.cpln.view_n = iNbView;
……..
operation_manager (&(op->u.op), OPMGR_REWRITE, &d_ptr, &succf);
if (!succf) return;
=================================================
The result is not as expected. The Tplane and Cplane remain to the default TOP plane.
MC 9.1 MR0105
Any idea? Thanks
Pete,
Thanks for help, it works fine with "view_to_world"
The outstanding issue I have is the fact that "entity.u.ar.view" could have a value other than 1 t0 6; i.e. standard views TOP, FRONT, LEFT ...etc. I tested with a solidworks cube with a single hole in the FRONT view. "entity.u.ar.view" returns 10.
Chris,
The values are exactly the same, just the Y and Z coordinates are reversed. i.e.
Analyze command : X = 1, Y = 2 Z = 3
API function : X = 1, Y = 3 Z = 2
Pete,
basically , what i'm doing i simply importing a parasolid model with holes. Of course it will be loaded in MC as one body and you can’t access features (holes) . This is why I’m using the “wire representation” of the solid and use get_ent to sort arcs (circles).
The issue I can’t know in advance in which view these arcs are and so fart can’t use the world_to_view().
I would like simply to emulate the menu command : Analyze>Only>Arcs
Thanks for help
[ 09-01-2005, 10:08 AM: Message edited by: ksoufi ]
Hi Guys,
I didn't post to this forum since ~ 2 years I was really missing this forum. I'm consulting other CAM/CAM forums . This is the BEST
I'm developping a chook and wondering if someone can help with this issue. It could be a simple staff !
Using MC 9.1.MR0105 Mill/Router :
looping the DB and seraching for arcs:
db_ptr_type ptr, e_ptr;
ent entity;
get_ent (&ptr, &e_ptr, &entity,ON_SCR_BIT ,A_ID,&succf);
if (!succf) break;
When using the trace to mprintf the center's coordinates; i.e. "entity.u.ar.c[]" It doesn't give the same results as using the menu command : Analyze>Only>Arcs.
I'm not changing the WCS.
What would be the reason?
Thanks for help
Markov,
I had the same issue as yours with Groups one year ago. Unfortunatly MasterCAM API doesn't help so much on that. I soled my problem using the STL (Vector , Deque ...)
Bryan,
How are you doing ?
Hi to all
I can help either in english or frensh
but i don't have access to 9.1 yet , with (c/c++), it's easy to do this job.
mario , je n'ai pas encore accès à la version 9.1, cependant je sais faire avec du (c/c++).
Hi Dave
Unfortunatly, I don't know a commercial system that does translation between CAD/CAM systems and keeps the creation's tree. Actualy we use STEP, IGES, STL etc.. to translate models, in the same time we lose history's information.
Hi tmalinski
I've programmed a c-hook (c/c++) that generates G-code from AutoCAD drawing; some hundreds of circles.
I don't know if it's possible to get and recognize circles only by annotations (A1, A2 etc..).
Consulting this forum some time and programming with CAA- catia v5.
In fact this forum lets me attached to CAM and manufacturing, it remembers me some experiences
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.