Jump to: navigation, search

Custom Blocks

A custom block can be thought of as a pre-filled template for a block. Note that when creating a custom block, accessing system resources (include/jsp) across Projects is not supported.

To create a custom block:

  1. Add the block to use as the pre-filled template.
  2. Fill out the properties to be the basis of the template.
  3. Right-click the block to bring up a shortcut menu.
  4. From the shortcut menu, select Add as custom tool. Note this option is not available for the IPD blocks. The Custom Tooling dialog box opens.  A sample is shown below.
CustomTooling.gif
  1. Opposite Create in:, Leave Custom to place the block in the Custom category on the palette. Or click the down arrow and select another palette drawer.
  2. If you wish to upload an icon or graphic for the custom block, click Select to open the Custom Icon Library dialog box. Select an icon, and click OK. The selected icon appears in the dialog box.
  3. Click OK in the Custom Tooling dialog box. Composer adds the block to the palette in the selected category.

Note: Custom  Entry and Exit icons do not appear on the palette. It still shows the default Entry/Exit icons.

Using a Custom Block

Use the block as you would any others.  Fields defined as relevant in the Block Data Map are automatically populated in the Properties tab based on the state of the original block when you made the tooling.

  • Note: When you create a new block, you must add a mapping to define which fields should be template-aware.

Changing Existing Custom Blocks To change an existing custom block:

  1. Within the palette, right-click a custom block and select Customize… from the context menu. This opens the Customize Palette dialog box.
  2. Navigate to/select the block you want to change.
CustomizePal.gif
  1. You can:
  • Change the label.
  • Edit the description.
  • Delete the block entirely.  

Deleting a Custom Block

To delete a custom block:

  1. Within the palette, right-click a custom block and select Customize… from the context menu. This opens the Customize Palette dialog box shown above.
  2. Navigate to/select the block you want to delete.
  3. Click the Delete button at the top of the Customize Palette dialog box.
  4. Click OK.

Hiding the Custom Category

To hide the Custom category on the palette:

  1. In the Customize Palette dialog box (see above steps), select the Custom folder.
  2. Click the Hide checkbox. Later, if you need the Custom category back on the palette, select the Custom folder and un-click Hide.
  3. Click OK.

Import/Export of Custom Blocks

To import or export a custom block so that it can be shared across multiple users/Composer installations:

  1. Select the custom block in the palette.
  2. From the Diagram menu, select:
  • Import Custom Blocks… to open the Select Custom Tooling Definition dialog box. Browse to the location for the previously exported custom block file, which will have a *.ctooling extension, select the file, and click OK.
  • Export Custom Blocks... to open the Create Custom Tooling Definition dialog box. Name the file, keep the file type as custom tooling, and click OK.  The custom block is saved as file with a *.ctooling extension.

Feedback

Comment on this article:

blog comments powered by Disqus
This page was last modified on 6 April 2016, at 10:02.