http://www.charlesandhudson.com/archives/hand-tools-list-important.jpgPPT_LOGO_4b
‹#›
Autodesk Developer Network, April 2010
The Wine – Command Registration
•Create entries in the Revit journal
§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.
§JournalMode.NoCommandData
Does not write contents of the ExternalCommandData.Data map to the Revit journal. Allows 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.
•
•
•
C:\Documents and Settings\walmslk\Local Settings\Temporary Internet Files\Content.IE5\A9N3OQ34\MPj04005780000[1].jpg
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.