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:

Chook - How to Move solid To origin?


Recommended Posts

Chook - How to Move solid To origin?

If the solid not at the origin, want to move to the origin,?

I found the translate_silent function, but is not work.

function method

translate_silent(&foundSolid,false,0, point1, point2, 1, 1, &succf,true);

 

thanks.

vs2019 + mastercam 2022

 

Link to comment
Share on other sites
7 hours ago, Lee1 said:

Chook - How to Move solid To origin?

If the solid not at the origin, want to move to the origin,?

I found the translate_silent function, but is not work.

function method

translate_silent(&foundSolid,false,0, point1, point2, 1, 1, &succf,true);

 

thanks.

vs2019 + mastercam 2022

 

Try highlighting it and passing a null pointer as the first parameter

Link to comment
Share on other sites
  • 2 weeks later...
32 minutes ago, gcode said:

Dumb question

Why do you need a CHook?

We've have the Translate to Origin command which id dead simple to use and works perfectly.

Translate silent is just moving the part around, not necessarily to origin, this is just one step in a process of a chook with many steps, if I were to move to origin I might be moving a part from another plane or position, doing some operations then sending it back where it came from.

 

Some of the simplest chooks I made get the box of a part then center it in xy or something

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