Visio Guy

Visio Discussions => ShapeSheet & Smart Shapes => Topic started by: ronaona on July 05, 2022, 08:37:01 PM

Title: Lock the ports on the perimeter of the master shape
Post by: ronaona on July 05, 2022, 08:37:01 PM
Hello

I was wondering if it is possible to have create a master shape that allows me to move a connection around its perimeter(See that attached picture).

(http://master_.jpg)



I was trying to use some IF FUNCTIONs, but I cant lock my x direction completely.

Example--> =IF(PinX<7 in,0,1)
where 7 represents my max distance(positive x direction) . when i use the IF function,  My connection keep moving after 7 in, and i cant move it  to the original position.
My connection can return to the original position when this moves less than 7 in.

I don't know how to create that restriction around the perimeter of the master shape. I am new using Visio, and I don't have experience with Macros/VBA, but I just need an idea of how i can start working in this project.


Title: Re: Lock the ports on the perimeter of the master shape
Post by: wapperdude on July 06, 2022, 12:45:13 AM
Take a look at the Bound fcn.

Not exactly sure what your after, but from your diagram, it looks like what you really need is point along path:  https://www.google.com/url?q=https://techcommunity.microsoft.com/t5/microsoft-365-blog/the-point-along-path-shapesheet-functions-in-visio-2010/ba-p/237590&sa=U&ved=2ahUKEwjG7fzBheP4AhUuJEQIHWtkDu0QFnoECAgQAg&usg=AOvVaw1_n9QX1XLqv9zfMkKsW6gS (https://www.google.com/url?q=https://techcommunity.microsoft.com/t5/microsoft-365-blog/the-point-along-path-shapesheet-functions-in-visio-2010/ba-p/237590&sa=U&ved=2ahUKEwjG7fzBheP4AhUuJEQIHWtkDu0QFnoECAgQAg&usg=AOvVaw1_n9QX1XLqv9zfMkKsW6gS)

An alternative technique:  https://www.google.com/url?q=https://unmanagedvisio.com/moving-control-point-along-path-in-visio/&sa=U&ved=2ahUKEwjG7fzBheP4AhUuJEQIHWtkDu0QFnoECAcQAg&usg=AOvVaw3CqoEg7WZbGKukAocwm-GO (https://www.google.com/url?q=https://unmanagedvisio.com/moving-control-point-along-path-in-visio/&sa=U&ved=2ahUKEwjG7fzBheP4AhUuJEQIHWtkDu0QFnoECAcQAg&usg=AOvVaw3CqoEg7WZbGKukAocwm-GO)
Title: Re: Lock the ports on the perimeter of the master shape
Post by: ronaona on July 06, 2022, 01:57:13 PM
Thank you,
That is the solution I was trying to find.
I really appreciate your help. Now,  I will try to implement it