示例#1
0
        public List <LoadModel> addFamilyInstanceLoadModel(FamilyInstance familyInstance, LoadType loadType, double poundsForcePerSquareFoot)
        {
            List <LoadModel> _loadModels = createLoadModels(familyInstance, loadType);

            foreach (LoadModel _loadModel in _loadModels)
            {
                _loadModel.PoundsForcePerSquareFoot = poundsForcePerSquareFoot;
            }

            LoadModels.AddRange(_loadModels);
            return(_loadModels);
        }
示例#2
0
        public List <LoadModel> addWallLoadModel(Wall wall, LoadType loadType, double poundsForcePerSquareFoot)
        {
            List <LoadModel> _loadModels = createLoadModels(wall, loadType);

            foreach (LoadModel _loadModel in _loadModels)
            {
                _loadModel.PoundsForcePerSquareFoot = poundsForcePerSquareFoot;
            }

            LoadModels.AddRange(_loadModels);
            return(_loadModels);
        }
示例#3
0
        public List <LoadModel> addFloorDemandLoadModel(Floor floor, double poundsForcePerSquareFoot)
        {
            double?_floorThickness = floor.get_Parameter(BuiltInParameter.FLOOR_ATTR_THICKNESS_PARAM)?.AsDouble();

            if (_floorThickness != null && _floorThickness.HasValue && _floorThickness.Value < ConcreteDepthFeet)
            {
                ConcreteDepthFeet = _floorThickness.Value;
            }

            List <LoadModel> _loadModels = createFloorLoadModels(floor, LoadType.Demand);

            foreach (LoadModel _loadModel in _loadModels)
            {
                _loadModel.PoundsForcePerSquareFoot = poundsForcePerSquareFoot;
            }

            LoadModels.AddRange(_loadModels);
            return(_loadModels);
        }