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:

Chris_G

Verified Members
  • Posts

    7
  • Joined

  • Last visited

Recent Profile Visitors

297 profile views

Chris_G's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Just wanted to share what was discovered to be the solution to my questions defined above: Using the function postOps (in Batch_CH.h), and NOT the nci_manager, ended up fixing the problems I was having when outputting NCI files using a CHook.
  2. Hi Roger We are using Mastercam X7 - MU2, and only need to create the NCI file. The ability to process multiple operations was actually going to be my next question When creating NCI files in the operations manager without CHooks, it's possible to create a single NCI file that contains a bunch of different operations - assuming all selected operations were given the same NC file name ahead of time. It would be great if the SDK was able to do the exact same thing. Right now the only 2 relevant modes I see for the nic_manager() function are NCIMGR_POST_ONE and NICMGR_POST_ALL, and neither one seems able to combine operations into the same NCI file if the operation names are the same (operation->cmn.nci_name). Instead it will just keep overwriting the NCI file instead of appending to it. I will definately put together some sample files along with a simplified version of my Chook project (VS2010 SP1) and send that to you shortly. Thanks in advance for taking a look at this!
  3. I am trying to use a Chook to create a .NCI file for an existing operation in the Operations Manager. I am currently using the nci_manager function (defined in AssocHok_CH.h) with mode NCIMGR_POST_ONE. This is successfully creating a .NCI file for the operation, however the file is NOT identical to the .NCI file that is generated if I were to manually post the selected operation using the UI. The main difference is the CHook version is not using GCode 1000 (null tool change) between seperate passes in the toolpath. It is instead using GCode 1002, and reposting the same tool definition (GCode 20001 - 20009) over and over again for every new pass. I am trying to figure out how to get the CHook version to match the .NCI file that is produced manually. The only hint I found on how to use mode NCIMGR_POST_ONE is the comment: //create ascii nci for 1 operation - call post per cfg settings. I then ran the function GetCurrentCfgFilename() to find where the cfg file was located, and made sure that the Mill Post Processor file (.pst) defined there matched the active post Mastercam was using when manually outputting the .NCI file. Still had the same tooling GCode mismatch. Finally, I decided to remove all .pst files from my C-Drive to see what happens. I could no longer create the .NCI file using the Operations Manager because the active post no longer existed, BUT I could still run my CHook version and post the selected operation just like before. That seems to indicate that the CHook version was not actually using the post processor defined in the cfg file (because I removed it from my C-Drive), but I have no idea where to take it from here. Any advice on this would help out a lot. Thanks!
  4. I'm searching for a C-Hook command that lets me edit the Stock Setup under the Properties tab for an existing Lathe Machine Group. The only thing I want to change is in the Machine Component Manager - Stock, where I need to automatically assign a chain of entities to the "Select Geometry" option.
  5. Thanks Roger. This does move the insert arrow to the specified Machine Group.
  6. Good call. Yes I do have multiple Machine Groups and upon further testing, I only experience problems when the insert arrow is located in a different Machine Group than the operation that the C-Hook is editing. These are lathe operations where the stock is different for each Machine Group, so I need to somehow make sure operations stay associated with the correct stock model.
  7. Hi! I am searching for a way to move the Operations Manager's red insert arrow with a C-Hook. I am editing / regenerating pre-existing operations in the Operations Manager, but need to position the insert arrow just ahead of the operation for these changes to work.

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