Visio Guy

Visio Discussions => General Visio => Topic started by: xiamen168 on July 15, 2015, 07:49:03 AM

Title: could you like to help me to change a stencil?
Post by: xiamen168 on July 15, 2015, 07:49:03 AM
can someone to help me change triangle  in s.vsd to circle and diamond,
thanks!!!
Title: Re: could you like to help me to change a stencil?
Post by: Surrogate on July 15, 2015, 10:07:42 AM
i can change to diamond (look at attachment)
circle it is real HARDCORE, IMHO only Junichi Yoda can do it !

Title: Re: could you like to help me to change a stencil?
Post by: xiamen168 on July 15, 2015, 10:20:15 AM
thanks!!!
Title: Re: could you like to help me to change a stencil?
Post by: JohnGoldsmith on July 15, 2015, 02:19:50 PM
@surrogate - you can't go around throwing down challenges like that :)

Here's another one attached....

Best regards

John
Title: Re: could you like to help me to change a stencil?
Post by: Surrogate on July 15, 2015, 02:41:13 PM
JohnGoldsmith ellipse in Geometry section very difficult for my mind ! Thanks for advice :)
Title: Re: could you like to help me to change a stencil?
Post by: JohnGoldsmith on July 15, 2015, 03:36:43 PM
It would probably be more helpful if the cells were named something other than ab, cd.

I did a post a while ago with an image showing what they correspond to:

http://visualsignals.typepad.co.uk/vislog/2011/02/dot-grid-backgrounds.html

Best regards

John
Title: Re: could you like to help me to change a stencil?
Post by: Yacine on July 15, 2015, 05:54:11 PM
@John
1)
Quoteyou can't go around throwing down challenges like that
LOL
2) Behance's action books are very cool. https://www.youtube.com/watch?v=QHszuY6FL2U
Title: Re: could you like to help me to change a stencil?
Post by: wapperdude on July 15, 2015, 08:42:37 PM
Is the party over?  Is the challenge still open?   ;)

Only addressing the circular "pot belly" version...that was the challenge, attached has 3 variations.  Two implement using a single geometry section, the 3rd uses a dual section.  One has the "belly" size proportional to line length.  One forces shapesheet edit to change size...less User tampering, and the 3rd uses shape data, easily accessible by double clicking.

None allow you to change shape size by dragging the shape height.

Wapperdude
Title: Re: could you like to help me to change a stencil?
Post by: JohnGoldsmith on July 15, 2015, 09:23:04 PM
Very nice.  I missed the connection points in the image.  Good solution....I wonder if there'll be more?

Best regards

John
Title: Re: could you like to help me to change a stencil?
Post by: wapperdude on July 15, 2015, 11:12:11 PM
Thanks John.

I can think of a couple additional variations...  hopefully others will join the fun!

W
Title: Re: could you like to help me to change a stencil?
Post by: xiamen168 on July 16, 2015, 01:54:15 AM
a new needs,
please help me ,thanks!
Title: Re: could you like to help me to change a stencil?
Post by: xiamen168 on July 16, 2015, 05:14:50 AM
a new needs,
please help me ,thanks!

how to change line type?
Title: Re: could you like to help me to change a stencil?
Post by: wapperdude on July 16, 2015, 06:29:26 PM
This takes considerably more work...at least in V2007, not sure that newer versions make this any easier...I doubt it.

So, I think it takes a modified approach, as this cannot not be done "directly".  That is, maintain connection 1D connection points at the begin & end of the line segment.  To do this, my approach would be to make a complex, grouped shape.  The shape consists of grouping a regular connector shape with the shape done by John Goldsmith, for example.  I suggest his shape as he's already incorporated the "3-belly" selection feature.

The connector shape must be modified to show no lines.  That way, when the group line features are modified, all that is visible will be John's shape.  John's shape must be modified:
1.  Behavior set to 2D, not 1D.  This eliminates the extra connection endpoints.

Then, either add two more shapes or modify John's shape such that there is a short, vertical line segment going between the begin points of the connector shape and John's shape and likewise the endpoints.  These are necessary to avoid modifying the "height" cell in John's shape.  To do so would disrupt some of the built-in functionality.

Hope this helps.

Wapperdude
Title: Re: could you like to help me to change a stencil?
Post by: wapperdude on July 16, 2015, 08:38:30 PM
There were some unforeseen caveats with the grouping and vertical line segments which complicated the implementation.

