I've written a VBA macro that creates a 22-line text node element using CreateTextNodeElement2 and then places it using the GetInput method. The code runs well, but I would like the text to be visible when the user places it. Using CadInputQueue.SendCommand PLACE TEXT ICON allows the user to see the text as it's being placed, but because I have so many lines of text to place, CreateTextNodeElement2 seems to be the best method.
Any help would be appreciated!
Thanks in advance,
You need to write a VBA class that Implements IPrimitiveCommandEvents.
Your placement tool will work just like MicroStation placement tools.
IPrimitiveCommandEvents provides a _Dynamics event.
That event provides an opportunity for you to show your user what the text node looks like before it's placed.
There are examples in VBA help …
We've written an
example of a Place Shape tool
that Implements IPrimitiveCommandEvents.
Regards, Jon Summers
Regards, Jon Summers LA Solutions
Thanks a bunch for your help. I finally got it running this morning.