| 1207 | } |
| 1208 | |
| 1209 | boost::optional<DaylightingDeviceLightWell> SubSurface_Impl::addDaylightingDeviceLightWell() const { |
| 1210 | boost::optional<DaylightingDeviceLightWell> result = this->daylightingDeviceLightWell(); |
| 1211 | if (result) { |
| 1212 | return result; |
| 1213 | } |
| 1214 | |
| 1215 | if (allowDaylightingDeviceLightWell()) { |
| 1216 | try { |
| 1217 | result = DaylightingDeviceLightWell(getObject<SubSurface>()); |
| 1218 | } catch (const std::exception&) { |
| 1219 | } |
| 1220 | } |
| 1221 | |
| 1222 | return result; |
| 1223 | } |
| 1224 | |
| 1225 | boost::optional<ModelObject> SubSurface_Impl::surfaceAsModelObject() const { |
| 1226 | OptionalModelObject result; |