Message 1 of 1
Pause token for User Text input
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I used a function to change the layer of line before creating it and setting it back to the previous one.
Snippet :
CurrentLayer = oDoc.Database.Clayer
oDoc.Database.Clayer = acLyrTbl("ISO_LIN_UNI")
Await oDoc.Editor.CommandAsync("_.LINE", Editor.PauseToken)
While (CStr(Autodesk.AutoCAD.ApplicationServices.Application.GetSystemVariable("CMDNAMES"))).Equals("LINE")
Try
Await oDoc.Editor.CommandAsync(Editor.PauseToken)
Catch
Exit While
End Try
End While
oDoc.Database.Clayer = CurrentLayer
I want to use the same function for Text command, But in case of text command, when AutoCAD prompts for Text, it is simply adding pause token as text, it is not pausing for user's input.
Is there any other pause token in case of Text