Attached is a modified version of my proposed circular shape.  The connector was first converted to a group, and then the actual shape was added to the group.  The connector still has showing lines set to "noshow".  A test condition was needed when the connector begin and end are at the same vertical level.  Hmmmm.  Did not try when both set to same horizontal position.

Uses double click to easily access shapedata to set shape size.  Uses right click menu to select shape style:  straight line, circle, triangle, diamond.  Each is a separate geometry section.

Wapperdude
Title: Re: could you like to help me to change a stencil?
Post by: wapperdude on July 16, 2015, 09:34:26 PM
Corrected the left - right orientation issue.  The special case for a vertical line, not fixed.

Wapperdude
Title: Re: could you like to help me to change a stencil?
Post by: vojo on July 16, 2015, 10:43:32 PM
Ok guys...I may not be the sharpest tool in the shed...but why would you NOT do this:
1. Circle/Square/etc  (BTW, you could get slick have three and see number 4
2. 2 separate connectors attached where you want them (if number 4  then, make sure connector points on shape line up)
3. Group all
4. Use group level custom props to config shape
    - say pick circle...and set geometry nofill and noline to true for square and such (I have done this alot in 2003 so its fine)
    - say pick connector thickness or color....set in connector or group fill
    - etc
5. Go to group format and set children first
6. Can hide group handles if you want in the group shape sheet.

What am I missing?   Tune me up, guys.
Title: Re: could you like to help me to change a stencil?
Post by: xiamen168 on July 17, 2015, 02:17:22 AM
can add a square shape in WithBelly2.vsd for me?

THANKS!!!
Title: Re: could you like to help me to change a stencil?
Post by: wapperdude on July 17, 2015, 03:17:24 AM
Yes, sometime tomorrow.
Title: Re: could you like to help me to change a stencil?
Post by: xiamen168 on July 17, 2015, 04:34:05 AM
Best regards
Title: Re: could you like to help me to change a stencil?
Post by: wapperdude on July 17, 2015, 01:49:46 PM
Here's version with square.  I've also added a control point to move the shape vertically.

Wapperdude
Title: Re: could you like to help me to change a stencil?
Post by: wapperdude on July 17, 2015, 05:17:05 PM
@Vojo:

Vojo, you make valid point of using the traditional group structure.  So, why this alternative path?

1.)  Initially, it was just an embellishment to an existing shape, which John Goldfield did very well.  But, then, it morphed, and rather than just a "straight" in/out, there was now a right angled scenario.  I think my frame of mind was just to adapt the existing work.

2.)  Both approaches use grouping. There is some difference in effort, but, by-and-large, the bulk of the effort (shapesheet coding for group criteria) is the same.  The shapesheet formulas to switch between circle, triangle, etc. is still the same.

3.)  The upside of the approach I adopted:
       a.  Only two shape levels...the group and a single subgroup shape.  That makes the overall implementation a little more efficient I think, but not significantly.
       b.  It is a "single" entity from a connectivity standpoint.  That is, it looks like a single connector.
       c.  There is no need to do multiple selections:  members vs group.
4.)  The downside of the approach:
       a.  The need to "code" multiple geometry sections in the subgroup shape.  That takes more thought and more time.  Less intuitive.  Not an approach a casual user might take?
       b.  "Orientation" issues, e.g., the case when perfectly vertical orientation is desired.  That does require a lot more effort, but, was not a stated objective. 

5.)  The upside of the traditional, grouped shaping that you identify: 
       a.  more intuitive in its physical implementation, i.e., each shape is a separate subshape
       b.  easier to drag and move the subshape, both horizontally and vertically.  Although, that wasn't a requirement if I remember correctly.
       c.  easier to change shape orientation
6.)  The downside of this approach:
       a.  From a connectivity perspective, it is two connectors with an intervening shape.  Not a single connector end to end.
       b.  More shape "clicking"
              I.  each connector must be individually selected to move its free end
             II.  another click necessary to select the group shape to access the group functions:  e.g., type of shape (circle, square), size of shape

7.  Both allow user to apply all of the GUI formatting features on the menu bar (ribbon).

Both approaches work.  Both approaches have merits and both have weaknesses.

