Insert Space between Shapes and Connectors in Visio - uml

I'd like to automatically pad my shapes with some space so that connectors (e.g. arrows) do not touch the shape, but instead are a few pixels away.
This can be achieved by moving the shape connector points away from the shape, but this is a manual, time consuming process which needs to be done per shape which I would like to avoid.
How can I automatically insert a fixed amount of space between connectors and shapes?

You can do this with a Custom Line End.
If the Drawing Explorer Window is not shown then View Menu > Drawing Explorer Window.
In the Drawing Explorer Window right click on the Line Ends folder.
Click New Pattern.
Give the Line End a name and select Scaled. Click OK.
Right click on the new Line End.
Click on Edit Pattern Shape.
Draw a small line end e.g. an arrow about 0.125 in square or 3 mm square. The arrow should point to the right.
If there line end you created is made of more than one shape group it, e.g. Ctrl+A then Ctrl+G.
Zoom in closely to the shape.
Make sure the Pointer Tool is selected in the Standard Toolbar.
Select the shape.
Mouse over the Shape Rotation Handle e.g. the lollypop.
A new handle should appear with the tooltip Center of Rotation.
Move this handle outside the shape to the right. How far you move will control the offset of your line from the shapes. See image:
Close the Pattern Shape window.
Click Yes to save the pattern.
Select all the lines you want to use the new Line Pattern with.
Format Menu > Line
Change the Line ends: Begin and Line ends: End to the name of your new Line End. The name will be at the bottom of the list.
The lines begin and ends should now appear offset from the shapes they are connected to.
These instructions are for versions of Visio prior to Visio 2010. In Visio 2010 the menu items described are replace with buttons in the ribbon.

Related

Creating association classes on Visio 2019

I'm a beginner using Visio. For my project, I'm using the 2019 Professional version and I'm having a trouble to create an association class, like the "Items", down in the image.
How can I do it?
To draw a dashed line from a class to an association, proceed as follows:
Click with the right mouse button on the background of the drawing. A toolbar and a menu pop up at the same time.
The top left button of the toolbar has a very small triangle next to it, pointing down. Click on this triangle. A menu drops down.
Choose 'line' from this menu (it's the fifth entry).
Drag a line from the class to the association. A solid line will appear.
Click with the right mouse button on the line and choose 'Format shape'. The Format shape pane will appear.
In the Format shape pane, choose dashed formatting.

How can I automatically re-size Draw.io's UML “Class” shape after adding new lines representing extra fields or methods?

It is tedious to extend the height and width of the class shape areas after added new fields or methods to the class representation.
Googling suggests ctrl-shft-y, / Arrange -> Autosize, but this does not appear to work as expected for "Class" shapes. (It works fine on a regular rectangle).
Has anyone found a good way to add extra fields without manual overhead?
Draw IO's class shape with new line not fitting once added
When text is written only in one line,
(when a new row is added)
try to select only that row (not the whole UML shape)
and go to Arrange > Autosize or press Ctrl+Shift+y
​
It should work well.
When the new row is added,
but the text is written in 2 or more lines,
please tick a "Formatted text" in Text tab (Format panel)
and then go to Arrange > Autosize or press Ctrl+Shift+y
It should increase the hight of the row.
If you have a problem with this,
please vote for a Trello feature card I opened here:
https://trello.com/c/NSIxt85Y/424-support-autosize-for-uml-when-new-row-is-added-with-multi-line-text-change-height-correctly
cause there is a possibility that this feature should be improved.
I didn't understand list shapes in Draw.io.
It's explained here https://desk.draw.io/support/solutions/articles/16000054082-adding-entries-in-uml-diagrams
Ctrl-Enter to 'add a new line' (clone a shape in the list) and enter to edit/rename that shape.

FabricJS line selection with perPixelTargetFind varies depending on angle of line

I'm using perPixelTargetFind: true in combination with targetFindTolerance: 15 to allow users to select lines on canvas by clicking on the line as opposed to the full bounding box that is the default in Fabric.
This works great when a line is drawn at an angle as selecting is easy and the user doesn't have to be too specific with where they click. However, when the line is drawn either perfectly horizontally or vertically the line becomes almost impossible to select, almost like the targetFindTolerance value decreases to 0 depending on the angle of the line.
Here is a simplified example.
You'll notice the cursor change when you are able to select a line, and after selecting the line will change to red.
How about giving padding:value to object.
Here is updated codepen

SSRS export to excel on separate worksheets issue

I'm using SSRS 2008 to export data to an excel file. I need 4 worksheets in the file. As a result, I'm inserting a page break after each Tablix. But when there's no data in the page,it's merging the sheet with the next one. I looked up for help, I found one where it says I need to insert a rectangle to avoid this. I'm not sure how I do this. Any help?
To add a rectangle On the Insert tab, in the Report Items group, click
Rectangle. On the design surface, click the location where you want
the upper left corner of the rectangle, and drag to where you want the
lower-right corner. Note that as you move the cursor, "snap lines"
appear as the cursor lines up with other objects on the design
surface. These help you if you want objects to be aligned.
Then I believe you set the page break to occur after the rectangle instead of after the tablix

How to resize a note in a Visio 2010 UML diagram

I have added a note with about 50 lines of text to an UML diagram in Visio 2010, and I can't resize the shape. I can see connection points, but not the blue ones that you can drag to resize the shape. Modifying the height manually through View menu, Task Panes, Size & Position, doesn't work either.
You can format the text using shift / enter for line breaks to change the shape of the text which will change the shape of the box. Not elegant but workable.
Tested and works in Visio 2010
i. Select the shape
Select the Developer ribbon. (You may need to make this visible by right clicking on the ribbon>Customize the Ribbon> Tick the Developer box)
(Developer ribbon) From "Shape Design" select "Protection". Untick both Width & Height
(Developer ribbon) From "Shape Design" select "Show ShapeSheet" > "Shape"
Within the "Shape Transform" table remove "GUARD" from the width and height cells
N.B This will work for with a singly selected shape, not a group. By copying the modified shape the shapes settings will remain with the copy although this seems to result in the text field in the copy being uneditable.
A note usually can only be resize to the minimum size of the letters inside. I mean that you resize the size of caracters or the shape of the note in order to get the smaller rectangle or square and the note should automatically resize themselves. If not this is a bug !!
http://www.softwarestencils.com/uml/#Visio2010 fixed this problem for me. If you want to have complete control over the formatting, this is the "only" way (at least that I've found) that doesn't cost anything.

Resources