...
For user IO Editor class is responsible, one can get it from Document and all related class for UserIO are available in Teigha.EditorInput namespace.
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
Document activeDocument = docManager.MdiActiveDocument; Editor ed = activeDocument.Editor; PromptIntegerOptions op = new PromptIntegerOptions("Input a positive integer"); op.AllowNegative = false; PromptIntegerResult res =(PromptIntegerResult) ed.DoPrompt(op); if( res.Status == PromptStatus.OK) { int retVal = res.Value; } |
...