HTH
Wapperdude
Title: Re: could you like to help me to change a stencil?
Post by: xiamen168 on July 20, 2015, 12:52:51 AM
It is very useful!
thank you very much!!!
Title: Re: could you like to help me to change a stencil?
Post by: xiamen168 on July 20, 2015, 08:46:48 AM
@wapperdude

could you like to help me to change
the shape(circle,triangle,diamond,square) size in hi.vsd file,
Reduced to 1/4 the size

best regards!
Title: Re: could you like to help me to change a stencil?
Post by: xiamen168 on July 20, 2015, 09:04:40 AM
i found a good method ,
double click shape can to change shape size!
thanks!!!
Title: Re: could you like to help me to change a stencil?
Post by: xiamen168 on July 20, 2015, 09:35:54 AM
hi @wapperdude

a new question,
can be made multi angle?

regards!
Title: Re: could you like to help me to change a stencil?
Post by: vojo on July 20, 2015, 12:30:42 PM
FWIW....take these apart and see how down (very tedious)....June the 2nd has alot of good examples these are based off of
Title: Re: could you like to help me to change a stencil?
Post by: wapperdude on July 20, 2015, 08:28:39 PM
This is beginning to evolve into a much more complex shape.  Yes, I guess it could be done with the existing approach, but, not sure that's really the best way to go as it requires increasing user interaction.
Title: Re: could you like to help me to change a stencil?
Post by: xiamen168 on July 21, 2015, 01:02:17 AM
@wapperdude @vojo ,
sorry I still do not understand, can you help me to modify it (hi.vsd)
regards!
Title: Re: could you like to help me to change a stencil?
Post by: xiamen168 on July 21, 2015, 09:54:20 AM
 :'( :'( :'(
or like this style
who can help me?
regards!
Title: Re: could you like to help me to change a stencil?
Post by: wapperdude on July 21, 2015, 09:11:11 PM
Updated the shape.  Add control point to move a 2nd corner.  Only one corner.  May be before or after shape.  The control automatically switches as you move it.  If the control is
"centered" on the shape, it will not add a corner.   See attached file.

Did not do much testing, so there may be some quirks.

Wapperdude
Title: Re: could you like to help me to change a stencil?
Post by: wapperdude on July 21, 2015, 10:15:31 PM
Corner control now behaves itself if shape is flipped left/right.

wapperdude
Title: Re: could you like to help me to change a stencil?
Post by: xiamen168 on July 22, 2015, 01:35:19 AM
@wapperdude
How do I reduce the size of this part
best regards!!!
Title: Re: could you like to help me to change a stencil?
Post by: wapperdude on July 22, 2015, 01:58:41 AM
There is a (yellow) control point at the "output" side of the shape, drag it upward (or downward to make the vertical line longer).  If you hover the mouse over the control point, a description will pop up.

If you drag the control point to either the begin point (or the end point), you'll get a horizontal line leading into the shape.

Wapperdude.

Edit:  note, this control only affects the vertical position.  It does not change the horizontal position.  This was done by choice, so you can do exactly what is described above and not change the horizontal position of the shape.  There is another control which affects the horizontal position only.
Title: Re: could you like to help me to change a stencil?
Post by: xiamen168 on July 22, 2015, 02:21:19 AM
but if change by (yellow) control point,
the outside part of red circle also be changed
i want change to red circle part only.
Title: Re: could you like to help me to change a stencil?
Post by: wapperdude on July 22, 2015, 02:31:59 AM
If you raise the control point, the line segment inside the red circle will get shorter and that will cause the other vertical segment to the right to become longer.  That's all that changes, but both of those have to change to keep the horizontal line, uh, horizontal.  The only other choice is to move the begin point.

Am I missing something?  That's how orthogonal systems work.
Title: Re: could you like to help me to change a stencil?
Post by: vojo on July 22, 2015, 06:01:59 PM
sorry...but not going to do it for you....old adage about fishing and food.

hint, the connector is really a group, go into subshape, see the complex geometry formulas there
Title: Re: could you like to help me to change a stencil?
Post by: xiamen168 on July 23, 2015, 12:53:39 AM
thanks everyone!
i will research it myself,
but where is subshape?

Title: Re: could you like to help me to change a stencil?
Post by: Surrogate on July 23, 2015, 04:32:06 AM
Captain Obvious© said: Group or parent shape contain sub-shapes!
Title: Re: could you like to help me to change a stencil?
Post by: xiamen168 on July 23, 2015, 09:10:46 AM
thank you very much!