ExpandLogicalSelection Method

Build 1501 on 14/Nov/2017  This topic last edited on: 23/Mar/2016, at 12:14

Description

Adds to the current selection all other objects that are marked as created from a library object, or as a logical group.

Available in version 1.5 or newer.

When you create a layout by placing a library object on a page, the internal group name of the library object get saved in all created objects. By means of that group name, you can tell if objects were created from a library object.

As an extension of the above functionality, it is possible to create a logical group of objects that share the same string key as a group name.

When a single object is selected, it is possible to expand the selection on all the objects with the same key (Page.ExpandLogicalSelection(True)).

When nothing is selected in page and you press and hold Shift while clicking on an object, Fred attempts to select all members (if any)

Syntax

Page.ExpandLogicalSelection (boolFromLibOnly)

boolFromLibOnly

If True, it will select only objects created from a library object; otherwise, it will select objects belonging to the same logical group

Remarks

If the selected object does not belong to a logical group, the selection is not expanded.

Context

Page designer

All commands/scripts related to library objects

AddLibObj Method

AddLibObjId Method

BrowseLib Script

ExpandLogicalSelection Method

LibAddTo Method

LG_LibGroupId

LG_LibName

LG_LibObjName

ObjSetFromLib Method

ObjSetLogicalGroup Method

OnLabelTedExtra Script

SetTedExtraLibMode Method

TestIsTedExtraLib Method