Visio Guy

Visio Discussions => ShapeSheet & Smart Shapes => Topic started by: Naresh Nichani on May 25, 2009, 08:24:28 AM

Title: Perform Two Actions in a single Action menu
Post by: Naresh Nichani on May 25, 2009, 08:24:28 AM
Hi,

I have a Action Menu called "Snap" where I need to set the PinX and PinY to a formulae. Using SETF I am able to set either PinX or PinY - how do I do both in a single action.

Right now my formulae looks like this
=SETF(GetRef(PinX),"Sheet.5!Width*0")

I need to do
=SETF(GetRef(PinX),"Sheet.5!Width*0")
AND
=SETF(GetRef(PinY),"Sheet.5!Height*0")

both in a single action.

Thanks,

Naresh
Title: Re: Perform Two Actions in a single Action menu
Post by: Paul Herber on May 25, 2009, 09:15:13 AM
=SETF(GetRef(PinX),"Sheet.5!Width*0") + SETF(GetRef(PinY),"Sheet.5!Height*0")

Title: Re: Perform Two Actions in a single Action menu
Post by: Visio Guy on May 25, 2009, 12:33:03 PM
Hi Naresh,

You might also look in the Visio developer help under SETATREF. There is an example there that uses these (newer) functions to do some snapping.

Are you making an I/O port builder? ;) ;)
Title: Re: Perform Two Actions in a single Action menu
Post by: Naresh Nichani on May 26, 2009, 07:41:34 AM
Chris,

Thanks - was trying to get the wire to show the CompID at both ends - just some stuff I am experimenting with in my free time. Will let you know if I get stuck.

Cheers,
Naresh