The custom attribute
Autodesk.Revit.Attributes.JournalingAttribute can optionally be used to
control the journaling behavior during the execution of your external
command. |
|
We can now add
journal entries into the Revit journal – this could be handy for debugging
purposes. The first option helps us record your commands and thus helps you
do detective work if something goes wrong to find out if it was caused by
your external command or because of Revit. |
|
JournalMode.UsingCommandData |
|
Uses the
“StringStringMap” supplied in the command data. Hides all Revit journal
entries in between the external command invocation and the StringStringMap
entry. Commands which invoke the Revit UI for selection or for responses to
task dialogs may not replay correctly. |
|
JournalMode.NoCommandData |
|
Does not write
contents of the ExternalCommandData.Data map to the Revit journal. But does
allow Revit API calls to write to the journal as needed. This option should
allow commands which invoke the Revit UI for selection or for responses to
task dialogs to replay correctly. |
|