how do i write multi-line on a message(call) object in visio?

J

Jebeddo

On making UML Use Sequence diagram, all the texts over message's shown in one
line, and that makes it hard to read when it comes over other objects. If you
widen your objects distances from each other than paper area is not enough
for you.

I want to write and see message texts on 2 or 3 lines. How can i do this?
 
J

JuneTheSecond

A macro could insert text of double lines.
Chr(10) might split the lines.

Sub test()
'First you should select a class shape.
Dim shp As Visio.Shape
For Each shp In ActiveWindow.Selection(1).Shapes
Debug.Print shp.Name
If shp.Name = "Name" Then ' or Operations, Attributes
shp.Text = "abcde" & Chr(10) & "efghi"
Exit For
End If
Next
End Sub
 
J

JuneTheSecond

Open shapesheet and change the value of User.UMLAutoLockTextEdit cell into 0.
Then you can enter multiline text.
 
J

Jebeddo

where can i set User.UMLAutoLockTextEdit value?
I check it for but i cant see where it is.
Also writing macro could be possible but i dont prefer it.
 
J

JuneTheSecond

Open the shapesheet of your UML class shape and you can find user-defined
cells section, and find the UMLAutoLockTextEdit row.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top