コード例 #1
0
def LastCommandName():
    """Returns the name of the last executed command
    Returns:
      str: the name of the last executed command
    Example:
      import rhinoscriptsyntax as rs
      rs.Command( "Line" )
      print "The last command was the", rs.LastCommandName(), "command."
    See Also:
      Command
      IsCommand
      LastCommandResult
    """
    id = rhcommand.LastCommandId
    return rhcommand.LookupCommandName(id, True)
コード例 #2
0
def LastCommandName():
    "Returns the name of the last executed command"
    id = rhcommand.LastCommandId
    return rhcommand.LookupCommandName(id, True)