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:
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.
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.
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.
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.
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.
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.