Working with Block Files

Block files (*.axb) represent blocks of re-usable code. Block files are saved in the Source folder, and can be referenced in the main Source Code (FIG. 98).

FIG. 98 Workspace tab - Block File

Adding an Existing Block File to a System

  1. Click to select (highlight) a System (in the Workspace tab of the Workspace Bar).
  2. Right-click on the Source folder to access the Source Code File Folder context menu, and select Add Existing Source File

(FIG. 99).

FIG. 99 Source Folder Context Menu

  1. In the Add Existing Source File dialog, select Block Files (.axb) from the Files of type drop-down menu at the bottom of the dialog (FIG. 100).

FIG. 100 Add Existing Source File dialog with Block Files (*.axb) Selected as Files of Type

  1. Locate and select the Block (.axb) file that you want to add to the selected System.
  2. Click Open to access the File Properties dialog, where you can view/edit general file information for the selected file(s) (FIG. 101).

FIG. 101 File Properties dialog

NOTE: If you select multiple f iles to add to the System, the program will prompt you to edit the f ile properties for each f ile before adding them.

  1. Click OK to add the file to the selected System.

The file should now appear in the Source folder under the selected System. Double-click to open the file in an Editor window (FIG. 102).

FIG. 102 Workspace tab - Block File added

Creating a New Block File (Outside of a System)

To create a new Block file (that is not associated with a System).

  1. Select New from the File menu to open the New dialog (FIG. 103).

FIG. 103 New dialog - Block File selected

  1. Select Block File and click OK to open the New Block File dialog (FIG. 104).

FIG. 104 New Block File dialog

  1. By default, the new file is named NewBlock.axb. Edit the file name and the target location for the file and click OK.
    • Note that you can enter a path for a non-existing folder in the text box and the program will create it for you
    • Click the Browse button to locate and select the target directory in the Browse For Folder dialog.
  2. Click OK to save changes and close the dialog.

A new (empty) Block file is opened in a new Editor window for editing.

results matching ""

    No results matching ""