コード例 #1
0
        static bool Run()
        {
            if (idlePending)
            {
                Revit.ActiveDBApplication?.PurgeReleasedAPIObjects();
                idlePending = core.DoIdle();
            }

            var active = core.DoEvents();

            if (active)
            {
                idlePending = true;
            }

            if (Revit.ProcessIdleActions())
            {
                core.RaiseIdle();
            }

            return(active);
        }
コード例 #2
0
        static bool Run()
        {
            CheckInGuests();

            if (idlePending)
            {
                idlePending = core.DoIdle();
            }

            var active = core.DoEvents();

            if (active)
            {
                idlePending = true;
            }

            if (Revit.ProcessIdleActions())
            {
                core.RaiseIdle();
            }

            return(active);
        }