Delete Curves

Hi

how can I creat a macro to delete all horizontal lines?

Thanks

Parents Reply Children
  • Whow can i delete all shapes with only 2 nodes? is there a simple line of code to do that?

    You can use Corel Query Language (CQL) for that:

    Sub delete_selected_2_node_curves()
    Dim sr As ShapeRange
    
        Set sr = ActiveSelectionRange.Shapes.FindShapes(query:="@com.type = " & cdrCurveShape & "and @com.curve.nodes.count = " & 2)
        sr.Delete
    End Sub