Click or drag to resize

FrameManagerGetSnap Method

특정 위치를 좌표계 위치 표시 형식(FR23+100)으로 반환

Namespace:  VIZCore3D.NET.Manager
Assembly:  VIZCore3D.NET (in VIZCore3D.NET.dll) Version: 2.8.24.1104 (2.8.24.1104)
Syntax
C#
public FrameItem GetSnap(
	Axis axis,
	float point
)

Parameters

axis
Type: VIZCore3D.NET.DataAxis
point
Type: SystemSingle
위치

Return Value

Type: FrameItem
좌표계 위치
Examples
C#
// VIZCore3D.NET Control
private VIZCore3D.NET.VIZCore3DControl vizcore3d;

private void Example()
{
    string model = "C:\\MODEL\\400.viz";
    string frame = "C:\\MODEL\\F2000.dmp";

    vizcore3d.Model.Open(model);
    vizcore3d.Frame.Open(frame);

    if (vizcore3d.Model.IsOpen() == false) return;
    if (vizcore3d.Frame.HasFrame == false) return;

    VIZCore3D.NET.Data.FrameItem item = vizcore3d.Frame.GetSnap(Data.Axis.X, 5000.0f);

    // Result       
    // item.Axis    : X
    // item.Label   : FR
    // item.GridID  : 7
    // item.Offset  : 100
    System.Diagnostics.Trace.WriteLine(item.ToString());
}
See Also