OberonPlace.com Forums  

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

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 29-08-2003, 07:19
jwknight
Guest
 
Posts: n/a
Default speeding up object property changes

I'm currently using a loop that looks at each individual object in a document, checks its width and color and then either deletes it or moves it to a new layer. Some documents contain 20,000 objects. Using this type of loop is very slow. Does anyone have an ideas on how i could speed it up. The code i'm using is shown below. Many Thanks

For Each t In ActivePage.Shapes
ProgressBar1.Value = counter
counter = counter + 1
t.Outline.Color.ConvertToCMYK
If t.Outline.Width < 0.003 Then
t.Delete
ElseIf t.Outline.Color.CMYKBlack <> 100 Then
t.Outline.Width = 0.003
t.Layer = lyr
ElseIf t.Outline.Color.CMYKBlack = 100 Then
t.Outline.Width = 0.003
End If
Next
Reply With Quote
 


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
Palette (or Colors array) property in VBA class in CDR12 zlatev CorelDRAW/Corel DESIGNER VBA 7 22-02-2005 11:28
object lost it's linear fountain fill property after metalickaah CorelDRAW/Corel DESIGNER VBA 5 02-01-2005 22:36
Sorting entries in the object manager dan CorelDRAW/Corel DESIGNER VBA 1 18-08-2004 22:16
Font Substitution Upon Import RobC CorelDRAW/Corel DESIGNER VBA 4 10-03-2003 23:06
VB6, GMS questions bbolte CorelDRAW/Corel DESIGNER VBA 12 06-12-2002 15:32


All times are GMT -5. The time now is 15:07.


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