Visio Guy

Visio Discussions => Shapes & Templates => Topic started by: zhuravsky on October 31, 2023, 09:41:14 AM

Title: Custom line ends
Post by: zhuravsky on October 31, 2023, 09:41:14 AM
Is there any way make custom line end with the behavior like standard ones.
In the attached file custom line end has a problem - size of line end goes to zero when line weight is 0 pt. Is it possible to fix this?
Title: Re: Custom line ends
Post by: Surrogate on October 31, 2023, 10:06:41 AM
This post also have some back-story (https://visio-getbb-ru.translate.goog/viewtopic.php?f=5&t=1968&_x_tr_sl=ru&_x_tr_tl=en&_x_tr_hl=ru&_x_tr_pto=wapp)
Title: Re: Custom line ends
Post by: Yacine on October 31, 2023, 12:41:30 PM
I will look later more in depth at that line end.
Meanwhile you could use the standard line end #20 which seem to be identical to your custom stuff.


----


I understood the zero-size problem, but what about the scaling is it wanted?
I'm thinking of using 2 different line ends depending on the size of the line.
If (line.weight<1,use(end2), use(end1))
Title: Re: Custom line ends
Post by: zhuravsky on November 01, 2023, 01:28:51 PM
Thanks to Yacine for an idea with "If (line.weight<1,use(end2), use(end1))"

Standard line end 20 is transparent in the middle, this is why I started playing with custom line ends.