Break line pair (Roadway break), free movement, transparent lines in between

Started by Ricky78, March 24, 2025, 09:24:03 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Ricky78

Hi, I started using the break line pair "PathCutIndicate2.vsdx" and it works great. NOW, I would like just one of the break lines and a Callout as shown in the pictures attached. I like how the lines line up with the break line. The callout should ideally be movable and maybe rotate so that the label is horizontal. Who can assist with  this? Thanks so much

PS: It's a bit quiet in this forum so I thought I put some requests out there again  ;D ).

wapperdude

Couple questions...
1) You need a Callout added as there is none now.
2) How should text be added to Callout...direct entry, ShapeData?
3) Do you want option to hide the Callout?
4) Will text always be simple?
5) Does Callout need to grow with text, or text shrink to always be within callout?
6) By "horizontal", you mean normal reading regardless of how the shape may be oriented?
Visio 2019 Pro

Ricky78

1) Yes, a Callout added as there is none now.
2) Direct text entry is fine
3) Hide option for the Callout would be nice
4) Yes, always simple text like A, B
5) Text always within callous, Callout adjustable in size (handle or similar)
6) Yes, Text in normal reading orientation regardless of shape orientation

A nice additional feature would be if the callout could be used as an on page reference, if I click on the callout it will jump to the other callout with the same Text (A to A). Just an idea not super important.

wapperdude

Ok.  This is mostly straightforward.  I have the basic solution completed.  However, I want to mention pros/cons about text entry method, and checking for hyperlink is under consideration.

Text Entry:  as background, the structure of this shape is a group.  The "callout" is a sub member (child) in this group. 

Direct text entry may mean either of two things:  1) select the top-level, i.e., the group shape and enter text, or, 2) select the callout shape, usually a 2nd click select, and then type text.  It depends upon shape behavior setting to determine how the child shape is selected.  Your choice.  The caveat with method 1 is that it forces all top-level text entry into the callout.

Indirect entry:  would entail a quick, double click of the top shape, which would invoke simple Shapedata form to enter text.  Type value, hit return.  Advantage is that it frees up top level shape for additional, informational text if desired.  There is no potential shape selection confusion.

Sorry for not being more specific earlier.  Your choice?

Before I look into the hyperlink feature, it may require a macro.  Is embedding code OK?
Visio 2019 Pro

wapperdude

As I think about it, the 2nd direct method is the most consistent with the Hyperlink functionality request.

The shape is basically built, except for the linking option.
Visio 2019 Pro

wapperdude

See attached for updated shape.  Page 2 has the new shape.
Features:
    1)   Callout easily placeable using Control Point
    2)   Text / hyperlink may be added after selecting Callout shape
    3)   Callout text is always right reading.
    4)   Callout, plus Control Point may be hidden with right click context menu, Main shape.
    5)   Callout resizes with text; minimum size is 6 pt.
Hyperlink is manually created per normal methods.  To search for "matching" hyperlink requires code development.
Construction:
    1)   On Visio drawing page with main shape.  Draw small circle.  Get shape ID for future reference.
    2)   Select main shape, add circle to selection, add to group.
    3)   Main shape: 
        a.   Open shapesheet
            i.   Add Actions section rows to control visibility:  show / hide
            ii.   This will be used to toggle visibility of
                1.   The Callout circle
                2.   Callout circle text
                3.   Callout circle control point
                4.   Uses User.HideCO as Boolean value place holder.
        b.   add control point,
            i.   for reference, name it "posCO".
            ii.   X-Behavior show / hide:
                1.   If visibility is hide, set value = 9
                2.   If visibility is show, set value = 0
    4)   Circular Callout Child shape:
        a.   Open shapesheet of circle
            i.   Set PinX = cntl pt pinx
            ii.   Set PinY = cntl pt piny
            iii.   In Misc Section, set Hide Text based on value of Main shape Action
                1.   If Hide, value =1 or TRUE
                2.   If Show, value=0 or FALSE
                3.   Example:  =Sheet.19!User.HideCO, where sheet.19 is main, top level shape
            iv.   Likewise, Geometry1 section, set the Geometry1.NoShow cell
            v.   To control circle size
                1.   Add Text Transform section and set TxtWdith and TxtHeight as shown.
                2.   In the Shape Transform section, set the Width and Height cells as shown.
                3.   Set the Angle cell to make text correct reading vs orientation.
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: 241 (show)
Files included: 34 - 1306KB. (show)
Memory used: 1091KB.
Tokens: post-login.
Cache hits: 14: 0.00227s for 26,600 bytes (show)
Cache misses: 3: (show)
Queries used: 16.

[Show Queries]