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:

Mick from CNC Software Inc.

CNC Software
  • Posts

    1,012
  • Joined

  • Last visited

Posts posted by Mick from CNC Software Inc.

  1. Eric,

     

    The bool conventional maps to a checkbox on the UI. The overrides are values set from the UI and whether the imported operations have depth or we are using the depth of the current drawing. You can set these to hard coded values while testing your code.

     

    Mick

     

     

    Mick,

     

    I'm trying to use this snippet to reverse toolpaths after mirroring geometry. I'm missing some basic stuff though:

     

    • How is the boolean(?) <conventional> assigned? (line 801 in the screenshot)
    • How are the classes(?) <definition> and <overrides> initiated? (lines 814, 817)

     

    I will be happy to do some homework on this, but a little nudge in the right direction could sure help.

    Thanks.

  2. I can not get it to work.in X9. Run user application view fit.dll - result = invalid user application.

     

    Thanks anyway

     

    Did you unzip to a temp folder then copy to the chooks folder? If not the files will become blocked and wont run. Copy them out to a temp folder and right click each file and make sure they are unblocked, then copy them back.

  3. Make sure that when you extract the files you do so in a temp folder before copying to the Mastercam CHooks folder because the files will be blocked and will not function.

     

    Having said that I was able to created a new toolbar and add the functions as expected. Please see the attached image.

     

    view_fit_zpsktxb4hcx.png

     

     

     

     

     

     

     

     

     

     

     

    This is the best add on to mastercam and I have been using it from the mastercam x version.

     

    I need help getting the add on to work for version X9. 

     

    Thank you.

  4. A quick and easy way is to filter out what objects (textbox, labels) to display based upon the string name contained in the tool description field. While this might not be the most robust method it is certainly viable.

     

     

    From within the subreport add the detail format event from the object drop down and then add a little C# code. 

     

    Simple test for the word "FACE MILL" (case sensitive)  returns true or false, based upon the result hide or show the controls.

     

    faceMill_zps96pwbtow.png

     

     

     

    The result:

     

    faceMill_report_zpscftf6jyl.png

     

     

     

     

     

  5. I got word from the developer that this functionality is currently under investigation due to the differences in graphics interaction between Mastercam and Mastercam for SolidWorks. I believe that there is a SolidWorks function under View:screen capture but I am not entirely sure if that is at all helpful.

  6. Are you on a 4k monitor by chance? You should be able to see it as shown below.

     

    setupsheet_zpsnwes947q.png

     

    Capture Icon missing:

     

    The Camera icon, which I have seen in other posts, in the lower left corner of the Setup Sheet popup is missing in my window.

     

    I would like to use the Capture feature; is there a setting I'm missing?

     

    Thanks! 

  7. David,

     

    What version of Mastercam?

     

     

    I was trying to create a point entity (PointGeometry Object) but i encounter an error in IDE. Object instanciation is correct but i can't commit it to database.

            Dim pointPerpGeo As New PointGeometry(New Point3D(pointPerp.x, pointPerp.y, pointPerp.z))
    
            pointPerpGeo.Commit()
    

    Here is the error message from Visual Studio:

    'Commit' has a return type that is not supported or parameter types that are not supported.

     

    Any idea?

  8. Attached is an example NET-Hook project that shows how to rename tool path groups and nci name.

     

    Basically, run the NET-Hook, use the current drawing or prompt for one if there is none, prompt for a name, rename all tool path groups with the name and set the nci for each operation using the same name. 

     

    Hope-fully this will help. If you are interested in writing your own NET-Hooks go to mastercam.com 3rd Party Developers section and down load the appropriate getting stated guide.

     

    Source attached and NET-Hook attached.

     

    NOTE 1: Extract NET-Hook to a temp folder before copying to Mastercam or it will be blocked.

     

    NOTE 2: Not all operation types are support in the .NET API

     

     

    Run NET-Hook - RenameToolGroups.dll

    nethook_zpsx882sfca.png

     

    Select Drawing

    drawing_zpseski3fvt.png

     

     

    Name prompt

    FilenamePrompt_zpsudtel7mj.png

     

    Result

    Result_zpsdbyscugy.png

     

    Post

    NC_zpso4kmqh4b.png

     

     

    Code - Main Entry Point

    run_zpsruyrumuf.png

     

    Set Name

    SetName_zps9xyanfdo.png

     

    Check drawing

    getdrawing_zpsvjdww5jz.png

     

    Get Groups

    getgroups_zps1zec2aui.png

    Source_RenameToolGroups.zip

    NET-Hook.zip

    • Like 1
  9. BenK,

     

    We use Beyond Compare in house, to ignore block numbers just add a regular expression to filter them out and set ignore minor differences if you want them completely hidden.

     

     

    bc4_zpswrozmdjv.png

     

     

    That's what I use as well. Its a great compare tool but it still needs a few things in my opinion. I'm still trying to figure out how to have it ignore block numbers. 

     

     

     

     

    I agree that Cimco could use a little work on the compare function. It has trouble when you get a lot of differences and basically gives up and marks everything as different. I still use it for the simple compares but when it gets more complex I move to Beyond compare. With that said I could understand if this wasn't their focus and it wouldn't bother me one bit if they didn't touch it. When I run across some specific issues I will send them to you. 

  10. You did copy both the DLL and FT to the chooks folder and edit your script to match the application name and function name? It should work.

     

    Anyway, if you are looking into VB.NET NET-Hooks grab the free Visual Studio Community Edition and then the Intro doc and examples off Mastercam.

     

     

    No Go - no error just nada. Level manager still does not show the levels and if I move geometry to a level it does not move either.

     

    Thanks anyway Mick.

    I think I'm going to force myself to move to the .net stuff. Too bad as the VBA is a real quick way for our shop to have a lot of little things automated.

  11. The VBScript API is no longer in active development as we encourage users to move to NET-Hooks, typically VB.NET as the syntax is very similiar to VBScript. Having said that there is a bug with the Levels Manager where it does not receive update notification when changes are made via the VBScript API even though your level names have actually been set they are just not visible.

     

    I did create a simple VB.NET NET-Hook that you can call from your script to update the display, I have attached the release NET-Hook, NET-Hook source and a screen shot of the script I used to test.

     

    vbs_zpshy7oi5db.png

     

     

    Unzip the NET-Hook and FT file to a temp folder away from your Program Files folder, right click each file to make sure they are not blocked, then copy them both to your Mastercam chooks folder. Update you script as shown above to call into the NET-Hook and run the Level Manager refresh method.

     

    Any issues just let me know.

     

     

     

    EDIT:

     

    The way the script knows what to call is set in the NET-Hooks FT file, the Application (needs to be unique), in this case "__LevelManagerRefresh__" and the function entry point to call (set to HIDDEN so that it does not show in customize) "RefreshLevelManager"

     

    vbs2_zpsj5rxuunl.png

    LevelManagerRefeshNETHook.zip

    LevelManagerRefreshSource.zip

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