WARNING: You're viewing the older Rhino 5 version of this page! View the Rhino 6 version instead.

Set Command Prompt

Demonstrates how to set Rhino's command prompt text to show the progress of long processes.


CRhinoCommand::result CCommandTest::RunCommand( const CRhinoCommandContext& context )
  ON_wString prompt;
  int i, entity_count = 1000;
  for( i = 0; i < entity_count; i++ )
    prompt.Format( L"Importing IGES entity %d of %d", i+1, entity_count );
    RhinoApp().SetCommandPrompt( prompt );

    // TODO:
  RhinoApp().Print( L"IGES import successful.\n" );

  return success;