Visio Guy

Visio Discussions => Shapes & Templates => Topic started by: djroulette on April 19, 2020, 10:35:50 PM

Title: Container Margins and Container Expansion
Post by: djroulette on April 19, 2020, 10: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?
Title: Re: Container Margins and Container Expansion
Post by: Visio Guy on April 20, 2020, 09: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!
Title: Re: Container Margins and Container Expansion
Post by: djroulette on April 25, 2020, 06:42:02 PM
Perfect!!  I also had to set the User.msvSDContainerResize = 0.