Visio Guy

Visio Discussions => ShapeSheet & Smart Shapes => Topic started by: JleruOHeP on December 27, 2012, 07:51:38 AM

Title: Disable glue for specific shape
Post by: JleruOHeP on December 27, 2012, 07:51:38 AM
Hi!
Can you help me - how can I disable glue for specific shape? It is little complicated as for document I set GlueSettings to visGlueToGeometry...
So for all shapes glue must be enabled for any point, and for specific shapes (of given master) glue must be disabled.
Is it possible?
Title: Re: Disable glue for specific shape
Post by: vojo on December 28, 2012, 05:01:12 AM
gluetype cell in shape sheet

something like
   gluetype = if(<condition to glue>,0,8)
Title: Re: Disable glue for specific shape
Post by: JleruOHeP on December 28, 2012, 06:47:06 AM
Unfortunatelly, it did not help...
Title: Re: Disable glue for specific shape
Post by: Surrogate on December 28, 2012, 09:32:08 AM
you mean glue between specific shapes or between specific shapes and connectors ?

if between shapes you can try in cell Type / C
(http://odnoznachnost.narod.ru/forum/glue.png)
if both shapes have same values in this cell then they cann't glue
Title: Re: Disable glue for specific shape
Post by: JleruOHeP on December 28, 2012, 11:04:11 AM
Thanks for your answer, but no, it is between shape and connector.
Any thoughts?
Title: Re: Disable glue for specific shape
Post by: vojo on December 28, 2012, 07:10:17 PM
apologies on miss direction

FYI...if a shape with connectors is in a group, there is cell at the group level that will turn off all subshape connector points.
I forget the name but its in the section of group attributes....middle column....bottom row I think
Title: Re: Disable glue for specific shape
Post by: JleruOHeP on December 29, 2012, 06:07:25 AM
Thank you very much, vojo! this is it!
This property is IsSnapTarget in GroupProperties
Title: Re: Disable glue for specific shape
Post by: JleruOHeP on January 16, 2013, 01:25:41 PM
Found another, better solution - without groups!
There is Geometry.NoSnap property. I discribed this solution here: http://jleruohep.blogspot.ru/2013/01/how-to-disable-glue-in-visio.html
Title: Re: Disable glue for specific shape
Post by: Paul Herber on January 16, 2013, 01:33:43 PM
That doesn't stop glueing though, it might change the way connectors snap and glue to the shape, but depends very much on your global Snap & Glue settings.
Title: Re: Disable glue for specific shape
Post by: Paul Herber on January 16, 2013, 01:36:00 PM
Try creating a layer (call it noGlue or something), set the layer properties to NoGlue and put the shape on that layer.
Title: Re: Disable glue for specific shape
Post by: JleruOHeP on January 16, 2013, 02:01:21 PM
Thanks for another option!
Browser ID: smf (is_webkit)
Templates: 1: Printpage (default).
Sub templates: 4: init, print_above, main, print_below.
Language files: 1: index+Modifications.english (default).
Style sheets: 0: .
Hooks called: 76 (show)
Files included: 25 - 925KB. (show)
Memory used: 746KB.
Tokens: post-login.
Cache hits: 8: 0.00155s for 22,304 bytes (show)
Cache misses: 1: (show)
Queries used: 11.

[Show Queries]