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.
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.
Or you can try CScript.GetCurveSubpathCount. First you have to add a curve check.
Good luck.
Yup, but as we know the combined object must be curved, so there must be code to check if the selected object is curved.
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