Click or drag to resize

FrameManagerOpenUri Method

Frame(SHIP GRID) URI 열기

Namespace:  VIZCore3D.NET.Manager
Assembly:  VIZCore3D.NET (in VIZCore3D.NET.dll) Version: 2.8.24.1104 (2.8.24.1104)
Syntax
C#
public bool OpenUri(
	string uri
)

Parameters

uri
Type: SystemString
Frame(SHIP GRID) 파일 URI : https://www.softhills.net/model/frame.dmp

Return Value

Type: Boolean
True : Sucess, False : Fail
Examples
C#
// VIZCore3D.NET Control
private VIZCore3D.NET.VIZCore3DControl vizcore3d;

private void Example()
{
    if (vizcore3d.Model.IsOpen() == false) return;
    if (vizcore3d.Frame.HasFrame == true) return;

    string file = "C:\\Frame\\SHIP.dmp";
    vizcore3d.Frame.Open(file);

    if (vizcore3d.Frame.Visible == false)
        vizcore3d.Frame.Visible = true;
}

private void ExampleUri()
{
    if (vizcore3d.Model.IsOpen() == false) return;
    if (vizcore3d.Frame.HasFrame == true) return;

    string uri = "http://server/SHIP.dmp";
    vizcore3d.Frame.OpenUri(uri);

    if (vizcore3d.Frame.Visible == false)
        vizcore3d.Frame.Visible = true;
}

private void ExampleStream()
{
    if (vizcore3d.Model.IsOpen() == false) return;
    if (vizcore3d.Frame.HasFrame == true) return;

    string uri = "http://server/SHIP.dmp";
    System.Net.WebClient client = new System.Net.WebClient();
    byte[] buffer = client.DownloadData(uri);
    vizcore3d.Frame.OpenStream(buffer);

    if (vizcore3d.Frame.Visible == false)
        vizcore3d.Frame.Visible = true;
}
See Also