Пример #1
0
        public void addpart(String PartName, UInt32 U_FaceCount)
        {
            if (U_FaceCount == 0)
            {
                U_FaceCount = 0;
            }
            bool bkatki = false;
            int  i      = 0;

            while (i < RevitData.Count && false == bkatki)
            {
                Saveriter temp = RevitData[i] as Saveriter;
                if (temp.Nimi == PartName)
                {
                    bkatki = true;
                }
                else
                {
                    i++;
                }
            }
            if (bkatki == false)
            {
                Saveriter OsaVarasto = new Saveriter();
                OsaVarasto.Nimi  = PartName;
                OsaVarasto.UFACE = U_FaceCount;
                RevitData.Add(OsaVarasto);
            }
            // Initialize data structures for the sample HSF file creation

            writer.addPart("SamplePart", 1);
        }
Пример #2
0
 public void HSFaddpart(cl_DataStore SaveData)
 {
     writer.addPart(SaveData.PartName, SaveData.uPartFaceCount);
 }