Visio Guy

Visio Discussions => Shapes & Templates => Topic started by: Nikolay on February 26, 2020, 03:26:26 PM

Title: disable connections for a shape
Post by: Nikolay on February 26, 2020, 03:26:26 PM
Looks like a very simple question but don't know the answer  :(

How do I disable connections for a specific shape?

So that user can't connect dynamic connector to it (so that the shape does not show any "hover" when he tries to)
For example, if I convert a 2D shape into 1D, then the dynamic connector does not try to "glue" to it. Is it possible to have the same behavior while keeping the shape 2D?
So that the shape is completely ignored by all dynamic connectors, like it does not exist.

I thought about putting the shape on a separate later... or maybe there is an easy solution, like setting some cell in the ShapeSheet?
Title: Re: disable connections for a shape
Post by: Yacine on February 26, 2020, 03:59:42 PM
I would only know of the layer solution. Sorry.
Title: Re: disable connections for a shape
Post by: wapperdude on February 26, 2020, 04:28:30 PM
In shapesheet, Misc Section, try setting Object Type = 4.
Title: Re: disable connections for a shape
Post by: Paul Herber on February 26, 2020, 05:35:59 PM
You could put the shape on a background page.
Title: Re: disable connections for a shape
Post by: Nikolay on February 26, 2020, 06:17:40 PM
Quote from: wapperdude on February 26, 2020, 04:28:30 PM
In shapesheet, Misc Section, try setting Object Type = 4.

I have tried that, does not seem to work? Maybe the drawing is somewhat special (attached)?  ???
Setting "Do not lay out and route around" is exactly setting ObjectType = 4, as far as I understand?

(click the picture to view the animation)
Title: Re: disable connections for a shape
Post by: Nikolay on February 26, 2020, 06:20:28 PM
Quote from: Paul Herber on February 26, 2020, 05:35:59 PM
You could put the shape on a background page.

Dear Paul, thank you for the advice, unfortunately not an option (all shapes are supposed to be on the same page in my case)
Title: Re: disable connections for a shape
Post by: wapperdude on February 26, 2020, 09:16:59 PM
Really weird.  Your XXX shape has this special affinity for your rectangle. 

Tried a normal connector from GUI, and it does not glue.  Drew a rectangle, set to the "4" option, and neither the connector nor the XXX shape would glue. 
Title: Re: disable connections for a shape
Post by: Nikolay on February 26, 2020, 11:49:37 PM
Yea. I've tried ObjType=4 with standard dynamic connector. Seems to work properly for dynamic connect actually, you are right!
I thought the behavior should be the same for all connections. Looks like this one is indeed somehow special.. :o
Title: Re: disable connections for a shape
Post by: bmwk100dk on February 27, 2020, 08:37:12 AM
Hi Nikolay
maybe this could be of use http://www.visguy.com/2016/07/12/no-glue-to/ (http://www.visguy.com/2016/07/12/no-glue-to/)
Title: Re: disable connections for a shape
Post by: Nikolay on February 27, 2020, 08:41:52 AM
Oh. Thank you! Sounds just like what I was after. I'll give it a try today!

UPD: checked. It worked! Thank you all.