![]() |
#1
|
|||
|
|||
![]()
Hi friends, i am trying to apply the scale with image property to all or selected outlines, i got the solution on the site, but i want to do it with CQL method.
So can any one guide me with this, where can i get more info about CQL method ? "Query:="@outline.type = 'none'" this method works, so how to use it to find outlined objects ?, i tried this way "Query:="@outline.type = 'cdrOutline'" but its not working. |
#2
|
||||
|
||||
![]()
outline.Type()
Returns the string representing the outline type. The possible values are: 'none', 'solid', 'dot-dash', 'enhanced' @outline[.type = 'solid' or .type = 'dot-dash'] => selects shapes with solid and dashed outlines If you want to select all the shapes with outlines try this: Code:
Sub OutlineCQLExample() Dim sr As ShapeRange Set sr = ActivePage.Shapes.FindShapes(Query:="@outline.type <> 'none'") sr.CreateSelection End Sub Code:
Sub OutlineCQLExample() Dim sr As ShapeRange Set sr = ActivePage.Shapes.FindShapes(Query:="@outline[.type <> 'none' and .ScaleWithObject = 'False']") sr.CreateSelection End Sub outline.Width() Returns the width of the outline in points: @outline > {1 pt} |
#3
|
||||
|
||||
![]()
As for help with CQL I find the help file the best, the programming guide also has some good info refer to my post here how to find this: Where to begin with CorelDRAW and VBA
Best of luck, -Shelby |
#4
|
||||
|
||||
![]()
I also have a blog post on CQL: http://forum.oberonplace.com/blog.php?b=2
|
#5
|
|||
|
|||
![]()
Well i cant find CQL in my corel apps HELP, maybe because i have installed help files separately.
And how can i use it to work with powerclip, (applying properties to outlines inside powerclip)?. Well again thanks for guiding me. |
#6
|
||||
|
||||
![]()
Hi.
Can you insert variables into cql queries? I can't seem to find any info on this. Example: shape.Width() myVar = 1 Returns the width of the shape, in the current units of measurements @width > {myVar in} Thanks, John |
#8
|
||||
|
||||
![]()
Ah. I feel stupid. I wasn't thinking of it as a string.
Weird I couldn't find any examples like this though. Thanks Shelby. -John |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Looking for info on method... | ddonnahoe | CorelDRAW/Corel DESIGNER VBA | 7 | 30-08-2009 19:14 |
Method to do INSERT PAGE in VB.NET ? | ljesus7 | CorelDRAW/Corel DESIGNER VBA | 0 | 12-02-2007 19:03 |
Selected object to other page Duplicate method ? | ljesus7 | CorelDRAW/Corel DESIGNER VBA | 5 | 12-02-2007 17:37 |
Is there a property/method to check for shape off page? | Shaddy | CorelDRAW/Corel DESIGNER VBA | 8 | 26-08-2006 14:04 |
SaveAs Method throwing an in consistent error | wbochar | CorelDRAW/Corel DESIGNER VBA | 1 | 20-03-2003 15:37 |