Exemplo n.º 1
0
        /// <summary>
        /// Actions performed whilst Document is opening
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void ControlledApplication_DocumentOpening(object sender, Autodesk.Revit.DB.Events.DocumentOpeningEventArgs e)
        {
            if (this.uiapp == null)
            {
                this.uiapp = new UIApplication(sender as Autodesk.Revit.ApplicationServices.Application);
            }

            //register events if haven't been registered yet
            if ((Cmd_RegisterDockableWindow.thisCmd == null) && (Cmd_RegisterDockableWindow.Registered == false))
            {
                Cmd_RegisterDockableWindow cmd_RegisterWindow = new Cmd_RegisterDockableWindow();
                cmd_RegisterWindow.Execute(this.uiapp);
            }

            if ((Cmd_RegisterEvents.thisCmd == null) && (Cmd_RegisterEvents.Registered == false))
            {
                Cmd_RegisterEvents cmd_RegisterEvents = new Cmd_RegisterEvents();
                cmd_RegisterEvents.Execute(this.uiapp);
            }
        }
 void ControlledApplication_DocumentOpening(object sender, Autodesk.Revit.DB.Events.DocumentOpeningEventArgs e)
 {
 }