Hi all,
Trying to work out how to place a predefined text string onto the drawing, without bring up any menus or options.
Have tried
CadInputQueue.SendKeyin "place text" CadInputQueue.SendKeyin sText
But the keyin window appears and i cant work out how to close it.
Also have tried
CadInputQueue.SendKeyin "place dialogtext icon" CadInputQueue.SendMessageToApplication "WORDPROC", sText
Which brings up the word processor but doesn't input the text.
Ideally i'd like to simple click a button on a form and the text appears on the drawing at the cursor ready for the user to select the location.
Cheers,
Rob
I recommend you to use the CreateTextElement1 method to create a TextElement and then call ActiveModelReference.AddElement to add this text element to your model.
HTH, Yongan