Esempio n. 1
0
        Stream(ArrayList data, HostedSweepType hostSweepType)
        {
            data.Add(new Snoop.Data.ClassSeparator(typeof(HostedSweepType)));

            // No data at this level yet!

            FasciaType fasciaType = hostSweepType as FasciaType;

            if (fasciaType != null)
            {
                Stream(data, fasciaType);
                return;
            }

            Autodesk.Revit.DB.Architecture.GutterType gutterType = hostSweepType as Autodesk.Revit.DB.Architecture.GutterType;
            if (gutterType != null)
            {
                Stream(data, gutterType);
                return;
            }

            SlabEdgeType slabEdgeType = hostSweepType as SlabEdgeType;

            if (slabEdgeType != null)
            {
                Stream(data, slabEdgeType);
                return;
            }
        }
Esempio n. 2
0
        Stream(ArrayList data, HostObjAttributes hostAtt)
        {
            data.Add(new Snoop.Data.ClassSeparator(typeof(HostObjAttributes)));

            data.Add(new Snoop.Data.Object("Compound Structure", hostAtt.GetCompoundStructure()));

            ContFootingType contFootingType = hostAtt as ContFootingType;

            if (contFootingType != null)
            {
                Stream(data, contFootingType);
                return;
            }

            CurtainSystemType curSysType = hostAtt as CurtainSystemType;

            if (curSysType != null)
            {
                Stream(data, curSysType);
                return;
            }

            FloorType floorType = hostAtt as FloorType;

            if (floorType != null)
            {
                Stream(data, floorType);
                return;
            }

            HostedSweepType hostSweepType = hostAtt as HostedSweepType;

            if (hostSweepType != null)
            {
                Stream(data, hostSweepType);
                return;
            }

            RoofType roofType = hostAtt as RoofType;

            if (roofType != null)
            {
                Stream(data, roofType);
                return;
            }

            WallType wallType = hostAtt as WallType;

            if (wallType != null)
            {
                Stream(data, wallType);
                return;
            }
        }
Esempio n. 3
0
        private void Stream(ArrayList data, HostedSweepType hostSweepType)
        {
            data.Add(new Snoop.Data.ClassSeparator(typeof(HostedSweepType)));

             // No data at this level yet!

             FasciaType fasciaType = hostSweepType as FasciaType;
             if (fasciaType != null)
             {
            Stream(data, fasciaType);
            return;
             }

             Autodesk.Revit.DB.Architecture.GutterType gutterType = hostSweepType as Autodesk.Revit.DB.Architecture.GutterType;
             if (gutterType != null)
             {
            Stream(data, gutterType);
            return;
             }

             SlabEdgeType slabEdgeType = hostSweepType as SlabEdgeType;
             if (slabEdgeType != null)
             {
            Stream(data, slabEdgeType);
            return;
             }
        }