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:

How to sort operations in X?


Recommended Posts

Anybody know how to reorder operations in X.

 

Back in 9 I'd just call list_op_reorder but this function has disappeared.

 

I found reorder_operations in the docs but when I feed it a list of op idns in the order I want nothing happens.

 

Bryan smile.gif

Link to comment
Share on other sites

I think reorder_operations might be working, sort of. Last night, I ran the function, and then manually saved and reopened the file. The ops were in the new order. Mastercam doesn't seem to be updating the operation manager. Anyone know the function to force update/refresh/regen the ops manager display? Or am I supposed to set some variable so that it refreshes when the function is called?

 

Thanks for any help.

 

Bryan smile.gif

Link to comment
Share on other sites

MasterShake,

 

Does OMrefreshOpManTree work for you? One of the MC guys had me try it last week and it only works every other time my chook is called. OMrefreshOpManTree (supposedly) only works when it sees a change in the operation list and for some reason reorder_operations doesn't mark the list as changed until my chook exits. So OMrefreshOpManTree fails. When the chook is run the 2nd time, the list is marked as changed (from the previous run), and it works.

 

They seems to be doing much better with the MCX SDK headers and documentation than they did with 9. So here's hoping stuff like this is added to the next release.

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