System.Object
EPLAN.Harness.API.DataStructures.ViewsController
System.Object
EPLAN.Harness.API.DataStructures.ViewsController
public class ViewsController
// Get a graphic document. GraphicDocument document = GetDocument("Document"); document.Open(false, false); // Get the views controller. ViewsController views = document.Views; // Delete view from mapped slot 2. views.View2 = null; // Alternative method using collection of mapped views: // views.MappedViews[1] = null; // Save the document. document.Save();
// Get a graphic document. GraphicDocument document = GetDocument("Document"); document.Open(false, false); // Get the views controller. ViewsController views = document.Views; // Move view from mapped slot 4 to the slot 1. View view = views.View4; views.View1 = view; // Alternative method using collection of mapped views: // View view = views.MappedViews[3]; // views.MappedViews[0] = view; // Mapped slot 4 returns null now. // views.View4 == null // Save the document. document.Save();
// Get a graphic document. GraphicDocument document = GetDocument("Document"); document.Open(false, false); // Get the views controller. ViewsController views = document.Views; // Move view from mapped slot 3 to the list of unmapped views. View view3 = views.View3; views.UnmappedViews.Add(view3); // Alternative method using collection of mapped views: // View view3 = views.MappedViews[2]; // views.UnmappedViews.Add(view3); // Mapped slot 3 returns null now. // views.View3 == null // views.MappedViews[2] == null // Save the document. document.Save();
Name | Description | |
---|---|---|
MappedViews | Collection of mapped views. | |
UnmappedViews | Collection of unmapped views. | |
View1 | Mapped view slot 1. | |
View2 | Mapped view slot 2. | |
View3 | Mapped view slot 3. | |
View4 | Mapped view slot 4. | |
View5 | Mapped view slot 5. | |
View6 | Mapped view slot 6. | |
View7 | Mapped view slot 7. | |
View8 | Mapped view slot 8. |
Name | Description | |
---|---|---|
SaveCurrentView | Save current camera and visibility state. | |
UseView | Restore saved camera and visibility state from given view. |