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:

MKTech

Verified Members
  • Posts

    7
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

MKTech's Achievements

Newbie

Newbie (1/14)

  • Conversation Starter Rare
  • Week One Done
  • One Month Later
  • One Year In

Recent Badges

1

Reputation

  1. I have made a new tool library with different tool numbers. But since we have many 1000 old programs, they all need to be renumbered. I wanted to write a script that queries me all the tools what new number they have. Since many operations have the cutting data adjusted separately I don't call "op.AssignMillToolBySlot(slot);" but set the number on the tool and still separately on the operation. The whole thing works, except for facing and slot milling. If I call there "op.Commit(false);" the geometry is discarded, also with true the same. Why? Or how does it work differently? Can I also change the tool number without recalculating the operation? That would be much better. Thanks for all ideas Use Mastercam 2023 The actual code is attached Renumberator.csx
  2. Everytime i want to start my Application, the debugger says: System.IO.FileLoadException a procedure imported from ToolNetApi.dll could not be loaded I set the references to: ToolNetApi, NetHook3_0, ModelessDialogTabHandler, PresentationCore, System.Data.Entity, SimAccessManaged and the Standard references I also tried to run the Application in the folder, wheres the Mastercam.exe is located, but also not working
  3. In my NetHook I need to compare tools from operations (Mastercam.Database.Tool) with tools from the tool library (CNC.Tool.Interop.TlTool). e.g. I want to compare the name -> OperationTool.Name = TlTool.Name so far good, but if I want to compare the diameter? OperationTool.Diameter = TlTool.? Gaugediameter? Gaugediameter always returns 0 for me and if I want to compare the ToolType? OperationTool.ToolTypeID can be compared, but in TlTool ToolTypeID is only a GUID. So how can I convert a TlTool to a Tool to compare parameters, or what are the comparable parameters? Thanks in advance for any help PS: I use Mastercam 2022
  4. When I edit an operation in Mastercam, I can select a tool from the tool library under Tool by pressing Tool from Library. But then I want my app to appear, not the tool library. In this I want to configure, or select, a tool and calculate the cutting data based on the material. Afterwards I want to return this tool to Mastercam and add it to the operation tools. So I want to replace the "Tool from Library" dialog. Can this be done in VB.NET? And how? My tool library lists all the tools that are in stock at our company. Also I know all cutting data and parameters of the tool. But the cutting data depends on material etc. and therefore it makes no sense to create a tool for each variant in the Mastercam tool library.
  5. Oh thank you so much, yes that was exactly the problem. I was on the wrong track as I set that in the wrong place in Mastercam. To read the input all that is left is a simple My.Application.CommandLineArgs Thanks
  6. Yes I know how to select the program here, only the programming of the VB.NET program that I select here does not work. I selected here my .exe, but it still opened Cimco Edit How do I have to program the app? Or what do I have to pay attention to when programming the serialport. Like a specific handshake?
  7. I want to program a communication software like Cimco Edit, which changes some things on the posted file and copies it to the right place. This is all no problem, but when I select my app in the Mastercam configuration -> Communication it still opens Cimco Edit. How can I make Mastercam pass the path of my app? I have already tried with Serial Port and set the same settings that Cimco has I program on Visual Studio 2017 with VB.NET Thanks for your help

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