2.2.2. Configuring PARTsolutions interface menu and toolbar

The PARTsolutions interface menu and the interface toolbar are configured in the cross-CAD configuration file ifacecommon.cfg or the CAD-specific configuration file in the [UI] block.

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:

    Section based on 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 entire configuration is preconfigured in the configuration file ifacecommon.cfg.

    Use exactly the same keys in the CAD-specific configuration files (if<cadname>.cfg) so that the menu of several CAD systems used in parallel can be configured differently if necessary. Entries there overwrite the key in the general configuration file (ifacecommon.cfg).

  • Structure of the 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

    • 3Dfindit: 3Dfindit Integration

    • PARTdataManager: PARTdataManager

    • Insert model (3D) - Insert model from a library [Insert model from library] (MN_insert3d_DisplayText)

    • Insert model (2D) - Insert model from a library [Insert model from library]

    • Replace: Replace part(s) with another library part [Replace part with other part in library] (MN_replace3d_DisplayText)

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

    • New view - Create new view [Add new view]

  • Extras

    • Load PS3 file [Load PS3-File]: (MN_loadpsx_DisplayText)

    • Load PS2 file:

    • Load PS3 file [Execute script] (MN_execscript_DisplayText)

    • Release license [Release License] (MN_licenserelease_DisplayText)

    • Event handling: Call upPARTsolutions Settings for processing system events [PARTsolutions settings for event notifications] (MN_eventmgr_DisplayText)

    • Settings - PARTsolutions Call up the settings dialog [Launch PARTsolutions Settings window] (MN_settings_DisplayText)

  • Search

    • Perform geometric search [Execute Geometric Search] (MN_geosearch_DisplayText)

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

    • Activate or deactivate LIVEsearch [Toggle LIVEsearch] (MN_togglelivesearch_DisplayText)

  • Info

    • Licenses (MN_licenseshow_DisplayText)

    • System info / Support [Systeminfo / Support] (MN_info_DisplayText)

    • Help (MN_help_DisplayText)

    • Info CADENAS [About CADENAS] - PARTsolutions Call up interface information [Launch PARTsolutions interface information] (MN_about_DisplayText)

  • User library

    • Include [Insert]: Include your own part/assembly in the library [Import own part / assembly into library] (MN_nativecheckin_DisplayText)