How to Extend Lifeline or Resize Shape?

Started by alexis_salinas, September 14, 2008, 09:56:40 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

alexis_salinas

Hi guy
I  need help, how to extend lifeline o resize the Object LifeLine???

       
forma1 = vStencil.Masters("Object LifeLine")
vFromShape = vApp.ActivePage.Drop(forma1, dblXLocation, dblYLocation)
       
forma2 = vStencil.Masters("Object LifeLine")
vToShape = vApp.ActivePage.Drop(forma2, dblXLocation + 1.5, dblYLocation)

vConnectorMaster = vStencil.Masters("Message")
vConnector = vApp.ActivePage.Drop(vConnectorMaster, dblXLocation + 1.5, dblYLocation - 1.5)

vBeginCell = vConnector.Cells("BeginX")
vBeginCell.GlueTo(vFromShape.Cells("Connections.X2"))

vEndCell = vConnector.Cells("EndX")
vEndCell.GlueTo(vToShape.Cells("Connections.X2"))

       
thanks

Wombat

Hey a_s,

1. What is the "Object LifeLine"?
2. Where are you have a problem or an error?
6'4" and full of muscle

Paul Herber

The Object Lifeline is in the UML stencils.
The height of the lifeline is controlled by a cell in the Controls section. Put your required height in cell Controls1.Y

Electronic and Electrical engineering, business and software stencils for Visio -

https://www.paulherber.co.uk/

alexis_salinas

#3
Quote from: Paul Herber on September 15, 2008, 07:27:55 PM
The Object Lifeline is in the UML stencils.
The height of the lifeline is controlled by a cell in the Controls section. Put your required height in cell Controls1.Y


Thanks,
The code is

Dim vShp As Visio.Shape
Dim vMst As Visio.Master
vMst = vStencil.Masters("Object LifeLine")
vShp = vApp.ActivePage.Drop(vMst , 5, 5)
vShp.Name = "Class1"
vShp.Cells("Controls.Y").FormulaForceU = 10


working Ok!!


Thanks guy


knowbots

Dim vShp As Visio.Shape
Dim vMst As Visio.Master
vMst = vStencil.Masters("Object LifeLine")
vShp = vApp.ActivePage.Drop(vMst , 5, 5)
vShp.Name = "Class1"
vShp.Cells("Controls.Y").FormulaForceU = 10


People, where stay "Object Lifeline" i need put a variable, like this

num = 1
var1 = "Object LifeLine" & num
vMst = vStencil.Masters(var1)


I tried  to do this but doesn't works

Paul Herber

Quote from: knowbots on December 29, 2008, 07:35:12 PM
People, where stay "Object Lifeline" i need put a variable, like this

num = 1
var1 = "Object LifeLine" & num
vMst = vStencil.Masters(var1)


I tried  to do this but doesn't works

There is no master shape with this name. vMst will be set to nil.

Electronic and Electrical engineering, business and software stencils for Visio -

https://www.paulherber.co.uk/

wapperdude

First the obvious, you should dim "num" and "var1".

2nd:  your statement  var1 = "Object LifeLine" & num would result in var1 = Object LifeLine1, or something like that.

To get your example to work, try:

Dim var1 as string
var1 = "Object LifeLine"


That ought to work.
Visio 2019 Pro