Echelon OpenLNS Commissioning Tool User Manual

Page 332

Advertising
background image

316

Creating and Using Custom OpenLNS CT Shapes and Stencils

5. Open the Insert menu, point to Picture, and then click From File. Select a bitmap file. Position

the bitmap on the device as desired. Close the Group window.

6. Click the bitmap, open the Format menu, and then click Behavior. Clear the three check boxes

under the Selection Highlighting box.

7. Open the Windows menu and then click Show ShapeSheet. The ShapeSheet opens. In the

Protection section, enter 1 in the LockTextEdit cell. Close the ShapeSheet.

8. Drag the SmartShape to a stencil to which you have write access. To change the name of the

SmartShape, right-click it, point to Edit Master, and then click Master Properties on the shortcut
menu. Modify the name and then click OK.

9. Save the stencil.

Viewing and Editing VBA Code Associated with an

OpenLNS CT Network Drawing

Each OpenLNS CT drawing has VBA code associated with it that implements its OpenLNS CT
functionality. Do not edit this code, as this can cause loss of OpenLNS CT functionality. However,
you can add your own VBA code to the drawing (to create HMIs with the Data Point SmartShape, for
example). To avoid unintentional changes to the OpenLNS CT VBA code and protect the OpenLNS
CT digital signature, the VBA code in the OpenLNS CT templates and drawings is password
protected. See Working with Digital Signatures in Chapter 3, Getting Started, for information on the
consequences on modifying VBA code.

To view and edit the VBA code associated with an OpenLNS CT drawing, follow these steps:

1. Enable the Visio Developer tab. To do this, click File and then click Options. In the Visio

Options dialog, click the Customize Ribbon section. On the right-hand side, enable the
Developer check box, and then click OK.

2. Click the Developer tab, and then click Visual Basic. The Visual Basic development

environment opens. You must have Visual Basic installed on your computer to view and edit
VBA code.

3. On the left pane of the Visual Basic window, open the network project. You will be prompted for

a password.

4. Enter enumerate in the Password box.

5. View and edit the Visual Basic code associated with the OpenLNS CT drawing.

Advertising