can shapesheet connection name be dynamically changed?

Started by perry59, October 14, 2016, 03:27:42 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

perry59

Kinda hard to explain, but I'll try (attached drawing which makes it pretty clear).
I have a grouped object which represents a portion of a terminal strip. This portion has 3 "incoming" connections and 3 "outgoing".
The designators for each connection can be changed via double clicking the group and bringing up its data.
when I attach a connector to one of these connections, I want to be able query the connector to find out what terminal it is attached to. This normally would be fairly easy, however since the terminal names can be changed I run into problems.
the crux of it is, if the terminal name changes, how can I get the connection point name in the shapesheet to take that value?
i.e. "connections.input" would change to "connections.B" or whatever the terminal name changed to.
is this possible, or do I have to come up with a totally different approach?
Thanks!
what, me worry?

perry59

never mind. I physically moved the connection points to the group shape itself and it made querying a lot simpler. then I just put some custom props in the shape with the same name as the connection points and read those.
what, me worry?

wapperdude

You can change the connection row type, to named, I think.  That allows you to assign a name to each connection point row and to add some text to the "d" cell.  That ought to save adding extra properties.

Wapperdude
Visio 2019 Pro

Browser ID: smf (is_webkit)
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: 170 (show)
Files included: 32 - 1218KB. (show)
Memory used: 1063KB.
Tokens: post-login.
Cache hits: 13: 0.00340s for 26,583 bytes (show)
Cache misses: 2: (show)
Queries used: 17.

[Show Queries]