I'm looking to replace an old mdl routine that rotates a text element by user selection (single, fence, or all) to the active angle set in MicroStation using VBA. I've not made it completely through my book "Learning MicroStation VBA" yet, so I'm at a lose as to where to start. The idea is to click the button to activate the code, then select the text to rotate with an option of selecting multiple pieces of text by individual selection or by using the Element Selection tool. How should I need to attack this?
Thanks in advance,
Dustin
Dustin Hunt said:I'm looking to replace an old mdl routine that rotates a text element by user selection
Here's a freeware VBA project Text Rotator.
Although developed using MicroStation CONNECT, it should work also in MicroStation V8i.
Regards, Jon Summers LA Solutions
Answer Verified By: Dustin Hunt
Thanks Jon, works like a charm. It never ceases to amaze me to see how complex these applications can get for doing what seems to be simple tasks. I've got a long way to go!
Dustin Hunt said:works like a charm
I'm pleased that solves your problem. I originally wrote the code to implement rotation in a 2D model. I've updated the code in the Text Rotator to show how you can rotate text in a 3D model.
Dustin Hunt said:It never ceases to amaze me to see how complex these applications can get
For 3D rotation and calculations, you need to comprehend rotation matrices. Fortunately, MicroStation VBA (and the other MicroStation APIs for .NET and C++) supplies the Matrix3d UDT and a number of methods that deal with them.
Matrix3d