2.2.2. Configuring PARTsolutions interface menu and toolbar

The configuration of the PARTsolutions interface menu and the interface toolbar occurs in the CAD encompassing configuration file ifacecommon.cfg or the CAD specific configuration file respectively in the block [UI].

Example Autodesk Inventor

Example Autodesk Inventor

Example SolidWorks

Example SolidWorks

  • The following entries can be used for a configuration:

    [Note]Note

    Keys according to the pattern "MN_XYZ_Number" do not exist anymore. As of V12 numbers have been replaced by meaningful names. In particular, please pay attention on this when updating from V11 to V12.

    • MN_insert3d_DisplayText (display text)

    • MN_insert3d_HelpText (help text)

    • MN_insert3d_SmallIcon (small icon)

    • MN_insert3d_LargeIcon (large icon)

    • MN_insert3d_XLargeIcon (very large icon)

    • MN_insert3d_Callback (concrete call of menu items)

    • MN_insert3d_Environment (declaration of the context in which the menu item should be displayed)

      • menu: The command is visible in the menu.

      • part: The command is visible with single parts.

      • app (application): The command is visible even without opened parts, assemblies or drawings.

      • asm (assembly): The command is visible with assemblies.

      • draw (drawing): The command is visible with drawings.

      • toolbar: The command is visible in the toolbar.

    Example:

    Excerpt from Insert model:

    [UI]
    MN_insert3d_DisplayText=Einfügen Modell
    MN_insert3d_HelpText=Modell aus einer Bibliothek einfügen
    MN_insert3d_SmallIcon=:/cadresource/icons/insert_model_3d_CAD_16x16.png
    MN_insert3d_LargeIcon=:/cadresource/icons/insert_model_3d_CAD_24x24.png
    MN_insert3d_XLargeIcon=:/cadresource/icons/insert_model_3d_CAD_32x32.png
    MN_insert3d_Callback=?_CALLBACK_COMMAND("default_insert")
    MN_insert3d_Environment=menu,part,app,asm,draw,toolbar

  • In order for a menu item or toolbar button to show up in the CAD system in the PARTsolutions menu/toolbar, at least the following three entries must be present:

    • DisplayText

    • Environment

    • Callback

  • By default, the whole configuration is preconfigured in the configuration file ifacecommon.cfg.

    So that, if desired, the menu of several parallel used CAD systems can be configured differently, use exactly the same key in the CAD-specific configuration files (if<cadname>.cfg). Entries made there will overwrite the corresponding key in the common configuration file (ifacecommon.cfg).

  • Menu structure

    The structure is built by the entry "PARENT".

    MN_execscript_PARENT=Extras

Functions and icons

(Possibly not all functions are available or needed for your configuration)

  • PARTsolutions

    • 3DFind.it: 3DFind.it Integration

    • PARTdataManager: PARTdataManager

    • Insert model (3D) - Insert model from library (MN_insert3d_DisplayText)

    • Insert model (2D) - Insert model from library

    • Replace: Replace part with other part in library (MN_replace3d_DisplayText)

    • Insert repeatedly: Repeatedly insert 2D / 3D part or assembly from library (MN_history_DisplayText)

    • New view - Add new view

  • Extras

    • Load PS3-File: (MN_loadpsx_DisplayText)

    • Load PS2 file:

    • Load PS3 File (MN_execscript_DisplayText)

    • Release License (MN_licenserelease_DisplayText)

    • Event handling: PARTsolutions settings for event notifications (MN_eventmgr_DisplayText)

    • Settings - Launch PARTsolutions Settings window (MN_settings_DisplayText)

  • Search

    • Execute Geometric Search (MN_geosearch_DisplayText)

    • Execute Partial Search - Execute a partial search with the current part or assembly (MN_partialsearch_DisplayText)

    • Toggle LIVEsearch (MN_togglelivesearch_DisplayText)

  • Info

    • Licenses (MN_licenseshow_DisplayText)

    • Systeminfo / Support (MN_info_DisplayText)

    • Help (MN_help_DisplayText)

    • About CADENAS - Launch PARTsolutions interface information (MN_about_DisplayText)

  • User library

    • Insert: Import own part / assembly into library (MN_nativecheckin_DisplayText)