keta
-
Posts
20 -
Joined
-
Last visited
Content Type
Profiles
Forums
Downloads
Store
eMastercam Wiki
Blogs
Gallery
Events
Posts posted by keta
-
-
Currently I work with the C-Hook and create new turning tools (TlToolLathe, TlToolLatheCustom).
Can turning (TlToolLathe, TlToolLatheCustom) tools be created with the NET hook?
Many thanks for your help -
Thanks a lot Roger,
So I have to move away from tp_tool to the new tool classes like TlToolCenterDrill, ...
On the old way I have used tool_manager with options TLMGR_DIALOG, TLMGR_MENU to edit the passed tool or display tool manager list.
But now on the new way I call TpMainToolMgr.GetMainMillToolList ().AddMillAssembly (spAssembly) to add a new tool "on the fly" to current Machine Group.
How is it possible to edit the passed tool or display the tool list after I have added one if I use the new way (AddMillAssembly()).
Thanks for your help.
-
Hi,
we use X8 with C-Hook Addin to create new tools (drill, mill) into mastercam.
I see in X8 version, that there is on the mask "Define Tool Geometry" new tool parameters in the Tip / corner treatment aera like "Corner type" but I do not found the new paramter in the tp_tool structure.
In the Corner type combo box we can select None, Champfer, Corner Radius and Full Radius.
How is it possible to fill in the Corner type field by tp_tool structure?
Thanks for your help.
-
Thanks for your help. Currently we develop for X8. If you have an example it would be very helpful.
-
How can we create turning (lathe) tools with NET-Hook (v3.0) . Currently only drilling and milling tool classes (like DrillTool, EndMillFlatTool, ...) are defined. Is C-Hook still the right choice to create lathe tools even if we start new Add-On project.
Thanks for your help
-
Hi,
first question:
after I add the last line (TpMainToolMgr.GetMainLatheToolList( ).Add(tl)
from my example below, then mastercam does not load my c-hook dll. After I remove
the line, all works fine. Have you a idea?
TlToolLathe tl;
tl.SetDescription("test tool");
...
TpMainToolMgr.GetMainLatheToolList( ).Add(tl);
Second question:
If I add new lathe tools by ltool_manager() call (see below) and after I try to read
the tools (TpMainToolMgr.GetMainLatheToolList( ).ToolByID(TTLIDs.at(nCnt), the tools are
always empty.
Add tool:
ltool_manager(&tl, TLMGR_ADD, &eptr, &succf);
Try to read tools:
TlIDList& TTLIDs = TpMainToolMgr.GetMainLatheToolList( ).GetToolIDs( );
for(unsigned int nCnt=0 ; nCnt<TTLIDs.size() ; ++nCnt) {
TlToolLathe& TLLathe = TpMainToolMgr.GetMainLatheToolList( ).ToolByID(TTLIDs.at(nCnt));
}
Version is SDK X5 (file date 18.10.2010)
-
I use a C-Hook DLL for transfer tool data into mastercam tool manager.
For mill and drill tools all works fine. If I put lathe tool I have a problem about the insert and holder structure in LATHETOOL.
Can you explain me the following attributes:
sHolder.szShape;
sHolder.szInsShape[MAX_INSERTS]
sHolder.nShape
For example szInsShape=TRCDV
Can you please explain me these value ?
How is the relation between sInsert.szShape and
Holder sHolder.szInsShape and sHolder.szShape ?
How can I calculate the right sHolder.nShape ?
thanks.
-
MasterCAM X3/X4
We have created DXF, STEP and STL graphics file for all custom tools like (Drills, Mills ...).
How is it possible to use these tool graphics file instead the standard MCX files in MasterCAM.
Have you an Idee ?
Do we have to convert all to MCX format ?
thanks.
-
how is it possible to convert dxf tool (mill/drill/lathe) graphics file to mcx format.
Usually we have a outline dxf file that we want to convert to mcx file.
Do we need to write a c-hook ?
Can we start mastercam with command line parameter to do the job ?
thanks.
-
thanks, other question:
For turning tool we use custom types (tl.fCustom=TRUE). Now we do not know the fields they are necessary (mandatory) to filled out in these mode (structure INSERT, LDRILLTOOL, GRVINSERT, THDINSERT, GTBINSERT).
-
thanks.
Is it normal to set all tool values like diam, radius, length... into structure LATHETOOL as inches unit ?
-
Hi,
along time ago at january you give me a chook example to add a new tool with tool_manager() see below.
tool_manager(&tl, TLMGR_ADD, &eptr, &succf);
Now I would like to add also lathe tools, I can do that with function ltool_manager(). But I do not know how to setup the LATHETOOL structure. Is there a example for that also for custom tools (tl.fCustom=TRUE) like TAPS, DRILLS ...
-
thanks a lot,
Does NetHook API also support lathe tools ?
How is it possible to set feed and speeds to
a tool if I want import a new tool object ?
-
thanks for your last message.
Now a other question:
Is it possible to use NET-Hook also for import
tool data like C-Hook function
tool_manager(&tl, TLMGR_ADD, &eptr, &succf)
-
yes, all right.
Thanks a lot for your help.
In your example, you use a lot of function
like OMgetActiveMachineGroup(), PromptForToolFile()...
Where can I get a description about these
functions ?
Is the tool after tool_manager() call ready for
operations in MC ?
thanks.
-
Roger Martin,
The first one, Position 1 is what I will do.
thanks
-
yes, thanks a lot, very helpfull.
I found these function declaration in AssocHok_CH.h file (see below).
DllImpExp void tool_manager (
tp_tool *tl,
short mode,
DB_LIST_ENT_PTR *eptr,
MC_BOOL *succf);
Is there a documentation about these function
or an example.
Sorry, I'm very new in CHooks programming.
Is it possible to make a new MFC Dialog with a
search list of tools in a CHook application ?
After the user choose a tool, I just put the tool values in the tp_tool structure an call tool_manager. Is that all, was I have to do ?
-
roger,
we are planning to develop an interface between MasterCAM and our TDM Tool Database System.
To go on we need more informations about possibilities of tool data exchange from our tool database into MasterCAM. How is it possible to put a tool from outside into MasterCAM ?
thanks
-
Can you give us a overview of using C-Hook SDK or a example for transfer tool data like
Tooltype, Diameter, ZLength, ... to MasterCAM.
Is it possible to transfer additional tool technology data ?
thanks.
create late tools by.NET Hook
in Mastercam C-Hook, NET-Hook and VBScript Development
Posted
Currently we work with the C-Hook and create new turning tools (TlToolLathe, TlToolLatheCustom).
All works fine.
For the future, we check to migrate the c-hook to .net-hook. For all tool types likes mill, hole, ... exists a .net class into .net-hook.
But I do not found the lathe tools like TlToolLathe, TlToolLatheCustom in .net-hook.
How can I create new Lathe tools by .NET-Hook?