from Autodesk.AutoCAD.ApplicationServices import * input = IN[0] adoc = Application.DocumentManager.MdiActiveDocument adoc.SendStringToExecute(input, True, False, False) OUT = input + " sent to command line"