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 10-09-2020, 22:22
iceage3 iceage3 is offline
Junior Member
 
Join Date: May 2009
Posts: 19
Default Help! Why the ApplyPatternFill Method take so much time?

In CorelDRAW 2017 and upper versions, when I use this ApplyPatternFill method of shape class, it will take about 10 seconds to finish the process. But in the old version like X4,X5,X6,etc, this will be really fast , so why? Anyone can help? We often do lots of patternfill works use VBA ,this means it will take much more time

Thanks in advance!

Sample code like this will take 10 or more seconds in CorelDRAW 2017,2018 and upper versions:

Sub test123()
ActiveSelection.Shapes(1).Fill.ApplyPatternFill cdrFullColorPattern, "C:\1.pat"
End Sub
Reply With Quote
  #2  
Old 25-11-2020, 14:28
shelbym's Avatar
shelbym shelbym is offline
Senior Member
 
Join Date: Nov 2002
Location: Cheyenne, WY
Posts: 1,782
Blog Entries: 11
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 Help! Why the ApplyPatternFill Method take so much time?

Try loading it this way instead:
Code:
Sub test123()
    ActiveSelection.Shapes(1).Style.Fill.LoadFill "C:\Users\Shelby\Documents\Corel\Corel Content\Fills\Starter pack\Vector Pattern 232.fill"
End Sub
Happy Coding,

-Shelby
Reply With Quote
  #3  
Old 01-12-2020, 03:27
iceage3 iceage3 is offline
Junior Member
 
Join Date: May 2009
Posts: 19
Default

Thank you very much! Shelbym. This is fast indeed. The only problem is that we can't edit .fill files directly.
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
What is the CQL method derasje Macros/Add-ons 7 07-05-2010 23:20
Looking for info on method... ddonnahoe CorelDRAW/Corel DESIGNER VBA 7 30-08-2009 18:14
Method to do INSERT PAGE in VB.NET ? ljesus7 CorelDRAW/Corel DESIGNER VBA 0 12-02-2007 18:03
ApplyPatternFill Full Color Bitmaps shelbym Code Critique 0 23-10-2005 03:18
ApplyPatternFill shelbym CorelDRAW/Corel DESIGNER VBA 2 26-03-2004 12:29


All times are GMT -5. The time now is 23:46.


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