Special Connection Points

Started by skydiver13, June 23, 2017, 05:11:03 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.


Hello I was just wondering if anyone knows where to start for me to create special connection points for my valve that I have created on visio. My shape(value) has 2 positions. It has position A and position B, which as be selected by right clicking on the shape.

What I am trying to do (if it is possible) to switch the position on the shape and make the input to the connection change as well and flow into the direction that the valve directs.

The shape that is attached represents the Blend on the picture. For example if the shape is changed to position A(red) how could I make the purple to flow downwards instead of across.


Sorry for my wording. I think a better question would be..Is it possible for the lines to change directions and the color when the valves change. The picture is attached for better understanding. Is it possible to program this.


Hello Skydiver,
your problem can be solved, but I'm not on a PC with visio right now, so I'll try to give an answer in the next post.
Meanwhile I would be very interested in the rotary valves shown in your diagram. How are they called, where can the purchased and when do you use them. I specially wonder how you manage to design circuits with the more complex ones (4 and more pairs).


Hello Yacine. These rotary valves work in a circuit by controlling how a specific gas flows through them. The more complex ones just have more inputs and outputs.When switching a valve, the connection points in the valve rotate.




Hey Yacine. Sorry I do not have the valve supplier on hand but I can find out if needed. I attached a better example. Could you please move me in the right direction for the input lines to change color when switching the valve.


Hello Skydiver,

so it took me some time, but I got a result.

I made a smart rotary valve with the following features.
- It is a group shape with connection points. The shape is set to not accept connections to its sub-shapes, so to make sure to always connect to the group shape.
- The connection pairs are subshapes, arranged radially and shown/hidden, depending on the number of pairs set in the parent shape (the group).
- The colour of a connection pair is set manually. To do so select the group, then click on a pair to sub-select it and format it as desired.
- This colour is transfered by shapesheet formulas to the parent shape and depends on the state of the parent (ON/OFF)
- The solution does unfortunately not work without macros. The macro writes the dependencies of the connectors to the rotary valve connection point. So the connectors must be prepared by selecting them, then running the macro "setupConnector"
- You'll notice that a connector connected to two rotary valve connection points will display the colour of the endpoint. This is caused by the nature of your request - the rotary valve defining the colour of the connected pipe. A more realistic model would involve colouring of the sources instead of the valves.
- the stencil "RotaryValve" needs to be loaded to get the desired functionality. Once the connections are made they work without stencil (ON/OFF), but rearranging and modifying the number of pairs works only with the macros.

What else?
The rotary valve is a group, so if you need some embellishments, open the group and add what ever enhances the shape.
In the drawing you uploaded, all the connections were made of single line segments. My solution will not work with these segments. You need to use proper connectors. Please google the right way to use and adjust Visio connectors.

Bill: 5 digital beers, please.


Explanations: It was easier to me to implement the solution than to explain how to make it by yourself, due to the complexity of the shape.
- Have a rotary valve with adjustable number of connection pairs
  biggest work: have a sub-shape that rearranges itself depending on its number.
- Have connection points in the parent shape, rather than its sub-shapes. Couldn't find a way to deactivate them, so moved them instead in the center of the parent. You'll notice this behaviour when connecting a connector and reducing the number of pairs.
- The values (colours) of the connection points got written in the scratch section. They depend on the sub-shapes and the state of the parent. The macro sets this value to the line colour of the connected connector.
- An additional issue resulting from the adjustable number of pairs, was getting the colour of the last displayed pair. I solved this issue by an additional CALLTHIS in the parent shape.


How cool is my first use of this valve?
It's a redundant filter system with counter-flow rinsing of the filter not in use.

If now I only could find a supplier...