Author Topic: Reactors: the most often event  (Read 1578 times)

0 Members and 1 Guest are viewing this topic.

Grrr1337

  • Swamp Rat
  • Posts: 812
Reactors: the most often event
« on: December 10, 2017, 08:36:04 AM »
Hey guys,
I was wondering from all the reactor types and their events, which one occurs more(most) often than the others?
Given the rule that one just creates or opens a drawing and starts drafting/working on it(standartly), where he might cause every event.
And no stuff like, user starts a lisp routine and inside of its definition there is (repeat 1000 (command ...)) which would count 1000 :VLR-commandWillStart and :VLR-commandEnded events in one go.

Heres a reminder of the reactor types and their events:
Code - Auto/Visual Lisp: [Select]
  1. (
  2.     ( :VLR-objectAppended :VLR-objectUnAppended :VLR-objectReAppended
  3.       :VLR-objectOpenedForModify :VLR-objectModified :VLR-objectErased :VLR-objectUnErased
  4.     )
  5.   )
  6.     ( :VLR-unknownCommand :VLR-commandWillStart :VLR-commandEnded :VLR-commandCancelled :VLR-commandFailed )
  7.   )
  8.     ( :VLR-beginDeepClone :VLR-beginDeepCloneXlation :VLR-abortDeepClone :VLR-endDeepClone )
  9.   )
  10.     ( :VLR-documentCreated :VLR-documentToBeDestroyed :VLR-documentLockModeWillChange :VLR-documentLockModeChangeVetoed
  11.       :VLR-documentLockModeChanged :VLR-documentBecameCurrent :VLR-documentToBeActivated :VLR-documentToBeDeactivated
  12.     )
  13.   )
  14.     (:VLR-beginDwgOpen :VLR-endDwgOpen :VLR-dwgFileOpened :VLR-databaseConstructed
  15.       :VLR-databaseToBeDestroyed :VLR-beginSave :VLR-saveComplete :VLR-beginClose
  16.     )
  17.   )
  18.     (:VLR-beginDxfIn :VLR-abortDxfIn :VLR-dxfInComplete :VLR-beginDxfOut :VLR-abortDxfOut :VLR-dxfOutComplete)
  19.   )
  20.     (:VLR-unknownCommand
  21.       :VLR-commandWillStart      :VLR-commandEnded
  22.       :VLR-commandCancelled      :VLR-commandFailed
  23.       :VLR-lispWillStart         :VLR-lispEnded
  24.       :VLR-lispCancelled         :VLR-beginClose
  25.       :VLR-beginDxfIn            :VLR-abortDxfIn
  26.       :VLR-dxfInComplete         :VLR-beginDxfOut
  27.       :VLR-abortDxfOut           :VLR-dxfOutComplete
  28.       :VLR-beginDwgOpen          :VLR-endDwgOpen
  29.       :VLR-dwgFileOpened         :VLR-databaseConstructed
  30.       :VLR-databaseToBeDestroyed :VLR-beginSave
  31.       :VLR-saveComplete          :VLR-sysVarWillChange
  32.       :VLR-sysVarChanged
  33.     )
  34.   )
  35.     (:VLR-beginInsert :VLR-beginInsertM :VLR-otherInsert :VLR-abortInsert :VLR-endInsert )
  36.   )
  37.   (:VLR-Linker-Reactor (:VLR-rxAppLoaded :VLR-rxAppUnLoaded))
  38.   (:VLR-Lisp-Reactor (:VLR-lispWillStart :VLR-lispEnded :VLR-lispCancelled) )
  39.   (:VLR-Miscellaneous-Reactor (:VLR-pickfirstModified :VLR-layoutSwitched) )
  40.   (:VLR-Mouse-Reactor (:VLR-beginDoubleClick :VLR-beginRightClick) )
  41.     (:VLR-cancelled
  42.       :VLR-copied            :VLR-erased
  43.       :VLR-unerased          :VLR-goodbye
  44.       :VLR-openedForModify   :VLR-modified
  45.       :VLR-subObjModified    :VLR-modifyUndone
  46.       :VLR-modifiedXData     :VLR-unappended
  47.       :VLR-reappended        :VLR-objectClosed
  48.     )
  49.   )
  50.   (:VLR-SysVar-Reactor (:VLR-sysVarWillChange :VLR-sysVarChanged) )
  51.     (:VLR-toolbarBitmapSizeWillChange
  52.       :VLR-toolbarBitmapSizeChanged
  53.     )
  54.   )
  55.     (:VLR-undoSubcommandAuto
  56.       :VLR-undoSubcommandControl
  57.       :VLR-undoSubcommandBegin
  58.       :VLR-undoSubcommandEnd
  59.       :VLR-undoSubcommandMark
  60.       :VLR-undoSubcommandBack
  61.       :VLR-undoSubcommandNumber
  62.     )
  63.   )
  64.     (:VLR-wblockNotice
  65.       :VLR-beginWblockPt        :VLR-beginWblockId
  66.       :VLR-beginWblock          :VLR-otherWblock
  67.       :VLR-abortWblock          :VLR-endWblock
  68.       :VLR-beginWblockObjects
  69.     )
  70.   )
  71.     (:VLR-docFrameMovedOrResized :VLR-mainFrameMovedOrResized)
  72.   )
  73.     (:VLR-beginAttach
  74.       :VLR-otherAttach                 :VLR-abortAttach
  75.       :VLR-endAttach                   :VLR-redirected
  76.       :VLR-comandeered                 :VLR-beginRestore
  77.       :VLR-abortRestore                :VLR-endRestore
  78.       :VLR-xrefSubcommandBindItem      :VLR-xrefSubcommandAttachItem
  79.       :VLR-xrefSubcommandOverlayItem   :VLR-xrefSubcommandDetachItem
  80.       :VLR-xrefSubcommandPathItem      :VLR-xrefSubcommandReloadItem
  81.       :VLR-xrefSubcommandUnloadItem
  82.     )
  83.   )
  84. )

I know theres no rule how one always work with ACAD, just wanted to hear your opinion.
(apply ''((a b c)(a b c))
  '(
    (( f L ) (apply 'strcat (f L)))
    (( L ) (if L (cons (chr (car L)) (f (cdr L)))))
    (72 101 108 108 111 32 87 111 114 108 100)
  )
)
vevo.bg