Forum: CorelDRAW/Corel DESIGNER VBA
04-01-2020, 04:05
|
Replies: 4
Views: 12,224
Hi
selectSameColor - remove line...
Hi
selectSameColor - remove line Application.CorelScript.RedrawScreen in boostFinish and add PtrSafe between Declare and Function
import_Somfile - change to ActiveLayer.Import...
|
Forum: CorelDRAW/Corel DESIGNER VBA
16-11-2018, 03:17
|
Replies: 1
Views: 5,666
|
Forum: CorelDRAW/Corel DESIGNER VBA
16-11-2018, 03:10
|
Replies: 3
Views: 6,407
|
Forum: CorelDRAW/Corel DESIGNER VBA
13-11-2018, 03:24
|
Replies: 3
Views: 6,407
|
Forum: CorelDRAW/Corel DESIGNER VBA
10-07-2018, 03:14
|
Replies: 11
Views: 9,996
|
Forum: CorelDRAW/Corel DESIGNER VBA
09-07-2018, 06:08
|
Replies: 11
Views: 9,996
You may change
Set s =...
You may change
Set s = ActiveLayer.CreateEllipse2(x + Rnd * w, y + Rnd * h, Rnd * MaxSize + MinSize)
to
Set s = ActiveLayer.CreatePolygon2(x + Rnd * w, y + Rnd * h, Rnd * MaxSize + MinSize, NSide,...
|
Forum: CorelDRAW/Corel DESIGNER VBA
06-07-2018, 01:46
|
Replies: 11
Views: 9,996
in theory, you can add each created ellipse to...
in theory, you can add each created ellipse to the group and check the intersection with this shape-group, using Shape.Intersect. If the function returns an object, then delete the ellipse and create...
|
Forum: CorelDRAW/Corel DESIGNER VBA
06-07-2018, 01:40
|
Replies: 11
Views: 9,996
|
Forum: CorelDRAW/Corel DESIGNER VBA
05-07-2018, 03:20
|
Replies: 11
Views: 9,996
|
Forum: CorelDRAW/Corel DESIGNER VBA
29-06-2018, 08:37
|
Replies: 2
Views: 6,674
|
Forum: Macros/Add-ons
04-06-2018, 01:52
|
Replies: 15
Views: 23,352
works but
what version of Corel Draw do you have?
|
Forum: Macros/Add-ons
01-06-2018, 04:03
|
Replies: 15
Views: 23,352
|
Forum: Macros/Add-ons
28-05-2018, 02:16
|
Replies: 15
Views: 23,352
|
Forum: Macros/Add-ons
24-05-2018, 04:05
|
Replies: 15
Views: 23,352
delete color from palette
Sub DeleteColors()
Dim s As Shape, c As Color
Set s = ActiveShape: If s Is Nothing Then Exit Sub
If s.Fill.Type <> cdrUniformFill Then Exit Sub
Set c = s.Fill.UniformColor
...
|
Forum: Macros/Add-ons
18-05-2018, 05:31
|
Replies: 15
Views: 23,352
|
Forum: CorelDRAW/Corel DESIGNER VBA
18-05-2018, 05:18
|
Replies: 5
Views: 7,096
|
Forum: CorelDRAW/Corel DESIGNER VBA
17-05-2018, 02:29
|
Replies: 5
Views: 7,096
|
Forum: CorelDRAW/Corel DESIGNER VBA
20-03-2018, 03:17
|
Replies: 5
Views: 6,831
slightly improved code (:
Sub CenterGroup()
Dim s As Shape, sr As ShapeRange
Set sr = ActiveSelectionRange: If sr.Count = 0 Then Beep: Exit Sub
Set s = sr.FirstShape: sr.Remove 1 'align to bottom shape
...
|
Forum: CorelDRAW/Corel DESIGNER VBA
07-03-2018, 01:19
|
Replies: 3
Views: 7,299
try this
Sub SetObjectNamesFromPageNames()
Dim p As Page
Dim s As Shape
For Each p In ActiveDocument.Pages
If InStr(p.name, " ") > 1 Then
set s =...
|
Forum: CorelDRAW/Corel DESIGNER VBA
12-07-2017, 03:48
|
Replies: 3
Views: 5,498
|
Forum: CorelDRAW/Corel DESIGNER VBA
28-06-2017, 02:35
|
Replies: 4
Views: 6,932
example from CorelDRAW VBA Help
Sub Test()
Dim sr As ShapeRange
Dim sp1 As SubPath, sp2 As SubPath
Dim cps As CrossPoints, cp As CrossPoint
Dim x As Double, y As Double, n As Long
Set sr = ActiveSelectionRange
If sr.Count...
|
Forum: CorelDRAW/Corel DESIGNER VBA
22-06-2017, 07:39
|
Replies: 1
Views: 5,053
|
Forum: CorelDRAW/Corel DESIGNER VBA
20-06-2017, 11:20
|
Replies: 1
Views: 4,999
You better use ShapeRange.
Dim sr As New...
You better use ShapeRange.
Dim sr As New ShapeRange, c%, i%, x#, y#, dx#, dy#
'set variables x,y, dx etc.
i = 4
for c = 0 to i
sr.Add ActiveLayer.CreateLineSegment(x, y, x + dx, y + dy)...
|
Forum: CorelDRAW/Corel DESIGNER VBA
12-05-2017, 05:28
|
Replies: 6
Views: 11,905
Remove proportional sizing
Private Sub CopyWH()
Dim s As Shape, cs As Shape, w#, w1#, h#, h1#, b As Boolean, Shift&
Set cs = ActiveShape: If cs Is Nothing Then Exit Sub
cs.GetSize w1, h1 'get source size
b =...
|
Forum: CorelDRAW/Corel DESIGNER VBA
05-05-2017, 08:14
|
Replies: 1
Views: 4,596
|