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:

Ekke

Verified Members
  • Posts

    44
  • Joined

  • Last visited

Everything posted by Ekke

  1. Hi, I have a problem with the new SearchManager function: if I use only the Mastercam operation then it works fine, but if I use the add-in HSM from cimco to create operations then the SearchManager ignores all these operations and return only the one from Mastercam. What can I do? Thanks in advance, Silas
  2. Hi, I´m still working to transfer my program to nethook 2 from nethook 1... How do you get the tooltype (for example: drill) and the operationtype (for example: contour) as a string? Dim selectedOps() As Mastercam.Database.Operation = SearchManager.GetOperations(True) Dim op As Mastercam.Database.Operation For Each op In selectedOps ToolNo = op.OperationTool.Number.ToString Toolname = op.OperationTool.Name CurrentToolType = op.OperationTool.??????? Next op (Sorry for double post)
  3. Hi Martin, the rename function works perfekt, thanks for writing me a dll for it. Also the extra work for saving the setting.xml to a better place, I appreciate it. Silas
  4. Hi Martin, did you received the code and the sample, I have sent you?
  5. Hi, I´m still working to transfer my program to nethook 2 from nethook 1... How do you get the tooltype (for example: drill) and the operationtype (for example: contour) as a string? For Each op In selectedOps If op.Dirty = False Then tooltype = op.OperationTool operationtype = op.name End If Next op
  6. i must correct me, if you check in vb that Not flag_OP_Dirty it's the same like that Not flag_OP_Dirty = true
  7. Hi, another problem: how can I post selected operations? With this code nothing happend: Public Shared Function PostOp(ByVal ncFilePath As String, ByVal boEdit As Boolean) As Boolean Dim opInfos1 As Mastercam.Database.Operation Dim flag_OP_Selected As Boolean Dim flag_OP_Dirty As Boolean Dim OpList() As Mastercam.Database.Operation = SearchManager.GetOperations() Dim op As Mastercam.Database.Operation For Each op In OpList opInfos1 = op flag_OP_Selected = opInfos1.Selected flag_OP_Dirty = opInfos1.Dirty If (flag_OP_Selected And Not flag_OP_Dirty) Then PostOp = opInfos1.Post(ncFilePath, boEdit) End If Next op End Function
  8. Hi, After I renamed the nci name of selected operations all 2d geometry like point, boundary's are lost, only the surfaces not. Maybe I did something wrong in my code? http://www.youtube.com/watch?v=wOI9xtVxBig Public Shared Function RenameOperations(ByVal nci_Name As String) As Boolean Dim opInfos1 As Mastercam.Database.Operation Dim flag_OP_Selected As Boolean Dim flag_OP_Dirty As Boolean Dim intCount As Integer = 1 Dim nci_Verzeichniss As String = vbNullString Dim OpList() As Mastercam.Database.Operation = SearchManager.GetOperations() Dim op As Mastercam.Database.Operation For Each op In OpList opInfos1 = op flag_OP_Selected = opInfos1.Selected flag_OP_Dirty = opInfos1.Dirty If (flag_OP_Selected And Not flag_OP_Dirty) Then nci_Verzeichniss = System.IO.Path.GetDirectoryName(opInfos1.NCIName) opInfos1.NCIName = System.IO.Path.Combine(nci_Verzeichniss, nci_Name & "_" & intCount & ".nci") opInfos1.Commit() intCount += 1 End If Next op End Function
  9. :) That's it, now I can debug, Martin many thanks for your help, Silas
  10. I use VS 2010 express, I modified the file ".vbproj.user" to start an external program. If I click debugging then Mastercam starts automatically.
  11. After changing to 3.5 the nethook2 examples works. But stop points doesn´t work if I start debugging in vs2010, maybe I need the debug mastercam.exe?
  12. Hi Martin, I mean NETHook. The version of the .NET Framewore are 4.0.0. Yes I use the release version of mastercam.exe, is there a debug version available?
  13. Hi, I have trouble to run my chook with x5, I get an error "Unkown file type". What can I do? The chook was written in vb.net. I also tied the nethook 2 example for x4, but the same error appears. (I use know Visual Basic 2010) Silas
  14. Hi, we use the one from mastercam verify. The last version of hsm has also a verify and the possibility to save to stl.
  15. Now it works also with x3, thanks to Takashi source code (x3)
  16. i did a setupsheet with nethook for a while, it's also not finish but maybe you can use it. Takashi was so kind to write me a dll called MChook.dll with some missing thinks in nethook. Source Code example preview [ 10-20-2008, 06:45 AM: Message edited by: Ekke ]
  17. Hi, Will there be a nethook 3 for mcx? If yes, what new function you will add?
  18. nci min/max in .net, would be nice to have it, also the cycle time
  19. 8 minutes 42 seconds Dell 490 Xenon [email protected] 3 GB RAM
  20. I found now the problem, it was a switch for debug purpose in the postprozessor-pst file. Thanks
  21. If I use "false" then only one editor opens (see picture), and if I use "true" two editors opens first the one I normaly use (cimcoedit) then the one like above. So I like to post my operations without starting an editor. I hope it is now more clearly.

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