|
Navigation: User Interface > Diagrams > Diagram Notes |
![]() ![]()
|
ModelRight 3.5 allows you to attach textual notes to your Diagram objects so that you can annotate and graphically view any issues, reminders, or other types of notes associated with an object. Diagram Notes that are attached to objects can display the Description or Notes for that object. Or they can contain user-defined text that is written independent of those properties.

To create and attach a Diagram Note to a Diagram object, click the right mouse button on the object and select New/Diagram Note.

A Table with an attached Diagram Note
ModelRight 3.5 also displays a jogged line that shows the object that the Diagram Note is associated with.
Diagram Note Property Page
Use the Diagram Note Property Page to enter the text that you want displayed. You can also edit the text using on-diagram editing.

Display Property: select what you would like the Diagram Note to display. Chose from the associated object's Note or Description or enter User-Defined text that is associated with the Diagram Note.
Link Type: specify Link attributes that make the Diagram Note act as a hyperlink when it is clicked.
Font and Color Toolbars: most of these options are applied to the currently selected text.
The Drawing Text that you can create by selecting Text from the Drawing toolbar/menu has been improved to use the richer graphical capabilities of Diagram Notes.

Scripting and Diagram Notes
You can add jsp-like tags to your text to have ModelRight 3.5 evaluate and substitute model object properties for the the tags. For example, you could create a Text Graphic that displays the current Date, Diagram Name and Author by entering the following text:
Diagram = <%= CurrentObject.Owner.Owner.Name %>.<%= CurrentObject.Owner.Name %>
Model = <%= CurrentObject.Model.AsObject.Name %>
Author - <%= CurrentObject.Model.AsObject.Property("Author").AsString %>
Current Date = <%= Context.CurrentTime %>
The following tags are supported:
<% ModelRight 3.5 scripting statements %> - The text should contains VB Script statements that use Document.Write to output a string.
<%= ModelRight 3.5 script that evaluates to a string %> - ModelRight 3.5 will enclose the tagged text in a Document.Write statement
If any tags are detected, ModelRight 3.5 prefixes the text that is evaluated with the following:
Sub Evaluate_OnLoad()
Set Context = CreateObject(\"SCF.ScriptContext\")
Set Document = Context.ScriptDocument
Set Options = Context.Options
Set CurrentObject = Context.Object
and appends the following:
End Sub
Page url: http://www.modelright.com