/// <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; }
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; } }
/// <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; } }
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); }
private void Stream(ArrayList data, CurtainSystemType curSysType) { data.Add(new Snoop.Data.ClassSeparator(typeof(CurtainSystemType))); // No data at this level yet! }
Stream(ArrayList data, CurtainSystemType curSysType) { data.Add(new Snoop.Data.ClassSeparator(typeof(CurtainSystemType))); // No data at this level yet! }