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:

keta

Verified Members
  • Posts

    20
  • Joined

  • Last visited

Posts posted by keta

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

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

     

     

    post-16402-0-95536200-1436535430_thumb.png

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

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

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

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

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