Saving Updated Files to a .machine File

Your .machine file contains a number of supporting files that are serialized inside it. The Machine Explorer in Code Expert displays the individual files. Your ability to edit or replace each file depends on your license level. Files that you are not allowed to edit or replace are grayed out. In this picture, the two component libraries are allowed to be edited.

Component libraries with black file text.

The best practice is to open the individual file by double-clicking it in Code Expert. Mastercam opens a new session with just the selected file loaded, so that it does not interfere with your part. When you save the file in this way—for example, a component library—Mastercam automatically saves it directly to the .machine file. In this case, you must also save the .machine file, otherwise your changes to the component library will be lost.

After making your changes, follow these steps to ensure that they are properly saved along with the .machine file:

  1. Click the Save button in the Mill-Turn Component Library dialog box to save the component library.

    The component library Save button.

    In Code Expert, Mastercam marks the component library "dirty" in your .machine file with an asterisk "*" next to the file name.

    A component library marked "dirty" with an asterisk.

  2. Close the Mill-Turn Component Library dialog box.
  3. Close the Mastercam session in which it was running.
  4. In Code Expert, click on the Machine Explorer panel to bring it into focus.
  5. Press [Ctrl+S] to save the .machine file. The asterisk next to the file name disappears.

You can also add files to the .machine file by dragging-and-dropping them from Windows File Explorer. This is a useful technique when the .machine file does not already have a file of that type or when you want to replace a file with one that has a different name. This technique is used most often by machine developers. Follow these steps:

  1. Open the .machine file in Code Expert.
  2. Open a Windows Explorer window and navigate to the folder that contains the desired file.
  3. Drag the file to the Code Expert window and drop it on the proper place in the tree. The cursor will change to a + sign when it is in the proper location.

    A file that is added to the ".machine" file from Windows Explorer.

  4. Save the .machine file.

Learn more