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

Can I lock a group so that it cannot be ungrouped (CS+U)

Started by Jennifer, August 05, 2012, 07:29:00 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Jennifer

I cannot find an option either in the Protection options (right-click > Format > Protection) or in the Group section of the shape sheet.

Is there any way to prevent ungrouping?
Using Visio 2019, part of Office 365 on Windows 10

Paul Herber

You can lock the group but the lock can be unlocked.
Electronic and Electrical engineering, business and software stencils for Visio -

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

Jennifer

Do you mean in the same way that I can "protect" a shape from being edited but I can remove the protection?

I want a lock that will prevent the ungroup command (CS+U) from unlocking the group. Like the error message I get when I try to delete a shape that has been protected against deletion.

If I really want to ungroup it, I'll first have to unlock the lock and then ungroup the group.

How to I apply that type of lock?
Using Visio 2019, part of Office 365 on Windows 10

wapperdude

This goes back to the 1st (shapesheet) method I mentioned, unless I'm misunderstanding.  I've attached a sample that shows 4 independent shapes.  Then, all shapes were selected and grouped.  Finally, open the shapesheet of the resulting group shape (which is automatically selected upon grouping).  The LockGroup entry in the Protection section was changed from 0 to 1.  This ought to provide the protection you're looking for.

Wapperdude
Visio 2019 Pro

Jennifer

Duh :-[ My apologies. You did explain that in the other thread. I have been messing with so many options, I misplaced that one. Thanks for the reminder. It seems to be working now.
Using Visio 2019, part of Office 365 on Windows 10

wapperdude

Visio 2019 Pro

Visisthebest

Superuseful this thank you Wapperdude!

Now another question, this is for shapes with CALLTHIS() subs in the Action menu.

I would like to prevent users from Grouping as well, because if they do this unintentionally they can no longer use the functionality as the new group does not have these functions. (and it will cause the users confusion)

Of course I can prevent users from begin able to select shapes, but that causes too many other issues and a terrible UX.

Is this possible at all?
Visio 2021 Professional

wapperdude

Interesting...
If I understand, when a shape has Call This fcn in some action cell, then you don't want that shape to ever be in a group.  Yes?
Visio 2019 Pro

Visisthebest

Visio 2021 Professional

wapperdude

I'm not aware of any shapesheet functionality to do that.  Nor am I aware of a code accessible function.  But, with code, you could sort thru shapes to see if your criteria is met, then check if that shape is part of group, if so, subgroup it.  Maybe some of other members have alternative solutions.
Visio 2019 Pro

wapperdude

Ah!  Your idea of checking PinX, PonY formulas should work fine.
Visio 2019 Pro

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: 324 (show)
Files included: 34 - 1306KB. (show)
Memory used: 1192KB.
Tokens: post-login.
Cache hits: 13: 0.00143s for 26,750 bytes (show)
Cache misses: 2: (show)
Queries used: 15.

[Show Queries]