Visio Guy

Visio Discussions => ShapeSheet & Smart Shapes => Topic started by: kiler40 on January 22, 2014, 09:29:03 AM

Title: 2 colors callout line
Post by: kiler40 on January 22, 2014, 09:29:03 AM
Greetings All,
I`ve been searching for some time how to make 2 color line.
like in the picture
There was a similar topic in the forum, but i want to do it with one shape i`ve found somewhere in the visio stencils, so i can keep the behavior of the shape.
Later on i`ll make the color to change via the shape data, but i cant reach a solution to make it 2 color...
Anyone Please help !

Thanks in advance!


Andrei
Title: Re: 2 colors callout line
Post by: kiler40 on January 22, 2014, 09:29:55 AM
i don`t know where the visio file went...
Title: Re: 2 colors callout line
Post by: Jumpy on January 22, 2014, 09:39:14 AM
I think you need your own custom made linepattern:

http://www.visguy.com/2008/03/03/release-the-power-of-visio-custom-line-patterns/
Title: Re: 2 colors callout line
Post by: kiler40 on January 22, 2014, 09:57:23 AM
Yes i`ve seen this. But for the second color ? With this i can change only one color...
Title: Re: 2 colors callout line
Post by: Jumpy on January 22, 2014, 10:49:49 AM
I did this once. I made a two colored line. One color could be changed in the GUI. That is the color I left black in the custom made linepattern. The other color in the linepattern was red and that was the color in the line later, too. So I could make many two-colored lines, but one color was always red.

Later, because I needed two colored lines, where each of the two colors had to be changebale, but only in a range of 5 certain colors, I made a line pattern for each color. Always the choosen color combined with black in the linepattern. I called one the background color the other the foreground color, and like you want to do, I could change both colors in the ShapeData.

Changing the forgroundcolor in the ShapeData changed the line color.
Changint the backgroundcolor in the ShapeData changes the LinePattern.

But that was only usable because I had a finite number of colors (here only 5).
Title: Re: 2 colors callout line
Post by: kiler40 on January 22, 2014, 11:08:47 AM
This is interesting solution... i`ll give it a try. But still, if someone have other idea - Please share it.
Title: Re: 2 colors callout line
Post by: kiler40 on January 22, 2014, 11:26:06 AM
Something is not right... cant understand why...
the pattern is not changing. the color also...

and if i putt it in a stencil, so i can use it in other documents, only the line pattern that is in use is copied.
Title: Re: 2 colors callout line
Post by: Jumpy on January 22, 2014, 12:59:04 PM
Problem is, that you have a grouped shape and you change the linepattern of the group, but not that of the lineshape inside the group.
Select shape. Go to behaviour. Under select options select "Group first" instead of "grtoup only". Click on shape and click on shape a second time to select subshape and look at it's shapsheet. If I change linepattern to "g" or sth. it works somehow.
Title: Re: 2 colors callout line
Post by: vojo on January 22, 2014, 03:50:39 PM
Another way to go is to modify Junes old stuff so that you can set the background color as well as foreground

so here is a trivial solution based on Junes stuff is attached

- select the connector attached
- select a color of interest
- right click and set color to front line or back line
- select a different color of interst
- right click and set color to back line or front line

Title: Re: 2 colors callout line
Post by: kiler40 on January 23, 2014, 08:32:28 AM
this connector is basically 2 lines combined into one.
i`ve took the idea and put it into place.

Thanks for the help.
Title: Re: 2 colors callout line
Post by: vojo on January 24, 2014, 09:14:08 PM
the real trick is that the line calculations are taken care for you by those lines / Junes stuff.

That is the sizzle of it