Create and modify diagram shape ports

How to create and modify diagram shape ports in MyDraw

Ports are the connection points to which multiple plugs can be attached. MyDraw support 3 types of ports:
Inward port

Inward port

This is the default type of port that allows connecting incoming and outgoing plugs to the shape. You can connect several connectors to an inward port, but you cannot connect two shapes to their ports directly without using a connector if they both have inward ports.


Outward port

Outward port

This type of port does not allow connectors, but it allows an inward port to be connected to it. In other words, you can connect 2 shapes (that are not connectors) if one of them has an outward port and the other one an inward Port.


Inward and outward port

Inward and outward port

The Inward and outward port is a combination of the above two mentioned models. It allows the connection of both connectors and shapes and you can use a single port to combine both (as demonstrated in the image below). You can use this type of port for more complex diagrams or when you need to connect a single shape to many other shapes and connectors simultaneously.

All predefined shapes come along with some already set inward ports. Sometimes, however, the ports may not be located exactly where you need them to be or may not be enough. Custom shapes also have no ports at all. For this reason, MyDraw allows the creation of your custom ports and the ability to modify the existing ones. You can add/delete/modify ports on both connectors and shapes.

To create a port for a connector or a shape, follow these steps:


Step 1: Shape properties

To find all shape properties, right-click the shape you want to create a port for and go to “Shape properties” as displayed on the screenshot here. This will open a “Shape Editor” window.

Creating a port for 1D shape step one

Step 2: Adding a Port Collection

If your shape does not already have an existing port collection, you need to add one so you can then specify ports. To do this click on the little green cross on the left corner on the bottom. This will open another window that offers several options. As for now, we are interested only in the “Port collection”, so select it and click ok.

Creating a port for 1D shape step two

Step 3: Adding ports to a port collection

To add a new port to the already created “Port collection”, select the collection in the menu on the right of the “Shape Editor” window and click the little green cross on the bottom left corner again. This will offer you to add a “Port” - click “OK”. Once you do this on the “Shape Editor” window you will see all “Port” options displayed.

Creating a port for 1D shape step three

Step 4: Naming the ports

The first line in the port’s editor lets you type the port name. You can leave it empty and MyDraw will automatically add a name for it like “Port1”. My advice is to name your ports yourself so you can easily find them afterward. This may seem unnecessary, but it can be really handy after you have created more than one shape.

Naming the port

Step 5: Modifying the position of the ports

Right below the Port Name is the “Location” tabs. You can specify the location of the port in two different ways:

a. Exact location based on the coordinate system.

Let's say I want to position my port exactly 200 dips from the beginning of my arrow. To do this I have to locate the beginning of my shape according to the rulers in MyDraw. This is easy to do – just point the mouse at the beginning of the shape and look at the Status Bar (the line with information at the bottom of MyDraw’s window). In the current example my arrow starts as 200 dip + 400 dip = 400 dip. This is a good way of positioning your ports if you need them to remain in an exact spot no matter how many times you resize the shape or move it.

Locating port at an exact spot

b. Relative location of the shape.

If you select the checkbox “Relative”, MyDraw will automatically understand the shape like a line that starts at 0.00 dip and ends at 1.00 dip. So if now you type 0.20 dip on “X” this will position the port on one-fifth of the arrow, and it will remain positioned at one-fifth of it no matter how many times you resize it.

Locating port at relative spot

Step 6: Adding a port to a 2D shape (square, circle, rectangular, etc.)

Adding a port to more complicated shapes follows the same logic, only this time you need to consider the Y-axis position of the port as well. In the below screenshot, for example, you’ll see that if you need a port added to the top left corner of the shape, you simply leave the X and Y values at 0. For the bottom right corner, the X and Y values will be 1.0 and 1.0. For the top right corner X will be 1.00 and Y will be 0.00 and so on. Locating port on 2D shape

Locating port on 2D shape second


Free trial

Ready to try it yourself?

MyDraw is free for 1 month without any limitation in functionality. You can test every aspect of it and save your diagrams to PDF, high-resolution images, or print them directly.