The addin.def file is a simple text file containing name-value pairs that provide registration information about a JMP add-in. Here are the name-value pairs to include in the addin.def file:
name
Optional. The name that can be displayed in the JMP user interface wherever add-in names are displayed, instead of the unique ID. This name is displayed if no localized names are provided or when JMP is run under a language for which you did not provide a localized name. Named Add-In Name in Add-In Builder.
name_xx
Optional. Allows the user-friendly name to be localized for different languages, where xx is the two-letter ISO 639-1 code for the language. If you include localized names, you should still include a language-neutral name in case JMP is running under regional settings for which you do not have a localized name. Not available in Add-In Builder.
id
Required. The unique ID for your add-in. The string can contain up to 64 characters. The string must begin with a letter and contain only letters, numbers, periods, and underscores. Reverse-DNS names are recommended to increase the likelihood of uniqueness. Named Add-In ID in Add-In Builder.
home
Optional. The path to the add-in files. The Home Folder for the add-in is assumed to be the folder where addin.def is located. You need to include a setting for home only if the Home Folder is somewhere else (for example, a network shared folder). Not available in Add-In Builder.
home_win
Optional. The path to the add-in files to be used when JMP is running on Windows. Overrides the value specified for home on Windows, if any. Not available in Add-In Builder.
home_mac
Optional. The path to the add-in files to be used when JMP is running on the macOS. Overrides the value specified for home on macOS, if any. Not available in Add-In Builder.
autoLoad
Optional, Boolean. The default value is True (1). Determines whether this add-in is initially configured to load automatically during JMP start-up. Named Install after save in Add-In Builder.
host
Optional. Valid values are Win and Mac. Named Supported Host in Add-In Builder.
minJMPVersion
Optional. Valid values are integers corresponding to the JMP major version that is the minimum version that the add-in supports. Named Minimum JMP Version in Add-In Builder.
maxJMPVersion
Optional. Valid values are integers corresponding to the JMP major version that is the maximum version that the add-in supports. Use this setting only if there is a known incompatibility between your add-in and a specific version of JMP. You should provide a new version of the add-in for later versions of JMP. Not available in Add-In Builder.
id="com.mycompany.myaddin"
name="My Add-In’s Friendly Name"
name_fr="My Add-In’s French Name"
name_de="My Add-In’s German Name"
home="\\server\share\myjmpaddin"
Autoload=1
MinJMPVersion=9
A sample add-in named Simple Calculator.jmpaddin is located in one of the following folders:
• On Windows: C:/Program Files/SAS/JMP/15/Samples/Scripts
• On macOS: /Library/Application Support/JMP/15/Sample/Scripts
Note: On Windows, in JMP Pro, the “JMP” folder is named “JMPPro”.
To see what the add-in contains, change the extension to .zip and unzip it into a new folder. To see how it works, change the extension back to .jmpaddin and install.
The add-in contains the following files:
Provides the specification for JMP to register the add-in. It contains only these two lines:
id="com.jmp.sample.calculator"
name="Simple Calculator"
Provides the menu customization file that is created when you interactively create a custom menu. Your customizations are shown only to the current user; other users who log on to the computer and open JMP do not see your personal toolbars and menus. This example places the add-in menu item into the default Add-Ins menu.
A JSL script that creates a basic calculator.
The image used as the calculator’s icon.
To download more add-ins, visit https://community.jmp.com/t5/File-Exchange/ct-p/FileExchange.