BeginSave?

BeginSave?

Anonymous
Not applicable
292 Views
2 Replies
Message 1 of 3

BeginSave?

Anonymous
Not applicable
Does the AcadDocument_BeginSave event get fired with a autosave even if the AcadDocument
isn't the one with focus? If so is there any way to make it only pay attention to the
drawing with the focus?

--
Kent
0 Likes
293 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable
Kent,

I think that the BeginSave event only occurs at the beginning of a save
command, and wouldn't occur with an Autosave. It should be easy to test
though.

-Danny Polkinhorn
Perkins & Will
Atlanta


"Kent Keller" wrote in message
news:BE7CD0AC21897403200449D4E308C006@in.WebX.maYIadrTaRb...
> Does the AcadDocument_BeginSave event get fired with a autosave even if
the AcadDocument
> isn't the one with focus? If so is there any way to make it only pay
attention to the
> drawing with the focus?
>
> --
> Kent
>
>
>
>
0 Likes
Message 3 of 3

Anonymous
Not applicable
Danny

Actually it does fire on a AutoSave. I fixed the problem...(I think) by doing this


Private Sub AcadDocument_BeginSave(ByVal FileName As String)

If UCase(Right(FileName, 3)) <> "DWG" Then
'If ThisDrawing.Name <> Right(FileName, Len(ThisDrawing.Name)) Then
Exit Sub
Else
Do my thing


--
Kent


"Danny" wrote in message
news:AC1A33C851A11FA6C1371FC00BEEF811@in.WebX.maYIadrTaRb...
> Kent,
>
> I think that the BeginSave event only occurs at the beginning of a save
> command, and wouldn't occur with an Autosave. It should be easy to test
> though.
>
> -Danny Polkinhorn
> Perkins & Will
> Atlanta
>
>
> "Kent Keller" wrote in message
> news:BE7CD0AC21897403200449D4E308C006@in.WebX.maYIadrTaRb...
> > Does the AcadDocument_BeginSave event get fired with a autosave even if
> the AcadDocument
> > isn't the one with focus? If so is there any way to make it only pay
> attention to the
> > drawing with the focus?
> >
> > --
> > Kent
> >
> >
> >
> >
>
>
0 Likes