public override Space Create(RevitSpace rSpace)
        {
            var cHeight   = SpacePropertyService.CalculateCeilingHeight(rSpace);
            var spaceType = SpacePropertyService.GetSpaceTypeAsString(rSpace);
            var oAir      = SpacePropertyService.GetOutsideAirFromSpace(rSpace);

            var space = new Space
            {
                Id          = rSpace.UniqueId,
                SpaceName   = rSpace.Name,
                SpaceNumber = rSpace.Number,
                RoomName    = rSpace.Room?.Name,
                RoomNumber  = rSpace.Room?.Number,

                Area = rSpace.Area,
                SpecifiedExhaustAirflow = rSpace.ActualExhaustAirflow,
                SpecifiedSupplyAirflow  = rSpace.ActualSupplyAirflow,
                SpecifiedReturnAirflow  = rSpace.ActualReturnAirflow,
                NumberOfPeople          = rSpace.NumberofPeople,
                OccupancyCategory       = spaceType,
                CeilingHeight           = cHeight == 0.0 ? rSpace.UnboundedHeight : cHeight,
                PercentageOfOutsideAir  = oAir
            };

            return(space);
        }
Beispiel #2
0
        public override Space Create(RevitSpace rSpace)
        {
            var space = new Space
            {
                Area                   = rSpace.Area,
                CFM_Exhaust            = rSpace.ActualExhaustAirflow,
                CFM_Supply             = rSpace.ActualSupplyAirflow,
                CFM_Vent               = rSpace.ActualReturnAirflow,
                NumberOfPeople         = rSpace.NumberofPeople,
                OccupancyCategory      = SpacePropertyService.GetSpaceTypeAsString(rSpace),
                CeilingHeight          = SpacePropertyService.CalculateCeilingHeight(rSpace),
                PercentageOfOutsideAir = SpacePropertyService.GetOutsideAirFromSpace(rSpace)
            };

            return(space);
        }