Attach Labels To Links
NNMonitorNNMonitor is a ping monitoring program for use with Network Notepad Professional and Enterprise Editions. Open a Network Notepad .ndg file with NNMonitor and click the Run button to start pinging all of the nodes in the document. NNMonitor displays the status of each node and can send email alerts and play sound effects when nodes change state. It can also display the status of each node in Network Notepad and can be launched from as a tool in Network Notepad. More information here.
Script Objects "paint" commandThe new "paint" command enables a Script Object to include other Script Objects in it's drawing. The command syntax is as follows:
The Format Script Object form has been updated to
make it easier to switch between Script Objects and use
the paint command. Network Notepad Clipping v2.1 Merge Script ObjectsFormat > Merge Script Objects enables multiple
Script Objects to be merged in to a single Script Object. Text can
also be merged.
2. Copy and paste script components from the
online library on to the parent object.
3. Put the parent box and child components in to a
group.
4. Select the group by clicking the parent box
and then select Format > Merge Script Objects.
5. To save the new object to the current local library, right-click the object and select Format Script Object. Click the "Save to Library" checkbox and click OK. Please email me a copy of your new scripts (or any new components) for inclusion in the online library!
Format Script ObjectFormat Script Object provides an environment for creating and modifying Script Objects. Access it from the Format menu or right-click a Script Object in a diagram or the library window.
$ADDRLIST VariableYou can create a special object which is used to
start NNPing for multiple nodes at once. 192.168.1.1;192.168.1.2;192.168.1.3;192.168.1.4;192.168.1.5 Configure a function button like this: Command:
|
Cisco Catalyst 2960S-24PD-L
Front View |
||
42U-Rack |
||
50cm Rule (Shown set to x2 scale) | ||
A Script Object consists of the following statements:
1. The script statement sets the name, overall size of the object, and the revision number.
script "Test object" 50 20 0.1 | script <name> <width> <height> <revision> | |
<name> - name of the script object. If the name contains spaces then enclose it in "quotation marks". The name should be globally unique. | ||
<width> - width of the object. | ||
<height> - height of object.The width and height set the size of the outline box
displayed when pasting the object. In the examples I am using a default scale of 1pixel per mm. |
||
<revision> - Revision number of
the script. When pasting scripts which already exist in the
diagram, the script will only be replaced if the new
script is a higher revision. |
align + screw -11 6 454 6 -11 50.5 | align <+ or -> <type> <points> | |
<+ or ->. A "+" script can only align with a "-" script. | ||
<type> For scripts to align the type must match between the two scripts. | ||
<points> A list of X Y alignment points. |
3. Path statements define the shapes, lines and text in the object.
path name test | path name <name> <name> - name of graphics path. |
|
path startfigure | Starts a new path
rather than drawing a line from the last position to the
next position. |
|
path addline 10 10 10 20 | path addline
from <x1>
<y1> to <x2> <y2> Adds a line to the current path. |
|
path addlines 10 10 10 20 30 15 | path addlines <x1>
<y1> <x2> <y2>... <xn> <yn> Adds a series of lines to the current path. |
|
path addrectangle 10 20 30 40 | path addrectangle <x1>
<y1> <width> <height> Adds a rectangle at the position specified with the width and height specified. |
|
path addarc 41 4 5 5 270 90 | path addarc <x> <y>
<width> <height> <start angle> <sweep angle> Adds an arc to the current path <x> <y> <width> <height> defines a rectangle which forms the bounds of the arc. <start angle> measured in degrees clockwise from the x-axis. <sweep angle> angle swept from start angle. |
|
path addstring 39
2 "McGoozon" arial 3 1 |
path addstring <x>
<y> <"text"> <font name> <font size> <font style> <x> <y> specify the top left corner position of the text. <"text"> text string to draw. <font name> Name of font. Enclose in quotation marks if the font name contains spaces. <font size> <font style> Numeric value, Regular=0, Bold=1, Italic=2, Bold Italic=3, Underline=4, Strikeout=8 Use a fill command to draw text. If you use a draw command the outline of the text is drawn. |
|
path closefigure | Draws a line from the
current position to the start point in the current path. |
4. Pen and Brush statements define the pens and brushes used in the commands section below.
pen black_pen0.5 &h000000& 255 0.5 | pen <name> <colour> <transparency>
<width> Pens are used with draw commands to draw the outline of a a path. <name> named of the pen. <colour> Blue green and Red values in Hex. <transparency> 0-255 where 255 is solid colour. <width> width of line drawn with the pen. |
|
brush grey_brush &ha0a0a0& 255 | brush <name> <colour>
<transparency> Brushes are used with fill commands to fill an area enclosed by a path. <name> named of the brush. <colour> Blue green and Red values in Hex. <transparency> 0-255 where 255 is solid colour. |
5. Commands are used to draw paths using pens and fill paths using brushes. The options command enables optional drawing commands to be executed at runtime by right clicking an object and selecting "Options".
fill "test" grey_brush 20 10 | fill <path> <brush> <x>
<y> [<xscale> <yscale>] [angle] Fill an area enclosed by a path using the specified brush. Draw at position <x> <y> and apply an optional local scale transform. <path> name of path to fill. <brush> name of brush to use. <x> <y> position of drawing. <xscale> <yscale> scale transform. Negative values are used to flip the drawing about the x or y-axis. For an example of this see the left and right brackets in the 2960 switch which use the same path but flipped about the y-axis. <angle> optional rotation in degrees. |
|
draw "top box" black_pen0.5 20 10 | draw <path> <pen> <x>
<y> [<xscale> <yscale>] [angle] Draw the outline of a path using the specified pen. Draw at position <x> <y> and apply an optional local scale transform. <path> name of path to draw. <pen> name of pen to use. <x> <y> position of drawing. <xscale> <yscale> scale transform. Negative values are used to flip the drawing about the x or y-axis. <angle> optional rotation in degrees. |
|
option "brackets" | option <name> The option command is followed by optional fill and draw statements which can be enabled or disabled at run-time by right-clicking the object and choosing "Options". E.g. See the brackets and screws options in the 2960 switch example. <name> is the name of the option which will be displayed in the options menu. |
|
Grouping and Locking
Group objects by first selecting the parent object followed by any child objects, then select Format > Group.
Selecting the parent object now also selects all child objects when copying, nudging, dragging and dropping, etc.To Lock a group, right click the parent object and choose Lock > Group Lock.
Now when you resize the parent object, all child objects are proportionally resized as well.
Open Multiple Documents SimultaneouslyYou can now open more than one document at once. Each open document presents its own tab bar at the bottom of the window, where you can select pages from any open document instantly. You can also drag and drop or copy and paste pages between documents using the page tabs. These features are mainly useful if you work with many multi-page documents so it is disabled by default. To enable it, set the "Maximum Open Documents" setting in the Setup Form to a sensible figure such as 6.
Nested Link Styles
E.g. in the following drawing the Dual 10G links consist of a red link 5 pixels wide with a secondary white link which is 3 pixels wide. See the Format Link Styles menu option for more information.
Copy and paste this section in to Network Notepad Professional Edition to reproduce this diagram:
Network Notepad Clipping v2.1
label 1 -64.75 3.25 "Dual 10G<<crlf>>Links" "microsoft sans serif" 8 true false false false &hFF& ! object &hFFFFFF& ! 0 255 0 ! 51.5 51.5 25.5 -64.75 3.25 0 0 0 ! 0 0
object 4 "data centre switch" -32.5 -52 2 ! ! ! 3 .5 .5 1 0 0 0 false 37.5 54.5 false 0 ! ! 37.5 54.5 -32.5 -52 0
object 5 "data centre switch" 85.5 -52 4 ! ! ! 5 .5 .5 1 0 0 0 false 37.5 54.5 false 0 ! ! 37.5 54.5 85.5 -52 0
object 6 fileserver -37 52 6 ! ! ! 7 .5 .5 1 0 0 0 false 28 43.5 false 0 ! ! 28 43.5 -37 52 0
object 7 fileserver 26.5 52 8 ! ! ! 9 .5 .5 1 0 0 0 false 28 43.5 false 0 ! ! 28 43.5 26.5 52 0
object 8 fileserver 90.5 52 10 ! ! ! 11 .5 .5 1 0 0 0 false 28 43.5 false 0 ! ! 28 43.5 90.5 52 0
label 2 n -35.75 SW1 ! ! ! ! false ! &h0& 4 object ! ! 0 255 0 ! 28 34 17 -32.5 -87.75 0 -1130.5 -310 ! -1130.5 -310
label 3 n -27.25 ! ! ! ! ! false ! &h0& 4 ip ! ! 0 255 0 ! 0 0 0 -32.5 -79.25 0 -1130.5 -310 ! -1130.5 -310
label 4 n -35.75 SW2 ! ! ! ! false ! &h0& 5 object ! ! 0 255 0 ! 28 34 17 85.5 -87.75 0 -1130.5 -310 ! -1130.5 -310
label 5 n -27.25 ! ! ! ! ! false ! &h0& 5 ip ! ! 0 255 0 ! 0 0 0 85.5 -79.25 0 -1130.5 -310 ! -1130.5 -310
label 6 s 30.25 Server1 ! ! ! ! false ! &h0& 6 object ! ! 0 255 0 ! 43.5 52.5 17 -37 82.25 0 -1130.5 -310 ! -1130.5 -310
label 7 n -21.75 ! ! ! ! ! false ! &h0& 6 ip ! ! 0 255 0 ! 0 0 0 -37 30.25 0 -1130.5 -310 ! -1130.5 -310
label 8 s 30.25 Server2 ! ! ! ! false ! &h0& 7 object ! ! 0 255 0 ! 43.5 52.5 17 26.5 82.25 0 -1130.5 -310 ! -1130.5 -310
label 9 n -21.75 ! ! ! ! ! false ! &h0& 7 ip ! ! 0 255 0 ! 0 0 0 26.5 30.25 0 -1130.5 -310 ! -1130.5 -310
label 10 s 30.25 Server3 ! ! ! ! false ! &h0& 8 object ! ! 0 255 0 ! 43.5 52.5 17 90.5 82.25 0 -1130.5 -310 ! -1130.5 -310
label 11 n -21.75 ! ! ! ! ! false ! &h0& 8 ip ! ! 0 255 0 ! 0 0 0 90.5 30.25 0 -1130.5 -310 ! -1130.5 -310
link_object 1 4 6 red5 ! ! ! ! ! ! 0 0 0 0 ! False 3
link_object 2 6 5 red5 ! ! ! ! ! ! 0 0 0 0 ! False 3
link_object 3 4 7 red5 ! ! ! ! ! ! 0 0 0 0 ! False 3
link_object 4 4 8 red5 ! ! ! ! ! ! 0 0 0 0 ! False 3
link_object 5 8 5 red5 ! ! ! ! ! ! 0 0 0 0 ! False 3
link_object 6 5 7 red5 ! ! ! ! ! ! 0 0 0 0 ! False 3
link_object 7 4 5 red5 ! ! ! ! ! ! 0 0 0 0 ! False 3
link_object 8 4 5 red5 ! ! ! ! ! ! 9.5 -13 -10.5 -13 ! False 3
define_link red5 0 &hFF& 1 5 9 0 0 0 0 0 0 0 255 False white3 0 0 0 0 0 0 0 0 0 0 0 0
define_link white3 0 &hFFFFFF& 1 3 9 0 0 0 0 0 0 0 255 False None 0 0 0 0 0 0 0 0 0 0 0 0NNPing Tool for Network Notepad Professional and Enterprise Editions
The NNPing tool provides a real time visual and audio indication of the state of objects in your diagram.
NNPing is installed and configured automatically in recent installations. For earlier installations, upgrade to the latest version and then define a function button like this:Command(0,11)=nnping $ipaddress 1000 3 up.wav 3 down.wav
Display(0,11)=NNPing $IPADDRESS
AutoMin(0,11)=FalseThe NNPing arguments shown above are as follows:
nnping <ipaddress> <timeout> <up retries> <up sound> <down retries> <down sound>
Rotate and Resize Using The Mouse
Network Notepad Professional Edition
- Compatibility - It's a major rewrite using Microsoft .NET, so it offers better compatibility and stability with the latest Windows operating systems compared to the freeware edition.
- Zoom - Work with and edit diagrams at any zoom level.
- Resolution - Draft, Fine and Superfine modes for improved graphics and printing.
- Rotate - Rotate text and rotate objects to any angle. Drag-and-Rotate.
- Workspace - Supports larger workspace bitmap / larger diagrams.
- Multi-page diagrams - Add as many pages to a diagram/ document as you wish and access the pages instantly using the onscreen page tabs.
- Custom shapes - Create your own customizable shapes inside of Network Notepad Professional Edition.
- Grouping and Locking - Combine two or more objects to make composite objects.
- Auto-align links - Can be enabled for a link style or for an individual link so that connection alignment is maintained horizontally and vertically.
- Library Search - Find objects in all of your libraries using keywords. Save the result as a new library.
- Enhanced Link Styles - New lightning and curve link styles.
- Template Diagrams - When you start a new diagram, select from the list of templates to set the page size, orientation, link styles, and any default drawing such as a title block and border.
- Print Preview.
Network Notepad CDP Neighbor Tool
Network Notepad CDP Neighbor Tool adds auto-discovery features to Network Notepad if you have a network with Cisco products and other products which support Cisco Discovery Protocol.
- Right click an object and select "Discover Neighbors".
- Click the paste button in Network Notepad to draw the discovered devices, along with links, interface descriptions and float text showing the model types.
- Automatically shows the relevant icon for switches, routers, access points etc.