text: 
  # -*- coding: utf-8 -*-
  """
  @name:          auto
  @description:   ...
  @author:        Ejnar Brendsdal
  @version:       1.0
  @link:
  @notes:         Works with Rhino 5.
  
  
  @license:
  
  The MIT License (MIT)
  
  Copyright (c) 2016 Ejnar Brendsdal
  
  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
  
  The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
  
  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  
  
  @Installation: Copy to the Rhino script folder. ie.: C:\Users\"USER"\AppData\Roaming\McNeel\Rhinoceros\5.0\scripts
                  Options to use the function:
                  1. Recommended: Import the bundled "Block Tools" toolbar with readymade buttons to call the functions.
                  2. Add a new button with the following macro: ( _NoEcho !-_RunPythonScript "SelectSameBlocks.py" _Echo )
                  3. Add an alias with the above command
                  3. Call the script directly by using this command: "-RunPythonScript SelectSameBlocks.py"
  """
  
  #******* Imports ********************
  #************************************
  
  import rhinoscriptsyntax as rs
  import Rhino.Geometry as G
  
  # RunCommand is the called when the user enters the command name in Rhino.
  # The command name is defined by the filname minus "_cmd.py"
  
  
  def RunCommand( is_interactive ):
      print "Burp!"
      if scriptcontext.escape_test(False):
          print "script cancelled"#do something
  
      print "BUUURP!"
  
      return 0
  
  RunCommand(True)
  #if __name__=="__main__":
  #        RunCommand()
  