Author Topic: Controlling Resizing in Multiple Grouped Shapes?  (Read 9619 times)

0 Members and 1 Guest are viewing this topic.

Yaz

  • Newbie
  • *
  • Posts: 4
Controlling Resizing in Multiple Grouped Shapes?
« on: June 22, 2009, 12:32:56 PM »
Hi All,

This is my first time trying to make a custom shape in Visio and for my learning experience I'm trying to make a Process shape such as for a data flow diagram, similar to the middle portion of

So right now I have the drawing done, I've created the shape data and linked it to fields.  My problem is that I can't get it to resize how I want.  Right now my shape is a combination of three rectangles (top left, top right, bottom) which may not be the best way (?).  If I resize horizontally it works how I'd like (everything gets resized to scale).  If I resize vertically though everything gets resized as well but I'd like the two top rectangles to maintain the same height (unless somebody has a better solution).  As right now it certainly doesn't look great when it all stretches.

Thanks!

Visio Guy

  • Administrator
  • Hero Member
  • *****
  • Posts: 1737
  • Smart Graphics for Visual People...n' Stuff
    • Visio Guy
Re: Controlling Resizing in Multiple Grouped Shapes?
« Reply #1 on: June 22, 2009, 01:01:35 PM »
Hi Yaz,

You need to manipulate the Pins, LocPins and Height of your sub-shapes.

This article will help:
A SmartShape is Worth 1000 Symbols

For instance, your Counter shape, you might do this (Sheet.1 is the group's ID, yours will be different)

Width = GUARD(Sheet.1!Width - Height)
Height = GUARD(0.125 in) ...or something relatively fixed

PinX = GUARD(Sheet.1!Width)
PinY = GUARD(Sheet.1!Height)

LocPinX = GUARD(Width*1.0)
LocPinY = GUARD(Height*1.0)

The GUARDs are most important for formulas that aren't in the form "Group.ID!WidthHeightPin * Fraction". Non-standard formulas in the Shape Transform section of sub-shapes will get blasted on copy if you don't GUARD them.
For articles, tips and free content, see the Visio Guy Website at http://www.visguy.com
Get my Visio Book! Using Microsoft Visio 2010

Yaz

  • Newbie
  • *
  • Posts: 4
Re: Controlling Resizing in Multiple Grouped Shapes?
« Reply #2 on: June 22, 2009, 01:09:59 PM »
Great, thanks for the quick reply.  I'll read over that article and practice a bit with it and what you put in your post and see how it goes :)

wapperdude

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4882
  • Ideas Visio-lized into solutions
Re: Controlling Resizing in Multiple Grouped Shapes?
« Reply #3 on: June 22, 2009, 02:20:19 PM »
In addition to Visio Guy's answer, you might want to check this site which talks about working with text and controlling shape behavior with text:  http://msdn.microsoft.com/en-us/library/aa200986(office.10).aspx

Wapperdude
Visio 2019 Pro

Yaz

  • Newbie
  • *
  • Posts: 4
Re: Controlling Resizing in Multiple Grouped Shapes?
« Reply #4 on: June 22, 2009, 02:41:55 PM »
Thanks, will check it out also :)

Paul Herber

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3377
    • Paul Herber's website
Re: Controlling Resizing in Multiple Grouped Shapes?
« Reply #5 on: June 22, 2009, 03:09:01 PM »
Hi Yaz,
Just in case you wish to save a bit of time and effort (but for $20) in creating these shapes, we have created a set of  these shapes for SSADM (as well as Sarson-Gane) data flow diagrams for both metric as well as US units and now in 5 languages.
http://www.sandrila.co.uk/visio-dfd/
And they should resize the way you want them to!

<end of advert  :-[>
« Last Edit: May 17, 2010, 02:33:20 PM by Paul Herber »
Electronic and Electrical engineering, business and software stencils and applications for Visio -

https://www.paulherber.co.uk/

Yaz

  • Newbie
  • *
  • Posts: 4
Re: Controlling Resizing in Multiple Grouped Shapes?
« Reply #6 on: June 23, 2009, 10:32:45 AM »
Thanks for all the help fellas.  Got these working properly, learnt a bunch I can use in the future as well that will be very useful.  Great site.