Option 2.1. Create a new Class Object

CIMPLICITY provides several methods to open a New Object dialog box.

  1. Select  Project>Objects in the Workbench left pane.

  2. Do one of the following.

A

Click File>New>Object  on the Workbench menu bar.

B

Click the New Object button on the Workbench toolbar.

C

In the Workbench left pane:

 

Either

Or

 

Double click Object.

  1. Right-click Object.

  2. Select New on the Popup menu.

D

  1. In the Workbench right pane.

  1. Right-click any object.

  2. Select New on the Popup menu.

E

Press Ctrl+N on the keyboard.

A New Object dialog box opens when you use any method.

  1. Fill in the fields as follows.

Field

Description

Object ID

A unique name for the new object.

The Object ID:

Can contain alphanumeric characters and underscores.

Must begin with an alphabetic character

Has a maximum length that  includes the following three components.

  1. Object name.

  2. . (separator).

  3. Data item name.

The three components can total 32 characters. As a result,  the Object ID length can only be as long as:

32 characters - the longest data item attached to the object - 1 (separator).

Note: The 32 characters will become  point names, when the object is instantiated.

Example

  1. An object ID is TANK02

  2. A data item name is FLOWLEFT

  3. The separator is always .

  4. The point name is TANK02.FLOWLEFT.

TANK02.FLOWLEFT is only 15 characters; it is a valid name.

Class ID

Class that will be used as the template for the class object.

(Optional) Click the buttons to do the following.

 

Opens the Select a Class browser.

 

Display a New/Edit/Browse  Popup menu.

  1. Click OK.

Result: The Object - <object name> dialog box opens for the new object.

More information

Step 2. Open an Object dialog box.