Example #1
0
    /// <summary>
    /// 创建电路
    /// </summary>
    public static void CreateCirCuit()
    {
        List <NDlabObject> l = SearchLabObject(SearchCicuitType.NormalCircuit, false);

        foreach (NDlabObject o in l)
        {
            LabObjectDataFactory.ResetCircuitRunData(o.LabObjID);
        }

        CircuitM.CreateCircuit();
        foreach (NDlabObject o in l)
        {
            if (o != null)
            {
                (o as NDCircuitObject).CalcCircuit();
            }
        }
    }