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:
I am trying to write a move to a file using these functions, but nothing is being output. Any ideas why? or what other steps i need to perform before using these functions? and what does the position argument reporesent in wr_nci_3d_pt?
thanks
Thanks James. I am actually a student trying to learn this...for this proejct actually, all operations must be transparent to the user. My chook needs to load an mc8 file and create a pocket contour(with various input parameters), and then output a pmc file describing this toolpath. the menu will have an "open file" command, and after the user selects the file, he should take no further action and a pmc file must be generated. any help with the general algorithm would be greatly appreciated
thanks a lot!
when I use the chains_to_pock_bounds function, i get a pock_bound that doesn't have it's parent pointer nor any of the other variables inintialized
Am I doing something wrong? How can i get this information?
Thanks!
[ 06-21-2002, 12:12 PM: Message edited by: Duckman ]
no, this is all within a CHOOK program...right now I have a linked list of chains, and I need to know which of these chains are completely contained in another chain
I have a linked list of chains got from chain_from_mc8(). Is there a way to test if one chain is completely enclosed by another? IE, how to distinguish islands and outer boundaries?
thx
just wondering if there are any functions that operate on pock_bounds? it seems like i can convert chains to pocket bounds, but then that doesn't help me ? thx!
Suppose that I am only considering lines and arcs. Is it possible to cycle through all the entities and determine which entities have a common endpoint, and then create a chain from that?
Thx again!
O, because in addition to the parameters that can be set within mastercam, i also need set additional parameters of the toolpath, such as the angle of the pocket cuts relative to the x axis, overlap between successive cuts...
also, this step is necessary for extension into 3D applications..
Hi everyone, have a nice little question to ask...
I quite a newbie, but am (and must) create a chook that will create a pocket toolpath, given a certain set of closed chains in MasterCAM. What needs to happen is that the user will load a MC* file, and when he runs the chook, the chook will create a horizontally running toolpath.
I really have no idea how to start, so I'm just wondering if anyone has any ideas, or if anyone knows how the toolpath->pocket operations works (after user has selected chain(s)...
I've looked into the API, and have found the pock_chn struct and the chains_to_pock_bounds methods will prob be useful...and I know that things are stored as entities...but assuming that none of these entities are connected via chains, how would i proceed?
perhaps a little long winded, but thanks for any help!!
i certainly hope so!
oh, just another minor question...
in VB, when i create a group box, and i drop items into it, if i move the group box, the items also move with the box...this doesn't seem to be happening in vc++...is it supposed to? or am i doing something wrong?
Hihi,
I've posted this before, but it really never got resolved, and I had hoped that i wouldn't have to use the combo boxes, but now I'm finding that I do...
I've created a dialog box in VC++, and in it i have a combobox control with associated variable c_inDim
in the OnInitDialog() method of the dialog box, I have
c_inDim.AddString("mm");
c_inDim.AddString("inch");
...
but when I execute the dll from mastercam, nothing appears in the comboboxes
any idea why?
thx!
is there any way to get the source code for the chooks included with mastercam?
i'm trying to learn the api, but there's so much it's overwhelming...
thx
Under Mainmenu->toolpaths->Pocket
will allow you to create a pocket tool path...
what I need to be able to do is write a chook that will mimic this function and ouput the appropriate NC file
lets start with, given a certain closed shape, how do i read in the dimensions/shape into my chook?
thx!@
Hi,
I'm currently beginning a project to write a chook that will basically need to create a pocket contour, but with additional parameters such as diameter of drill, distance between consecutive cuts, and angle of cut.
just wondering if anyone can suggest any fuctions that could potentially be helpful, or how to get started
thanks
can anybody suggest any simple algorithms to convert an NC line for an arc in the format
GgXxYyIiJj
to an a_2d struct(chook) defined by start and end angle of the arc?
Thanks!
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.