Visio Guy

Visio Discussions => General Visio => Topic started by: CookieEater200 on December 05, 2022, 08:07:25 PM

Title: colored connector line with black outline
Post by: CookieEater200 on December 05, 2022, 08:07:25 PM
Hello :),

How do I make a yellow connector line with a black outline? (see the attachment)

I asked a similar question before ( black outline with white interior)at http://visguy.com/vgforum/index.php?topic=9893.msg45195 (http://visguy.com/vgforum/index.php?topic=9893.msg45195)

The technique used in the previous post forces the inside of the connector line to be transparent while the outline takes the color selected. That is not what I am attempting to do. Advice please?
Thanks

(//)
Title: Re: colored connector line with black outline
Post by: vojo on December 06, 2022, 01:28:51 PM
based on June stuff
Title: Re: colored connector line with black outline
Post by: CookieEater200 on December 06, 2022, 02:36:26 PM
I really don't see an obvious way to do it by changing the options on the right side of the screen.

The fill doesn't seem to do anything on the connector. When I put the compound type to the double lines with yellow color for the line, it makes a yellow contour. I am aiming for a yellow interior with black contour.

The only sub-optimal hack I can do is to attach multiple rectangles together and change the fill to yellow with a black outline .

Title: Re: colored connector line with black outline
Post by: wapperdude on December 06, 2022, 07:05:14 PM
You can create a custom line type. 
https://support.microsoft.com/en-us/office/add-a-new-fill-pattern-line-pattern-or-line-ends-pattern-bc636108-1fe1-4a24-8ec5-6b7de8b16dca (https://support.microsoft.com/en-us/office/add-a-new-fill-pattern-line-pattern-or-line-ends-pattern-bc636108-1fe1-4a24-8ec5-6b7de8b16dca)

This one has more indepth info by VisioGuy:  http://visguy.com/vgforum/index.php?topic=2506.msg10960#msg10960 (http://visguy.com/vgforum/index.php?topic=2506.msg10960#msg10960)

Attached is simple example.
Title: Re: colored connector line with black outline
Post by: Nikolay on December 06, 2022, 10:16:10 PM
Another "option": a "glow" effect with 1px width black and line color set to yellow. Not perfect, very inefficient, but easy :)
Unfortunately, there is no direct solution to the problem (it's a pity though and makes wiring diagrams problematic)

Custom line type also works fine, but it has other drawbacks (harder to configure/maintain and does not work in my web export :D)
Title: Re: colored connector line with black outline
Post by: CookieEater200 on December 07, 2022, 02:29:19 PM
Thanks to wrapperdude and Nikolay for all the answers!  :D
Title: Re: colored connector line with black outline
Post by: Yacine on December 09, 2022, 08:12:16 AM
The nice thing about line patterns is, that parts colored in pure black (RGB(0,0,0)) can be re-colored when used in the drawing.
All other colors are locked and will not change.
There was something with white, but I can't recall what it was.


This in mind, you can now draw in the pattern an elongated rectangle. Set its filling to pure black and its outline to the darkest possible grey so as to mimic a black - e.g. MSOTINT(RGB(0,0,0),5), or RGB(1,0,0).
Now you've got a line pattern, that you cannot only color in yellow, but any color that the RGB range offers.