Pages

Friday 29 July 2011

Skeeper - keep you selection (little macro)

In this post I would like to demonstrate a little macro which allows you to remember certain group of shapes without grouping them.

Skeeper



SKeeper creates collections of shapes/objects which can be added to selection.
It put a registry to shape's name attribute (you can see it in Object Manager). When you click on the list with groups names it finds all shapes with the same record and adds them to selection.

Registry/records looks like this :    SK:[groupName]
where [groupName] will appear in the SKeeper list box

You can put anything in the object's name property, just keep SKeeper record at the end.

The limit is that the groups cannot overlap, in other words object can only belong to one group. Therefore current group record will be replaced with new one.

The macro uses CQL (Corel Query Language) to search for shapes.
for example:
...
ActiveDocument.SelectableShapes.FindShapes(, , , "@name.Contains('SK:')")
...
 first 3 parameters are omitted (notice empty spaces between commas) and last parameter is a String  representing the CQL syntax.
See this article for more details:
Using CQL

Feel free to use this macro (in your company or home), look at the code if you like, leave comment, ask a question.

Gms file to download:
SKeeper.gms

You might be interested in more featured  similar macro, see:
http://www.oberonplace.com/products/selmgr

2 comments:

  1. Published its Macro Blog, as authorized by email. I am grateful. So you give will be publishing another. power Duplicate

    I hope you enjoy the post.

    ReplyDelete
  2. As we know there are many companies which are converting into Big data banking analytics with the right direction we can definitely predict the future.

    ReplyDelete