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:

Takashi Sato from Ai Solutions.

Verified Members
  • Posts

    338
  • Joined

  • Last visited

Posts posted by Takashi Sato from Ai Solutions.

  1. Thanks!  Any chance of adding "access keys" to it for keystroke navigation?

    I don't know how to add keytips to all of the sub menus yet, but I tried this.

     

    C:\Program Files\mcam2017\chooks\xmenu.main

    insert '&' at the 1st line.

    x.png

    or download this file.

    http://ftp.ai-sols.net/pub/AI_CHooks_Setup/xmenu.main

    http://ftp.ai-sols.net/pub/AI_CHooks_Setup/xmenu2017.zip

     

     

    press alt/f10 key then press X key, you can access the top of X menu tab..

    altx.png

     

     

    And the Press Tab key, Down/left/right key and enter/space/escape key.....

    keys.png

     

    > Use the keyboard to work with Ribbon programs

    > https://support.office.com/en-gb/article/Use-the-keyboard-to-work-with-Ribbon-programs-4b9cbab0-89fe-4d21-a368-0ebfd1c996c6

     

  2. I also attached source code(c++).

    http://ai-sols.sytes.net/dev/vbo.zip

     

    quote:

    Do you have any recommendations for documentation for using VB

    I have files below only..

    c:mcamxhelpVBScript.htm

    c:mcamxvb*.vbs

    ftp://www.mastercam-cadcam.com/Mastercam_forum/VB_Scripts/

    http://www.google.com/search?q=VBScript

     

    and this is for nethook. (VB .net /C#)

    http://www.emastercam.com/cgi-bin/ultimate...c;f=13;t=000386

  3. Steven,

    I dont know which files you are seeing,

    and I believe they are config file or history file.

     

    quote:

    Also, how do you recommend that I place your "vbo.zip" files so that I can see them work?

    I am still a bit unfamiliar with VB with Mastercam.

    extract vbo.zip to chooks folder,

    then run mastercam and run vbscript from mastercam.

     

    vbo.dll is a activex dll, and it has a function named "DrawString".

    but you cant use it by alt+c, it does not have m_main chook function.

    code:

     

    Dim vbo

    Set vbo = CreateObject("VBObject")

    'DrawString(X, Y, Z, View, Height, Color, String)

    vbo.DrawString 0.0,0.0,0.0,1,10.0,10,"wwwww"

    vbo.DrawString 0.0,10.0,0.0,1,15.0,11,"wwwww"

    vbo.DrawString 0.0,25.0,0.0,1,30.0,12,"wwwww"

    Set vbo = Nothing


    So you need dlls which extends the ability of vbscript.

  4. I think you need NamedViews/named_view_manager.

     

    code:

     

     

    #define VIEWARRAY CArray <view_ent, view_ent> ///< Array of view_ents

     

    extern DllImpExp VIEWARRAY NamedViews; ///< Current array of named views

    extern DllImpExp CArray <view_icon, view_icon> NamedViewIcons; ///< Current array of named view icons

    extern DllImpExp MC_BOOL SetOriginOnSaveNewViewDlg; ///< Specifies whether to set the cplane or tplane origin when this new view is selected for use as a cplane or tplane

     

     

    /**

    *

    * @par Purpose:

    * function to add/get/delete/edit named views in the current db

    *

    * @param[in,out] vwp pointer to named view entity

    * @param[in] mode VWMGR_ADD, VWMGR_RENAME, etc.

    * @param[in] new_name new view name (for VWMGR_RENAME only) or "" (null string)

    * @param[out] succf TRUE = view manager successful

    *

    */

    DllImpExp void named_view_manager (

    view_ent *vwp,

    short mode,

    char *new_name,

    MC_BOOL *succf);


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