Layering In Visio

V

vtbrill

Is there a way in Visio for me to program in a shape that when it
clicked, a certain layer will show? I want users to be able to pic
different layers from a legend.

Thank
 
M

Markus Breugst

Hi,

perhaps the following formula does what you want(?)

IF(ThePage!Layers.Visible[2]=0,SETF(GetRef(ThePage!Layers.Visible[2]),1),SET
F(GetRef(ThePage!Layers.Visible[2]),0))

To test it,
- create a new Visio document
- create several layers on one page
- create some shapes and assign them to the layers (some of the shapes
should be in layer number 2).
- create one additional shape.
- put the formula above into the "EventDblClick" cell of this additional
shape.

If you doubleclick onto the shape, layer number 2 will change from visible
to invisible or vice versa.

Instead of youble clicking, you could give the shape a custom property with
a predefined list. Changing the custom property could then switch the layer
visibility.

Best regards,
Markus


vtbrill said:
Is there a way in Visio for me to program in a shape that when its
clicked, a certain layer will show? I want users to be able to pick
different layers from a legend.

Thanks
http://www.officehelp.in/archive/index.php |
http://www.officehelp.in/index/index.php
 
V

vtbrill

Markus said:
Hi

perhaps the following formula does what you want(?

IF(ThePage!Layers.Visible[2]=0,SETF(GetRef(ThePage!Layers.Visible[2]),1),SE
F(GetRef(ThePage!Layers.Visible[2]),0)

To test it
- create a new Visio documen
- create several layers on one pag
- create some shapes and assign them to the layers (some of the shape
should be in layer number 2)
- create one additional shape
- put the formula above into the "EventDblClick" cell of thi
additiona
shape

If you doubleclick onto the shape, layer number 2 will change fro
visibl
to invisible or vice versa

Instead of youble clicking, you could give the shape a custom propert
wit
a predefined list. Changing the custom property could then switch th
laye
visibility

Best regards
Marku


Is there a way in Visio for me to program in a shape that when it
clicked, a certain layer will show? I want users to be able to pic
different layers from a legend



-----------------------------------------------------------------------
vtbrill's Profile: http://www.officehelp.in/member.php?userid=9
View this thread: http://www.officehelp.in/showthread.php?t=68962
Visit - http://www.officehelp.in http://www.officehelp.in/archive/index.php
http://www.officehelp.in/index/index.ph
I tried to use the formule in the double click event of the shape bu
its giving me a message that says error in formula, then when i clic
off it highlights the last word "SET". I am a little confused abou
what you were trying to get me to do with the second suggestion abou
the custom property. Can you please give me more information.

Thanks so much
 
M

Markus Breugst

Hi again,

well, "SET" was not the last word of the formula. You have copied just the
first line. Please try it again with the whole formula. The last characters
should be

[2]),0))

Best regards,
Markus
I tried to use the formule in the double click event of the shape but
its giving me a message that says error in formula, then when i click
off it highlights the last word "SET". I am a little confused about
what you were trying to get me to do with the second suggestion about
the custom property. Can you please give me more information.

Thanks so much.
http://www.officehelp.in/archive/index.php |
http://www.officehelp.in/index/index.php
 
V

vtbrill

In the double click event of the shape in the shapesheet, it will no
let me paste the whole formula, it cuts it off after "SET". There mus
be a limit of characters.

Thanks agai
 
J

John Marshall, MVP

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