I
I
Inveker2019-06-22 16:41:14
Macros
Inveker, 2019-06-22 16:41:14

How to cut another rectangle from one rectangle using VBA Corel Draw?

Please tell me, or share a link, how you can make such a figure using vba tools in the corel draw program. I know how to draw a rectangle, but I can’t find how to make the shape more difficult in the documentation. I’m
interested in the function of cutting from one rectangle to another
5d0e2fbbec8df025848383.jpeg

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
l_e_v, 2019-06-24
@l_e_v

Sub trimmer()
  ActiveDocument.Unit = cdrMillimeter
  Set s_big = ActiveLayer.CreateRectangle2(0, 0, 70, 100)
  Set s_small = ActiveLayer.CreateRectangle2(25, -5, 20, 25)
  Set s_result = s_small.Trim(s_big, False)
End Sub

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question