...
Code Block |
---|
{ messageName: "nameOfTheMessage", message: "{}" } |
Message Events
To avoid flooding parent with unnecessary messages, we have some type of message events you need to register for (Events you need to register for).
See Event register/Event deregister how to register or deregister for such message events.
Sent events
drawingLoaded
Sent when drawing is entirely loaded on clientside.
...
Code Block |
---|
{ "messageName" : "drawingLoaded" } |
connectionLost
Sent when the connection to the server is lost due to e.g. network issues or server-side session terminated unexpectedly.
...
Code Block |
---|
{ "messageName" : "connectionLost" } |
showChooseDialog
Sent by some commands (e.g. xref, insert, linetype) to open file chooser dialog.
...
id - file id of the selected file that is used to download the file (/files/:fileId/diffs)
folderId - id of the folder the selected file is in
name - file name (e.g. “test.dwg”)
path - file path absolute to root (e.g. “~/folderX/fileY.png”)
size - file size as a string (e.g. "11.9 kB")
creationDate - file creation date
updateDate - date of the last file update
google-analytics-data
When in the server configuration "send-ganalytics-to-parent" is true then we send google-analytics data to parent iframe instead of google-analytic server
...
Events you need to register for
Command Events
Event name for registration: commandEvent
...
Message Name | Descriptions |
---|---|
commandWillStart | whenever the execution of a command will start. |
commandEnded | whenevever the execution of a command has ended |
commandCancelled | whenevever the execution of a command has been canceled. |
commandFailed | whenevever the execution of a command has failed. |
modelessOperationWillStart | whenever a modeless operation is about to start. |
modelessOperationEnded | whenever a modeless operation has ended. |
Lisp Events
Event name for registration: lispEvent
...
Message Name | Descriptions |
---|---|
lispEnded | whenevever the execution of a lisp has ended |
lispCancelled | whenevever the execution of a lisp has cancelled |
System Variables Events
Event name for registration: sysVarEvent
...
Message Name | Descriptions |
---|---|
sysvarChanged | Occurs when a change is made to the value of a system variable. |
Drawing Events
Event name for registration: drawingEvent
...
Message Name | Descriptions |
---|---|
drawingSaved | when a drawing is saved. |
UploadBegin | when a drawing upload is going to start |
UploadComplete | when a drawing upload was done |
drawingDescription* | (*not implemented yet) |
View Events
Event name for registration: viewChangedEvent
...
Message Name | Descriptions |
---|---|
viewChanged | whenever the World to Eye transformation matrix has been changed. |
Selection Events
Event name for registration: selectionEvent
...
Message Name | Descriptions |
---|---|
selectionChanged | when a change takes place to the current selection set. |
selectionCancelled | when a current selection is cancelled. |
Drawing Modified Events
Event name for registration: drawingModifiedEvent
...