Click or drag to resize

ClashManagerUpdate Method

간섭검사 조건 변경

Namespace:  VIZCore3DX.NET.Manager
Assembly:  VIZCore3DX.NET (in VIZCore3DX.NET.dll) Version: 1.0.25.515 (1.0.25.515)
Syntax
C#
public bool Update(
	ClashTest item
)

Parameters

item
Type: VIZCore3DX.NET.DataClashTest
간섭검사 항목

Return Value

Type: Boolean
조건 변경 결과
Examples
C#
// VIZCore3DX.NET Control
private VIZCore3DX.NET.VIZCore3DXControl vizcore3dx;

private void Example()
{
    VIZCore3DX.NET.Data.ClashTest clash = new VIZCore3DX.NET.Data.ClashTest();

    clash.TestKind = VIZCore3DX.NET.Data.ClashTest.ClashTestKind.GROUP_VS_GROUP;

    clash.UseClearanceValue = false;
    clash.ClearanceValue = 3.0f;
    clash.UseRangeValue = false;
    clash.RangeValue = 2.0f;
    clash.PenetrationTolerance = 1.0f;

    List<VIZCore3DX.NET.Data.Node> groupA =
        vizcore3dx.Object3D.Find.QuickSearch(
            new List<string>() { "EQUIPMENT" }
            , false
            , false
            , false
            , false
            , true
            );

    clash.GroupA = groupA;

    List<VIZCore3DX.NET.Data.Node> groupB =
        vizcore3dx.Object3D.Find.QuickSearch(
            new List<string>() { "HULL" }
            , false
            , false
            , false
            , false
            , true
            );

    clash.GroupB = groupB;

    if (clash.ID == -1)
    {
        bool result = vizcore3dx.Clash.Add(clash);

        MessageBox.Show(
            string.Format("ClashTest : {0} / {1}", result == true ? "OK" : "NG", clash.ID)
            , "VIZCore3DX.NET.ClashTest"
            , MessageBoxButtons.OK
            , result == true ? MessageBoxIcon.Information : MessageBoxIcon.Error
            );
    }
    else
    {
        vizcore3dx.Clash.Update(clash);
    }
}
See Also