Visio Guy

Visio Discussions => Shapes & Templates => Topic started by: davidoff on February 04, 2009, 09:50:23 PM

Title: Unlock Visio's Default Shape /Layer Properties
Post by: davidoff on February 04, 2009, 09:50:23 PM
Dear All,
is there any way to unlock the Shape Protection for default shapes from standart stencils ?

thanks
Title: Re: Unlock Visio's Default Shape /Layer Properties
Post by: Paul Herber on February 05, 2009, 09:57:02 AM
Best way I can think of is to create a handler for the ShapeAdded event, when the shape gets added to the page you can then change the shape protection.

The standard stencils are not editable, unless you copy them to a new location, then do any editing and move them back.

Title: Re: Unlock Visio's Default Shape /Layer Properties
Post by: Visio Guy on February 05, 2009, 12:01:47 PM
Merhaba davidoff,

Paul brings up a big question: Do you want to edit the standard stencils themselves, or just masters/shapes that have been dropped on a page?

For shapes, there are several things to look for. You probably know this, but just in case someone else is reading this, I'll go into more detail:

At the group level, you have the Protection.LockGroup cell, which prevents sub-shapes from being deleted (and drives shape developers crazy!)

For sub-shapes, there is Protection.LockDelete.

So you have to think about the group-level and the sub-shape level.