Author Topic: Perform Two Actions in a single Action menu  (Read 3720 times)

0 Members and 1 Guest are viewing this topic.

Naresh Nichani

  • Newbie
  • *
  • Posts: 7
Perform Two Actions in a single Action menu
« on: May 25, 2009, 03: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

Paul Herber

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3005
    • Paul Herber's website
Re: Perform Two Actions in a single Action menu
« Reply #1 on: May 25, 2009, 04:15:13 AM »
=SETF(GetRef(PinX),"Sheet.5!Width*0") + SETF(GetRef(PinY),"Sheet.5!Height*0")

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

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

Visio Guy

  • Administrator
  • Hero Member
  • *****
  • Posts: 1718
  • Smart Graphics for Visual People...n' Stuff
    • Visio Guy
Re: Perform Two Actions in a single Action menu
« Reply #2 on: May 25, 2009, 07:33:03 AM »
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

  • Newbie
  • *
  • Posts: 7
Re: Perform Two Actions in a single Action menu
« Reply #3 on: May 26, 2009, 02: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