ObjectModified Event: Catch PLINE break

Discussion in 'AutoCAD' started by Oberer, Nov 5, 2004.

  1. Oberer

    Oberer Guest

    Ever broken a splined polyline? If you haven't, give it a try (at least thru 2k2). It creates one big mess!

    I'm trying to protect our dwgs as well as the users from creating plines that become difficult to edit.

    i was hoping to use the "object modified" event, but it's not working. by the time the pline has been broken, "it's type has been reset to "0"

    Private Sub AcadDocument_ObjectModified(ByVal Object As Object)
    If TypeName(Object) = "IAcadPolyline" Then
    If Object.Type = acCubicSplinePoly Then
    MsgBox "found it"
    End If
    End If
    End Sub


    Suggestions?
     
    Oberer, Nov 5, 2004
    #1
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.