Pause token for User Text input

Pause token for User Text input

JpandaDQJBR
Explorer Explorer
359 Views
0 Replies
Message 1 of 1

Pause token for User Text input

JpandaDQJBR
Explorer
Explorer

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

0 Likes
360 Views
0 Replies
Replies (0)