News:

Happy New Year!

Main Menu

Connection points in master shape not working

Started by danielj, September 19, 2024, 11:16:38 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

danielj

I'm trying to create a master shape, Device, that has several connection points along it's edges.  The Device shape is a rectangle with some additional components inside of it.  I've created this master shape, added the connection points.  Here's a closeup of the corner where I have two connection points placed, both set to "Inward":


I have another master shape, Port, that I'd like to have connect to these points.  The connectors are set to Outward:


My idea is to have a generic Device shape, connect several of the Port shapes to it, then have some controls that allow the user to hide/show ports.  The goal is to have a single master shape that I can use on network diagrams, with various configuration options so the user can represent different device types with different port configurations easily, and maintain consistent placement and formatting. 

However, I can't seem to get the two shapes to connect to each other, but I can get lines to connect to these connection points.  What am I missing here?

Yacine

sounds legit. Upload a file with the shapes. We can have a look.
Yacine

wapperdude

#2
Three things... 
When gluing 2D shapes, connection points will glue when an outward point is moved to another shape's inward connection point.  Not visa versa.  Thus, the stationary shape must have inward connection points.

Make sure that gluing to connection points has strong "snap" strength.  Access is via GUI > View Tab > Visual Aids section > Advanced Tab => set Points slider to high value, e.g., 30

Visio determines that the connection point receiving the primary focus is the one closest to where the mouse grabs the shape for dragging.

The 1st two points require setting changes.  The 3rd one requires being aware of how you grab the shape.

Add edit (9/23/24):  A 4th point to know...when gluing a 2D shape to another, even though multiple connection points may simultaneously align, only one may/can/will possibly glue. 
Visio 2019 Pro

danielj


miless2111s

out of interest is there a reason not to make the connections in/out (setting 2)?

danielj

it didn't work as expected when I was experimenting with it, but that's probably more that I didn't know what to expect.

wapperdude

Yes.  Type 2 connection points can be used.  See attached...
Visio 2019 Pro

Browser ID: smf (possibly_robot)
Templates: 4: index (default), Display (default), GenericControls (default), GenericControls (default).
Sub templates: 6: init, html_above, body_above, main, body_below, html_below.
Language files: 4: index+Modifications.english (default), Post.english (default), Editor.english (default), Drafts.english (default).
Style sheets: 4: index.css, attachments.css, jquery.sceditor.css, responsive.css.
Hooks called: 253 (show)
Files included: 34 - 1306KB. (show)
Memory used: 1120KB.
Tokens: post-login.
Cache hits: 13: 0.00157s for 26,543 bytes (show)
Cache misses: 3: (show)
Queries used: 16.

[Show Queries]