[CONNECT VBA] Sendkeyin

This part of code crashes CE. Is it only for me?

Sub place_text()
CadInputQueue.SendCommand "place text"
            CadInputQueue.sendkeyin "sometext"
End Sub

 

Parents
  • It's not just your macro. The same thing happens when you enter those key-ins into the Key-In Browser. I'm actually surprised the Place Text key-in is still available. According to the documentation all of the older text editor interfaces are no longer supported in CONNECT, only the word processor dialog interface is supported for text element creation.

    I would suggest you take a look at the CreateTextElement1 function in the VBA Help and use that.

    Rod Wing
    Senior Systems Analyst

Reply
  • It's not just your macro. The same thing happens when you enter those key-ins into the Key-In Browser. I'm actually surprised the Place Text key-in is still available. According to the documentation all of the older text editor interfaces are no longer supported in CONNECT, only the word processor dialog interface is supported for text element creation.

    I would suggest you take a look at the CreateTextElement1 function in the VBA Help and use that.

    Rod Wing
    Senior Systems Analyst

Children
No Data