Visio Guy

Visio Discussions => ShapeSheet & Smart Shapes => Topic started by: dkyndt on February 26, 2019, 06:08:04 AM

Title: Keep connection point on fix place on connector
Post by: dkyndt on February 26, 2019, 06:08:04 AM
Hi all,

I'm already struggling a couple of days with keeping a connection point on a fix position on a connector.

I'm trying to make a smart shape that automatically adjusts depending on the shapedata feeded from a database.
One of my latest thing is that I have 2 connection points and 1 handle that must be 10mm from the begin of the connector and the same that must be 10mm from the end of the connector.
My problem is that they don't stay on the connector, depending on the connector path, they do not stay on the connectors path, and it is also not 10mm (or any other fixed distance)

attached you can find my connector.
Title: Re: Keep connection point on fix place on connector
Post by: Yacine on February 26, 2019, 06:58:29 AM
It won't solve all your problems but you could at least set the X and Y Behavior of the control points to OffsetMin resp. OffsetMax.
Title: Re: Keep connection point on fix place on connector
Post by: wapperdude on February 26, 2019, 02:29:36 PM
Assuming you have V2010 or newer, you can do this with pointalongpath function.  It will take a little work because the function wants % of path, not a fixed amount.  So, the 10mm needs to convert to % of wavelength.

To get an idea, see this:  http://visguy.com/vgforum/index.php?topic=8695.0 (http://visguy.com/vgforum/index.php?topic=8695.0)
Title: Re: Keep connection point on fix place on connector
Post by: dkyndt on February 26, 2019, 07:26:23 PM
This solution worked for me.
Thank you.

(https://i.ibb.co/5MpXDvt/2019-02-26-19h48-52.png)




Quote from: wapperdude on February 26, 2019, 02:29:36 PM
Assuming you have V2010 or newer, you can do this with pointalongpath function.  It will take a little work because the function wants % of path, not a fixed amount.  So, the 10mm needs to convert to % of wavelength.

To get an idea, see this:  http://visguy.com/vgforum/index.php?topic=8695.0 (http://visguy.com/vgforum/index.php?topic=8695.0)