Visio Guy

Visio Discussions => Programming & Code => Topic started by: Visionary on May 19, 2011, 04:21:31 AM

Title: Visio 2010 - Cross Functional Flowchart or Swimlane Resizing Automatically
Post by: Visionary on May 19, 2011, 04:21:31 AM
I'm using Cross Functional Flowchart or Swimlane in my process mapping. But I wanted to maximize the space, thus squeezing the function block as much as I can. But I can't do this as Visio is automatically calculating the function's height, and I can still see some more blocks that I can squeeze in.

How can I manually control the height and width of my swimlane?

Thanks.  :)
Title: Re: Visio 2010 - Cross Functional Flowchart or Swimlane Resizing Automatically
Post by: HaroldTheBear on June 13, 2011, 01:52:03 PM
Same issue in Visio 2010.  I want to manually size swimlane height and have the selected height 'stick' and not smoosh around.

I suspect that there is a setting that I am missing, but have not found it.

Best, Harold ...
Title: Re: Visio 2010 - Cross Functional Flowchart or Swimlane Resizing Automatically
Post by: Visio Guy on June 20, 2011, 01:41:03 PM
I haven't tried this, but I did notice that when you record a macro, Visio disables DiagramServices (whatever that is.)

Perhaps this turns off the auto-recalc of swimlanes and other containers?

Sub Macro1()

  'Enable diagram services
  Dim DiagramServices As Integer
  DiagramServices = ActiveDocument.DiagramServicesEnabled
  ActiveDocument.DiagramServicesEnabled = visServiceVersion140

  '...do something

  'Restore diagram services
  ActiveDocument.DiagramServicesEnabled = DiagramServices

End Sub
Title: Re: Visio 2010 - Cross Functional Flowchart or Swimlane Resizing Automatically
Post by: Paul Herber on June 20, 2011, 03:59:00 PM
I just happened to look at this today ...
http://msdn.microsoft.com/en-us/library/ff765437.aspx (http://msdn.microsoft.com/en-us/library/ff765437.aspx)
Title: Re: Visio 2010 - Cross Functional Flowchart or Swimlane Resizing Automatically
Post by: kahlerfj on March 29, 2012, 06:37:08 PM
I was having the same issue and I just realized that if I set the margin to zero, found in the Cross-Functional Flowchart ribbon, I can fully control the size of the swim lanes. 
Title: Re: Visio 2010 - Cross Functional Flowchart or Swimlane Resizing Automatically
Post by: Boonsie on July 19, 2013, 04:26:40 AM
Quote from: kahlerfj on March 29, 2012, 06:37:08 PM
I was having the same issue and I just realized that if I set the margin to zero, found in the Cross-Functional Flowchart ribbon, I can fully control the size of the swim lanes.

Hi! Your suggestions works!! I was trying to resize the swimlane for hours!!
Thank you for sharing.