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
quote:
So are macros different than CHooks or is the macro recording the CHook commands?
Is there a listing of the macro commands any where. I looked in the CHook development but have been unable to find the information I need.
Chooks are different from macros.
To know about macors commands try to look in Help
(Sorry I cann't help more, I haven't acces yet to V9.1)
Anos :
quote:
How are you recording the macro? Macros have not worked reliably since version 7 (if they ever did at all).
recording macros works under MC V8.1.1
Bryan
good job bryan !
Plasttav
quote:
A dream feature is to have an option to do this with solid faces !
Do you mean color each feature (hole, fillet, pad, ...)?
Hi to all
The problem of handling many versions of documents and keep history of modification is common to other fields (CAD, CAE, ..).
I woold know how many people in this forum are using a PDM or PLM system to handle files and project?
Hi to all
In general with other CAD/CAM systems (CATIA v5, Solidworks, AutoCAD etc..), we use Vbscripts for automation, i.e. if we have many repetitive tasks, it will be better to do them via a an add-in.
Chook are written whith C/C++ that it's more difficult than Vbscripts, but more efficient and gives a large application's field.
HTH
You have choice,
you can change your post, so it will be able to generate Gcode correctly for this mill.
Or you design, in MC, in Z- so the actual post will do job.
First you should decide about courses, what are approximatively dimensions of parts to control (or range)?
Second : you will buy a fix or mobile head? this's also linked to type of parts to be controled.
There are Mitityo, Zen, Sharp, ... you should compare prices, precision, ...
HTH
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.