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:

Zaffin_D

Verified Members
  • Posts

    374
  • Joined

  • Days Won

    1

Everything posted by Zaffin_D

  1. I took a quick look at the .NET API and I don't see a way to create a Manual Entry toolpath.
  2. Good news! No C++ was used in the creation of this hook, only C#. I had a bit more time to work on this, so I added a combo box so you can select an elliptical pattern type.
  3. Hi Carbonwerkes, I spent a bit more time on this tonight and I think it will do what you want. You can grab the source from my GitHub.
  4. I actually updated the repo to do just that. It now has a G1 button that will change the NCI file name an post the selected configuration. I still have some cleanup to do, but it is working.
  5. I'm not a programmer, but I'm happy to provide an example. In regards to the ghosting, you are correct; It would be better to select and post the operations rather than ghost them.
  6. This is not something I would expect migration to handle. Looks like that string select table needs to be expanded, parameter 12628 includes; 15 = Project 16 = Equal Scallop 17 = Blend
  7. That makes perfect sense, thanks. For fun, I created a rudimentary Net-Hook that uses a flag in the operation comment to track different configurations. It's pretty simple, you add operations to a configuration number through the 'Add' section of the dialog. Any operations that don't have a configuration added to them are always posted. Once you have all the operations added, you select a configuration number from the 'Set' section of the dialog. Hit the green check and all the ops not matching the selected configuration number will be ghosted. I've tested it very minimally, but you can grab the source on my GitHub.
  8. You do not need to go back that far, X9's Update Post C-Hook can update posts from V4.
  9. If I understand correctly you want to select a revision and have it post all the operations to make the selected revision?
  10. Absolutely! Both Bitbucket and Gitlab offer free private repositories, so there's no reason not to use source control.
  11. I agree to a point. It can only be so wrong if it works right? But if you don't understand some MP concepts you can really muck things up. Implied arrays are a big one, because adding a variable to the post between variable initializations (or in some cases format assignments) breaks the array. Then there's the pop and push functions, where depending on the mode, the return value is written to an implied array.
  12. The post contains two languages in Matercam 2018 and later, MP and XML. MP is a language created by CNC Software, and handles the translation from the NCI to your NC file. If you want to learn more about MP contact your reseller, they can provide you with the documentation. The XML is used to store the post text, and shouldn't be edited in the post. The control definition will write the XML for you. Jeff
  13. Why not just calculate the values in the post?
  14. ttblend$ seems like it was built for what you are trying to do. It would allow you to stage tool 2 at the last tool change while your last operation was cutting. It's boolean, so using it is pretty simple. if ttblend$, "T2"
  15. Try changing you default printer to Microsoft XPS Document Writer.
  16. So if I have this right, the current radius = (previous radius * percentage of change) + starting radius?
  17. Draw your two outer splines, then create a lofted surface between them. With that done, create a curve flowline; that should give you what your after.
  18. Same link as above, under the NET-Hook Documentation section.
  19. Were you able to access the example files? Among the example files is the API Reference for NETHook V3 that's very helpful. At what point are you banging your bare toes against the curb? Did you create a solution and get the hook to run? Is it that you can't determine how to do something? Have you contacted your reseller?
  20. This problem interested me and I had some time tonight, so I made a NET-Hook that should create the pattern you want. How do you want to define the difference between the arcs? Right now I have it working off a percentage; if you enter 110 in the radius change textbox, each circle will be 10% larger than the last. If you enter 90, each circle will be 10% smaller than the last.
  21. This sounds like something that a NET-Hook could do. I'm unaware of anything out of the box that could do this.
  22. Did you click the link? That should have asked you to login, then sent you to a page to select the version of Mastercam you'd like examples for. The example NET-Hooks will be much more helpful than anything I can provide, but below is an example NET-hook that updates all of the selected contour operations' cutter comp parameters. public override MCamReturn Run(int param) { var contourOperations = SearchManager.GetOperations(OperationType.Contour); if (contourOperations.Any()) { var compensationParameters = new CutterCompParams { ToTip = true, Optimize = true, RollCorners = CutterCompRoll.CutterCompRollSharp, Direction = CutterCompDir.CutterCompLeft, Type = CutterCompType.CutterCompComputer }; foreach (var operation in contourOperations) { if (operation.Selected) { var contourOperation = operation as ContourOperation; contourOperation.CutterComp = compensationParameters; contourOperation.Commit(); contourOperation.Regenerate(); } } return MCamReturn.NoErrors; } else { DialogManager.Error("No contour operations found.", "No Contour Operations"); return MCamReturn.ErrorOccurred; } }
  23. There are several NET-Hook examples on Mastercam's website. Have you download them?

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