Beispiel #1
0
        private static void OnDocumentSavedAs(object sender, DocumentSavedAsEventArgs e)
        {
            if (e.Status == RevitAPIEventStatus.Failed || e.Status == RevitAPIEventStatus.Cancelled)
            {
                return;
            }
            if (e.Document == null)
            {
                return;
            }

            MoveBackups(e.Document);
        }
Beispiel #2
0
 /// <summary>
 /// Called when [document saved as].
 /// </summary>
 /// <param name="sender">The sender.</param>
 /// <param name="args">The <see cref="Autodesk.Revit.DB.Events.DocumentSavedAsEventArgs" /> instance containing the event data.</param>
 /// ReSharper disable once MemberCanBeMadeStatic.Local
 private void OnDocumentSavedAs(object sender, DocumentSavedAsEventArgs args)
 {
     // TODO: add you code here
 }
 private void m_app_DocumentSavedAs(object sender, DocumentSavedAsEventArgs e)
 {
 }
Beispiel #4
0
 private void doc_DocumentSavedAs(object sender, DocumentSavedAsEventArgs e)
 {
     DisplayEvent("Document saved as");
 }
Beispiel #5
0
 private static void ControlledApplication_DocumentSavedAs(object sender, DocumentSavedAsEventArgs e)
 {
     RegisterDocument(e.Document);
 }
Beispiel #6
0
 public static void SavedAsEvent(object sender, DocumentSavedAsEventArgs args)
 {
     MFSaveFamily.Main(args.Document);
 }