API Help
EPLAN API / User Guide / API DataModel / API Pro Panel / ViewPlacement (model view in GUI)
In This Topic
    ViewPlacement (model view in GUI)
    In This Topic

    Model views are objects used to show a 3d view on a standard EPLAN page . 

     

    Example:

    C#
    Copy Code
    //creating 3d objects
    InstallationSpace oInstallationSpace = new InstallationSpace();
    oInstallationSpace.Create(m_oTestProject, "DataModel_081MountingRail_Test001");
    Cabinet oCabinet = new Cabinet();
    oCabinet.Create(m_oTestProject, "TS 8286.500", "1");
    oCabinet.Parent = oInstallationSpace;
    
    //creating view placement
    ViewPlacement oViewPlacement = new ViewPlacement();
    oViewPlacement.Create(m_oTestProject, m_InstallationSpace);
    oViewPlacement.Page = oPage;
    oViewPlacement.Area = new RectangleD(new PointD(0.0, 0.0), new PointD(200.0, 200.0));
    oViewPlacement.RootElements = new Placement3D[]{oCabinet};
    oViewPlacement.Update();