Получается, что в Civil 3D событие активации документа происходит гораздо чаще!Не проверял, но вполне возможно. Проверь при помощи ARXDBG.
Точно! Спасибо, постоянно забываю про такую возможность.Получается, что в Civil 3D событие активации документа происходит гораздо чаще!Проверь при помощи ARXDBG.
Команда: _copy
<DOC REACTOR: Чертеж1.dwg> : [Document Lock Mode Will Change]
<DOC REACTOR: Чертеж1.dwg> : [Document Lock Mode Changed] найдено: 1
Текущая настройка: Режим копирования = Несколько
Базовая точка или [Смещение/реЖим] <Смещение>:
Вторая точка или [Массив] <использовать для смещения первую точку>:
<DOC REACTOR: > : [Document Activation Modified (Activation = False)]
<DOC REACTOR: > : [Document Activation Modified (Activation = True)]
<DOC REACTOR: > : [Document Activation Modified (Activation = False)]
<DOC REACTOR: > : [Document Activation Modified (Activation = True)]
<DOC REACTOR: > : [Document Activation Modified (Activation = False)]
<DOC REACTOR: > : [Document Activation Modified (Activation = True)]
<DOC REACTOR: > : [Document Activation Modified (Activation = False)]
<DOC REACTOR: > : [Document Activation Modified (Activation = True)]
<DOC REACTOR: > : [Document Activation Modified (Activation = False)]
<DOC REACTOR: > : [Document Activation Modified (Activation = True)]
<DOC REACTOR: > : [Document Activation Modified (Activation = False)]
<DOC REACTOR: > : [Document Activation Modified (Activation = True)]
<DOC REACTOR: > : [Document Activation Modified (Activation = False)]
<DOC REACTOR: > : [Document Activation Modified (Activation = True)]
<DOC REACTOR: > : [Document Activation Modified (Activation = False)]
<DOC REACTOR: > : [Document Activation Modified (Activation = True)]
<DOC REACTOR: > : [Document Activation Modified (Activation = False)]
<DOC REACTOR: > : [Document Activation Modified (Activation = True)]
<DOC REACTOR: > : [Document Activation Modified (Activation = False)]
<DOC REACTOR: > : [Document Activation Modified (Activation = True)]
<DOC REACTOR: > : [Document Activation Modified (Activation = False)]
<DOC REACTOR: > : [Document Activation Modified (Activation = True)]
<DOC REACTOR: > : [Document Activation Modified (Activation = False)]
<DOC REACTOR: > : [Document Activation Modified (Activation = True)]
<DOC REACTOR: > : [Document Activation Modified (Activation = False)]
<DOC REACTOR: > : [Document Activation Modified (Activation = True)]
<DOC REACTOR: > : [Document Activation Modified (Activation = False)]
<DOC REACTOR: > : [Document Activation Modified (Activation = True)]
<DOC REACTOR: > : [Document Activation Modified (Activation = False)]
<DOC REACTOR: > : [Document Activation Modified (Activation = True)]
<DOC REACTOR: > : [Document Activation Modified (Activation = False)]
<DOC REACTOR: > : [Document Activation Modified (Activation = True)]
<DOC REACTOR: > : [Document Activation Modified (Activation = False)]
<DOC REACTOR: > : [Document Activation Modified (Activation = True)]
<DOC REACTOR: > : [Document Activation Modified (Activation = False)]
<DOC REACTOR: > : [Document Activation Modified (Activation = True)]
<DOC REACTOR: > : [Document Activation Modified (Activation = False)]
<DOC REACTOR: > : [Document Activation Modified (Activation = True)]
<DOC REACTOR: > : [Document Activation Modified (Activation = False)]
<DOC REACTOR: > : [Document Activation Modified (Activation = True)]
<DOC REACTOR: > : [Document Activation Modified (Activation = False)]
<DOC REACTOR: > : [Document Activation Modified (Activation = True)]
<DOC REACTOR: > : [Document Activation Modified (Activation = False)]
<DOC REACTOR: > : [Document Activation Modified (Activation = True)]
<DOC REACTOR: > : [Document Activation Modified (Activation = False)]
<DOC REACTOR: > : [Document Activation Modified (Activation = True)]
<DOC REACTOR: > : [Document Activation Modified (Activation = False)]
<DOC REACTOR: > : [Document Activation Modified (Activation = True)]
<DOC REACTOR: > : [Document Activation Modified (Activation = False)]
<DOC REACTOR: > : [Document Activation Modified (Activation = True)]
<DOC REACTOR: > : [Document Activation Modified (Activation = False)]
<DOC REACTOR: > : [Document Activation Modified (Activation = True)]
<DOC REACTOR: > : [Document Activation Modified (Activation = False)]
<DOC REACTOR: > : [Document Activation Modified (Activation = True)]
<DOC REACTOR: > : [Document Activation Modified (Activation = False)]
<DOC REACTOR: > : [Document Activation Modified (Activation = True)]
<DOC REACTOR: > : [Document Activation Modified (Activation = False)]
<DOC REACTOR: > : [Document Activation Modified (Activation = True)]
<DOC REACTOR: > : [Document Activation Modified (Activation = False)]
<DOC REACTOR: > : [Document Activation Modified (Activation = True)]
<DOC REACTOR: > : [Document Activation Modified (Activation = False)]
<DOC REACTOR: > : [Document Activation Modified (Activation = True)]
<DOC REACTOR: > : [Document Activation Modified (Activation = False)]
<DOC REACTOR: > : [Document Activation Modified (Activation = True)]
<DOC REACTOR: > : [Document Activation Modified (Activation = False)]
<DOC REACTOR: > : [Document Activation Modified (Activation = True)]
<DOC REACTOR: > : [Document Activation Modified (Activation = False)]
<DOC REACTOR: > : [Document Activation Modified (Activation = True)]
<DOC REACTOR: > : [Document Activation Modified (Activation = False)]
<DOC REACTOR: > : [Document Activation Modified (Activation = True)]
<DOC REACTOR: > : [Document Activation Modified (Activation = False)]
<DOC REACTOR: > : [Document Activation Modified (Activation = True)]
<DOC REACTOR: > : [Document Activation Modified (Activation = False)]
<DOC REACTOR: > : [Document Activation Modified (Activation = True)]
Укажите вторую точку или [Массив/Выход/Отменить] <Выход>:
Статический класс не изменил ситуацию. Вот ведь подстава :(Команда: DOCACTIVATECOUNTERRESET
Команда: DOCACTIVATECOUNTSHOW
DocumentActivationChanged events: 0
Команда: Задайте противоположный угол или [Линия/РМн-угол/СМн-угол]:
Команда:
Команда:
Команда: _copy найдено: 1
Текущая настройка: Режим копирования = Несколько
Базовая точка или [Смещение/реЖим] <Смещение>:
Вторая точка или [Массив] <использовать для смещения первую точку>:
Укажите вторую точку или [Массив/Выход/Отменить] <Выход>:
Укажите вторую точку или [Массив/Выход/Отменить] <Выход>:
Укажите вторую точку или [Массив/Выход/Отменить] <Выход>:
Укажите вторую точку или [Массив/Выход/Отменить] <Выход>:
Укажите вторую точку или [Массив/Выход/Отменить] <Выход>: *Прервано*
Команда: DOCACTIVATECOUNTSHOW
DocumentActivationChanged events: 800
Это даже круче, чем PointMonitor :D
DocumentActivationChanged events: 392
DocumentActivated events: 2
DocumentToBeActivated events: 2
DocumentToBeDeactivated events: 2
DocumentActivationChanged = DocumentToBeActivated + DocumentToBeDeactivated
DocumentToBeActivated = DocumentActivated
Может быть, здесь баг?
Спасибо, все теперь понятно!Теперь вопрос в том какая зараза его так часто переключает. И еще вопрос зачем тебе понадобилось подписываться именно на это событие и делать в нём какие-то достаточно длительные вещи?
Теперь вопрос в том какая зараза его так часто переключает.Не знаю, но делает она это очень часто.
И еще вопрос зачем тебе понадобилось подписываться именно на это событие и делать в нём какие-то достаточно длительные вещи?Я решил его использовать для того чтобы отследить переключения между чертежами. Думал, что это совмещенное событие DocumentActivated+DocumentDeactivated. Благодаря Вашему разъяснению, теперь понятно, что это неправильно. Исправил на DocumentActivated - все работает как надо.
Исправил на DocumentActivated - все работает как надо.О! Собственно говоря я к этому и вёл... :)