Can we delete SVG datas without looking at object docker, any script there, just hitting deleting them all at once.

Parents
  • Try this. I import SVG geo map data often and encounter this issue frequently. Been working fine for me thus far.

    Sub SVG_Cleanup()
    If ActiveShape Is Nothing Then Exit Sub

    ActiveDocument.BeginCommandGroup "Remove SVG data"
    Del_SVG ActiveSelectionRange.Shapes
    MsgBox "SVG Data deleted"
    ActiveDocument.EndCommandGroup
    End Sub

    Function Del_SVG(sa As Shapes)
    Dim s As Shape
    For Each s In sa
        If s.Type = cdrGroupShape Then
            Del_SVG s.Shapes
        Else
            s.Locked = False
            If s.Type = cdrNoShape Then
                s.Delete
            End If
        End If
    Next s
    End Function

Reply Children