News:

BB code in posts seems to be working again!
I haven't turned on every single tag, so please let me know if there are any that are used/needed but not activated.

Main Menu

Unlock Visio's Default Shape /Layer Properties

Started by davidoff, February 04, 2009, 09:50:23 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

davidoff

Dear All,
is there any way to unlock the Shape Protection for default shapes from standart stencils ?

thanks

Paul Herber

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.

Electronic and Electrical engineering, business and software stencils for Visio -

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

Visio Guy

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.

For articles, tips and free content, see the Visio Guy Website at http://www.visguy.com
Get my Visio Book! Using Microsoft Visio 2010

Browser ID: smf (possibly_robot)
Templates: 4: index (default), Display (default), GenericControls (default), GenericControls (default).
Sub templates: 6: init, html_above, body_above, main, body_below, html_below.
Language files: 4: index+Modifications.english (default), Post.english (default), Editor.english (default), Drafts.english (default).
Style sheets: 4: index.css, attachments.css, jquery.sceditor.css, responsive.css.
Hooks called: 183 (show)
Files included: 34 - 1306KB. (show)
Memory used: 1061KB.
Tokens: post-login.
Cache hits: 14: 0.00295s for 26,726 bytes (show)
Cache misses: 3: (show)
Queries used: 16.

[Show Queries]