message appears before the object is Modified,

Discussion in 'AutoCAD' started by youngman, Sep 30, 2004.

  1. youngman

    youngman Guest

    hi,

    herr is the sample of developer help.
    Private Sub AcadDocument_ObjectModified(ByVal Object As Object) '
    MsgBox "A " & TypeName(Object) & " was just modified!"
    End Sub
    but i want that the message appears before the object is Modified,
    how to do it
    thank you
     
    youngman, Sep 30, 2004
    #1
  2. Then use the BeginCommand event and test for the command you are looking
    for.

    -- Mike
    ___________________________
    Mike Tuersley
    CADalyst's CAD Clinic
    Rand IMAGINiT Technologies
    ___________________________
    the trick is to realize that there is no spoon...
     
    Mike Tuersley, Sep 30, 2004
    #2
  3. mike,

    work's in most cases, but for example editing an attribute via the
    property-window or when an application modifies objects, it's not sure
    that you get a begin-command.

    i#m sorry not to have an idea for getting a modify-event before a
    modification started (it's also for autodesk to do somthing like that,
    because every modify-command can be canceled and then no modification
    was done).

    - alfred -
     
    Alfred NESWADBA, Sep 30, 2004
    #3
  4. youngman

    youngman Guest

    THANK YOU .
    i see,somehow i got it.
    maybe it is just a partial solution .

    thanks
     
    youngman, Oct 1, 2004
    #4
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.