PDA

View Full Version : BeginSave event....


kyheulon
27-08-2004, 09:25 PM
I want to run a macro that is started with a "BeginSave" event. I use the following code and it does what it should. However, the macro runs when I select an object and start to move/copy the object by dragging it to it's new location (without using the standard acad command of "move" or "copy"). The message box tells me the drawing is being saved in the temp directory. Is there a way to keep the save from happening or not look like a save to the macro so the macro doesn't run?

Thanks,

Private Sub AcadDocument_EndSave(ByVal FileName As String)
' This example intercepts a drawing EndSave event.
'
' This event is triggered when a drawing finishes a save request.
'
' To trigger this example event: Save an open drawing and wait for the save to complete

' Use the "FileName" variable to determine where the drawing file was saved
MsgBox "A drawing has just been saved to: " & FileName
End Sub

TCARPENTER
30-08-2004, 04:13 PM
Check your autosave settings, in order to prevent your save event from kicking off you'll need to disable this. An autosave is a save event.

HTH
Todd

kyheulon
30-08-2004, 04:35 PM
I would agree that an autosave is a save event... but why is there a save event to the temp folder when I do a "drag and drop" to MOVE an object in the drawing. Is there a way to control the save event or a different save event trigger to use?

TCARPENTER
31-08-2004, 10:17 AM
kyheulon

To my knowledge, there is no way to control what events kick-off an autosave. It seems to me Autodesk either in the help files, or in their knowledge base, discuss what events trigger an autosave - but in the end, you're probably better off just disabling the autosave all together.

HTH
Todd