Re: Ungroup a nested group

2013-03-25 Thread Geoff Canyon
yep, that should do it. On Mon, Mar 25, 2013 at 1:31 PM, Peter Haworth wrote: > Thanks Geoff. I inadvertently confused things in my last email by using > "delete" instead of "ungroup". Ungroup of a nested group is what I need > to do and using the relayerGroupedControls approach seems to wor

Re: Ungroup a nested group

2013-03-25 Thread Peter Haworth
Thanks Geoff. I inadvertently confused things in my last email by using "delete" instead of "ungroup". Ungroup of a nested group is what I need to do and using the relayerGroupedControls approach seems to work fine. Pete lcSQL Software On Mon, Mar 25, 2013 at 10:38 AM,

Re: Ungroup a nested group

2013-03-25 Thread Geoff Canyon
yep, that's what I did in navigator way back when: set relayergroupedcontrols to true, make the changes by assigning layers (which can be tricky) and you're set. If you're deleting, I'm not sure you even need to do that. Delete group "" should work regardless of how many groups "" is nested in. gc

Re: Ungroup a nested group

2013-03-25 Thread Peter Haworth
Hi Geoff, In my lcSTackBrowser utility I want to provide the ability to delete a nested group. Someone just sent me a solution using relayergroupedcontrols which feels much safer than the method I mentioned. Pete lcSQL Software On Mon, Mar 25, 2013 at 7:53 AM, Geoff Canyo

Re: Ungroup a nested group

2013-03-25 Thread Geoff Canyon
What are you trying to accomplish? I've always used layers to move things into and out of groups. gc On Sun, Mar 24, 2013 at 5:47 PM, Peter Haworth wrote: > What seems to work in a script is to start editing each owning group until > you reach the one containing the group to be ungrouped, ungr

Re: Ungroup a nested group

2013-03-24 Thread Peter Haworth
What seems to work in a script is to start editing each owning group until you reach the one containing the group to be ungrouped, ungroup it, then stop editing its owning group. I'm nervous though. I've found that the world of editbackground mode is a weird and wonderful place. No matter how ma

Ungroup a nested group

2013-03-24 Thread Peter Haworth
Unless I'm missing something, it looks like the ungroup command doesn't work on nested group, i.e. one that is owned by another group. The ungroup command doesn't return an error either. It feels like the only way to do this is to ungroup all the owning groups first but that seems fraught with da