View in the model.

Hi all.

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

 Regards

Parents
  • 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

Reply
  • 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

Children
No Data