View in the model.

Hi all.

How do I know the views that are open and which is the active?

 Regards

  • If you have not yet, you may want to take a look in the MicroStation V8 VBA help for the "View Object". There is a good deal of information regarding views there.

      

  • mediocad:
    How do I know the views that are open and which is the active?

    All open views are 'active'. As a user moves the cursor from view to view, she can digitise or query or whatever. You don't have to activate a view in order to do something with its contents.

    Regards, Jon Summers
    LA Solutions

     
    Regards, Jon Summers
    LA Solutions

  • Thanks Phil and Jon,

    I do not want to activate a view. I have a program that writes some text in a box. But if you do not use Application.ActiveDesignFile.Views(1).Redraw when I want to insert each text do not appear all text to the end. I would like to know that number of view is the person to do the Application.ActiveDesignFile.Views(1).Redraw in the View that I can see.

    Regards

     

  • mediocad:

    I have a program that writes some text in a box. But if you do not use Application.ActiveDesignFile.Views(1).Redraw when I want to insert each text do not appear all text to the end. I would like to know that number of view is the person to do the Application.ActiveDesignFile.Views(1).Redraw in the View that I can see.

    The ActiveModelReference.AddElement adds your TextElement to a model. With MicroStation XM and later, you don't need to do anything more to have that new element appear in your model.

    When you move an element programmatically (e.g. Element.Move) you might need Element.Redraw.

    In neither case should you need to redraw a view.

    Regards, Jon Summers
    LA Solutions

     
    Regards, Jon Summers
    LA Solutions