Perform Two Actions in a single Action menu

Started by Naresh Nichani, May 25, 2009, 08:24:28 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Naresh Nichani

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

Paul Herber

=SETF(GetRef(PinX),"Sheet.5!Width*0") + SETF(GetRef(PinY),"Sheet.5!Height*0")

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

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

Visio Guy

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? ;) ;)
For articles, tips and free content, see the Visio Guy Website at http://www.visguy.com
Get my Visio Book! Using Microsoft Visio 2010

Naresh Nichani

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