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:

C-Hook, define a new tool with Tip / corner treatment


Recommended Posts

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

Link to comment
Share on other sites

As you've noticed, this property is not in the  tp_tool structure.

You need to use the new-style Tool functionality to get/set any of the "new" properties.

 

we use X8 with C-Hook Addin to create new tools (drill, mill) into mastercam.

 

So you're create tools "on the fly" and adding them to the tool list of the current Machine Group?

Link to comment
Share on other sites
  • 2 weeks later...

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.

Link to comment
Share on other sites

Did you try tool_manager?

 

tp_tool tool = *toolPtr; // "Convert" from a new style tool (TlToolMillPtr)  data to old-style.
tool_manager(&tool, mode, &d_ptr, &succf);
 
 
And if that's not what you want, try this...
#include "TlToolFunctions_CH.h"
CreateNewToolWizard (FALSE, toolPtr);  // toolPtr here is a TlToolMillPtr
Edited by Roger Martin from CNC Software
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.

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