コード例 #1
0
        /// <summary>
        /// get the curtain system type from the active Revit document
        /// </summary>
        private void GetCurtainSystemType()
        {
            FilteredElementCollector filteredElementCollector = new FilteredElementCollector(m_document);

            filteredElementCollector.OfClass(typeof(CurtainSystemType));
            m_curtainSystemType = filteredElementCollector.FirstElement() as CurtainSystemType;
        }
コード例 #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;
            }
        }
コード例 #3
0
        /// <summary>
        /// get the curtain system type from the active Revit document
        /// </summary>
        private void GetCurtainSystemType()
        {
            CurtainSystemTypeSet types = m_document.CurtainSystemTypes;

            foreach (CurtainSystemType type in types)
            {
                if (null == type)
                {
                    continue;
                }

                m_curtainSystemType = type;
                break;
            }
        }
コード例 #4
0
        public void Create_Valid()
        {
            CurtainSystemType type = CurtainSystemType.ByName("5' x 10'");

            Assert.NotNull(type);

            var mass = Revit.Elements.ElementSelector.ByElementId(205302);

            Assert.NotNull(mass);

            var system = CurtainSystem.ByFace(mass.Faces.ElementAt(0), type);

            Assert.NotNull(system);

            Assert.NotNull(system.Faces);
            Assert.NotNull(system.InternalCurtainSystem);
        }
コード例 #5
0
        private void Stream(ArrayList data, CurtainSystemType curSysType)
        {
            data.Add(new Snoop.Data.ClassSeparator(typeof(CurtainSystemType)));

             // No data at this level yet!
        }
コード例 #6
0
        Stream(ArrayList data, CurtainSystemType curSysType)
        {
            data.Add(new Snoop.Data.ClassSeparator(typeof(CurtainSystemType)));

            // No data at this level yet!
        }
コード例 #7
0
ファイル: MyDocument.cs プロジェクト: AMEE/revit
      /// <summary>
      /// get the curtain system type from the active Revit document
      /// </summary>
      private void GetCurtainSystemType()
      {
         CurtainSystemTypeSet types = m_document.CurtainSystemTypes;
         foreach (CurtainSystemType type in types)
         {
            if (null == type)
            {
               continue;
            }

            m_curtainSystemType = type;
            break;
         }
      }