Exporting and Registering Components

Once you have created and customized a component (either a Scriptable Object or a Mathsoft Control), you can export it for reuse in another worksheet, saving both your script and any properties you may have set. An exported control can be inserted by choosing Insert > Component.

To export a scripted component:

  1. Right-click on the control you wish to export, and choose Export as Component.
  2. In the resulting dialog, specify a name and a location for your control.
  3. Click "Next."
  4. If you wish to protect the script so that it cannot be edited when inserted into a worksheet, specify and confirm a password.
  5. Click "Finish."

MCM files

The component is exported as an MCM file to the location you set and is automatically registered, so it shows up in the Insert Component dialog. MCM files can also be shared with other users with or without a Mathcad worksheet. To import an MCM file you receive from another user, double-click on the file to register it. We recommend that you save your MCM files to a common location, such as the mcm directory in your Mathcad installation. You will find that all the Mathsoft Controls are already saved there.

To remove an MCM file from your system:

  1. Open the Start menu in Windows, and click Run.
  2. Click the Browse button. Navigate to your Mathcad program directory, and select the file mcmreg.exe. Click "OK."
  3. In the Run dialog, add the following command-line arguments:

    /u mcm\control.mcm

    where control.mcm is the MCM file you want to delete; in this example, it is located in the mcm directory of your Mathcad installation. The "/u" removes information on the MCM file from the Windows Registry.

  4. Once you have unregistered the component, it will no longer appear in the Component Wizard and you can delete the MCM file from your system.