bool ShadingSurfaceGroup_Impl::setShadingSurfaceType(std::string shadingSurfaceType) { bool result = false; if (istringEqual("Site", shadingSurfaceType)){ resetSpace(); result = setString(OS_ShadingSurfaceGroupFields::ShadingSurfaceType, shadingSurfaceType); }else if (istringEqual("Building", shadingSurfaceType)){ resetSpace(); result = setString(OS_ShadingSurfaceGroupFields::ShadingSurfaceType, shadingSurfaceType); }else if (istringEqual("Space", shadingSurfaceType)){ result = this->space(); if (result){ bool test = setString(OS_ShadingSurfaceGroupFields::ShadingSurfaceType, shadingSurfaceType); OS_ASSERT(test); } } return result; }
bool InteriorPartitionSurfaceGroup_Impl::setSpaceAsModelObject(const boost::optional<ModelObject>& modelObject) { if (modelObject) { OptionalSpace intermediate = modelObject->optionalCast<Space>(); if (intermediate) { return setSpace(*intermediate); } else { return false; } } else { resetSpace(); } return true; }