How can I tell if a form is merged or not?

Given an object Shape

, how can I tell if this shape is a combination of shapes or not?

I could use BreakApartEx()

and get a ShapeRange that I could count, but I would rather not split the shape part if possible.

I am using Corel Draw X7.

+3


source to share


4 answers


How can I create a duplicate of a form and then use BreakApartEX and shaperange.count? Then remove it. This way you still retain the original shape.



+3


source


Or you can try CScript.GetCurveSubpathCount. First you have to add a curve check.



Good luck.

0


source


Yup, but as we know the combined object must be curved, so there must be code to check if the selected object is curved.

0


source


Yup, but as we know the combined object must be curved, so there must be code to check if the selected object is curved.

Maybe just simple code:

Dim s as form Dim l how long

For each s in activeselectionrange if s.type = cdrcurveshape then l = CorelScript.GetCurveSubpathCount 'You can display the subpackage count as msg or in a textbox. MsgBox "Form has" and l and "subpath (s)", vbOKOnly, "MLindhe :)" end if next s

0


source







All Articles