Author Topic: Container Margins and Container Expansion  (Read 2836 times)

0 Members and 1 Guest are viewing this topic.


  • Newbie
  • *
  • Posts: 6
Container Margins and Container Expansion
« on: April 19, 2020, 05:35:50 PM »
My goal: Have a container drawn around a room on a set of floor plans, drop custom shapes into this container, generate documents based on shapes inside container.

My problem: Some of my custom shapes I would like to have right against the edge of the container (example: a TV mounted to a wall).  When the shape gets close to the edge of the container, the container changes it size.

My question: How do I set whatever this property is (I'm referring to it as an invisible boarder around the shape) to zero, or tell the container not to change it's size based on the location of shapes?
« Last Edit: April 20, 2020, 04:17:11 AM by Visio Guy »

Visio Guy

  • Administrator
  • Hero Member
  • *****
  • Posts: 1735
  • Smart Graphics for Visual People...n' Stuff
    • Visio Guy
Re: Container Margins and Container Expansion
« Reply #1 on: April 20, 2020, 04:18:42 AM »
Hi djr,

In the ShapeSheet, containers have a margin setting. If you see it in the ShapeSheet, you can set it to 0:

User.msvSDContainerMargin = 0

If the cell/row is not present, it appears that the default is zero anyway!
For articles, tips and free content, see the Visio Guy Website at
Get my Visio Book! Using Microsoft Visio 2010


  • Newbie
  • *
  • Posts: 6
Re: Container Margins and Container Expansion
« Reply #2 on: April 25, 2020, 01:42:02 PM »
Perfect!!  I also had to set the User.msvSDContainerResize = 0.