OberonPlace.com Forums  

Go Back   OberonPlace.com Forums > Developer Forums > VBA > CorelDRAW/Corel DESIGNER VBA

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 11-01-2012, 23:59
gorgo gorgo is offline
Senior Member
 
Join Date: Feb 2010
Posts: 169
Default how to convert all lenses in document to no lens

how can we convert all lenses in document back to a plain shape..no lens effect?
Reply With Quote
  #2  
Old 12-01-2012, 07:42
shelbym's Avatar
shelbym shelbym is offline
Senior Member
 
Join Date: Nov 2002
Location: Cheyenne, WY
Posts: 1,770
Blog Entries: 10
Send a message via ICQ to shelbym Send a message via AIM to shelbym Send a message via MSN to shelbym Send a message via Yahoo to shelbym
Default Clear Lens

Here you go:
Code:
Sub ClearLens()
    ActiveShape.ClearEffect cdrLens
End Sub
-Shelby
Reply With Quote
  #3  
Old 12-01-2012, 09:44
gorgo2 gorgo2 is offline
Senior Member
 
Join Date: Feb 2010
Posts: 107
Default

Quote:
Originally Posted by shelbym View Post
Here you go:
Code:
Sub ClearLens()
    ActiveShape.ClearEffect cdrLens
End Sub
-Shelby
Okay, making this search and find all lens effects in all pages and removing effect. However, this is not quite tuned correctly. Any help? Thanks again Shelby!
Code:
'    Dim s As Shape
Dim sr As New ShapeRange
Dim p As Page, i As Integer
    Dim OrigSelection As ShapeRange
    For i = 1 To ActiveDocument.Pages.count
            ActiveDocument.Pages(i).Activate
    Set sr = ActivePage.Shapes.FindShapes(query:="@type='cdrLens'")
   For Each s In sr
        s.Effect.Clear
   Next s
    Next i
__________________
Using: CorelDraw X4 (14.0.0.701)
OS: Windows XP Pro
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Convert any object in document into bitmap anlulu General 2 27-06-2008 17:31
Convert CMYK to RGB jooksingjai General 1 30-07-2007 23:07
how can we convert all lenses in document to cmyk bitmap? olympiatr CorelDRAW/Corel DESIGNER VBA 2 27-05-2005 04:11
How to convert my document colors to grayscale Alex FAQ 1 03-05-2005 14:55
BUG - Lens Effect inside a Powerclip.jpg Hernán General 3 08-04-2005 23:06


All times are GMT -5. The time now is 18:35.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright © 2011, Oberonplace.com