shapeRange.Combine()
Combine (Ctrl+L): merges objects into a single curve with the overlaps knocked out. Not the same thing as Group, at all.
Signature
shapeRange.Combine()
Notes
Combine (Ctrl+L): merges objects into a single curve with the overlaps knocked out. Not the same thing as Group, at all.
Python example (runnable)
Requires
pywin32. The example assumes app / doc / page / layer are already connected.
See Connection & InitPython
# select two or more shapes, then combine
rng = app.ActiveSelectionRange
print("Before combine: ", rng.Count, " object(s)")
rng.Combine() # combine (Ctrl+L): the overlap becomes a hole
print("After combine: ", app.ActiveSelectionRange.Count, " object(s)")
About this section: Group / Order / Boolean
Group / Order / Boolean — grouping, ordering and boolean operations.
- This section has 18 entries; this is one of them.
- See the full section index: Group / Order / Boolean
Other entries in this section
- shape.ConvertToCurves()Convert to curves: text or basic shapes become curve vectors. A conver
- shapeRange.Group()Group: packs several shapes into one group and returns it (Type=7).
- shape.Ungroup()Ungroups one level. Nested groups need several calls.
- shape.UngroupAll()Ungroups every level in one go.
- shape.BreakApart() / .BreakApartEx()Break apart (Ctrl+K): splits a combined curve back into separate objec
- shape.OrderToFront() / .OrderToBack()Send to front or back.
- shape.ForwardOne() / .BackOne()Move up or down one step in z-order.
- shape.OrderToFrontOf(other) / .OrderToBackOf(other)Place above or below another object. More reliable than counting layer