[V8 BASIC] Rotate Using a Macro?

Hello all,

I just recently started using Microstation 2004 for a new job. I've been trying to find a reliable way to reliably rotate the selected element by set increments using a Macro. For example using F1 would rotate the selected element 1 degree to the left and F2 would rotate it 1 degree to the right. Normally I can figure this kind of thing out for myself but I've had difficulty finding the right documentation. If anyone can point me in the right direction for how to accomplish this or a resource that can effectively explain how to learn to do this I'd be very grateful.

Thank you

Parents Reply
  • Hi Tristan,

    I've been trying to find a reliable way to reliably rotate the selected element by set increments

    It sounds like bad idea, in context of recently shared details.

    using a Macro

    From your question, it looks like you think about MicroStation BASIC. Be aware it is obsolete tool, that should not be used for any new code. MicroStation VBA is BASIC successor in MicroStation, offering better tools and API.

    resource that can effectively explain how to learn to do this

    What is your current knowledge? To write a macro, to learn the language (VBA) is mandatory first step. To understand MicroStation API and its features is the second one.

    There is Learning MicroStation VBA book available and even when it is quite old, it is still useful (especially in context of V8 2004 Edition ;-). But to learn coding is long process.

    I miss a lot of the quality-of-life stuff you get with modern programs

    Yes. Even in old and not supported anymore MicroStation V8i, the discussed task can be done even without any coding I guess, only using AccuDraw (even though macro usually can streamline a workflow further).

    to align them more or less perpendicular/parallel to the lines in the drawing

    "More or less" ... what is it? It does not sound like engineering definition ;-)

    It sounds like to write modification tool, that allows to select an element (or to use Selection set?), define whether mode should be parallel or perpendicular, and to select an element defining the orientation. Is it correct?

    But before any learning / coding / analysis start, I recommend to search for available tools. Even when V8 2004 is very old, because of MicroStation VBA compatibility, different scripts and macros can be found, both in wiki and attached to discussions. I recommend to start with Active Angle Assistant.

    With regards,

      Jan

Children