AcadDocument_BeginCommand

AcadDocument_BeginCommand

Anonymous
Not applicable
434 Views
4 Replies
Message 1 of 5

AcadDocument_BeginCommand

Anonymous
Not applicable
Hi all,

If I were to do an If statement that was triggered when the grip on a line was selected to stretch.

How would I in that If statement have code to recognize the line selected automatically?

Thanks,
Mike
0 Likes
435 Views
4 Replies
Replies (4)
Message 2 of 5

Anonymous
Not applicable
Did you try
Private Sub AcadDocument_ObjectModified(ByVal Object As Object)
If TypeOf Object Is AcadLine Then
MsgBox "LIne"
End If
End Sub
0 Likes
Message 3 of 5

Anonymous
Not applicable
Thanks, I like it.

Cheers,
Mike
0 Likes
Message 4 of 5

Anonymous
Not applicable
Hi, one more question then. Is there a property I can access to get the properties of the line BEFORE it was updated.

Basically I need to get the properties when it's first selected and then I'll use the Object Modified once its been changed to make a comparison.

Is there a "Object Selected" property?

Cheers,
Mike
0 Likes
Message 5 of 5

Anonymous
Not applicable
Do a search for xdata
0 Likes