Delete a load pattern. Note: A load pattern cannot be deleted if it is referenced by a load case or if it is the only remaining load pattern. Args: model: SAP2000 SapModel object Returns: `0` if successful.
(self, model)
| 164 | return 0 if ret1 == 0 and ret2 == 0 else -1 |
| 165 | |
| 166 | def _delete(self, model) -> int: |
| 167 | """ |
| 168 | Delete a load pattern. |
| 169 | |
| 170 | Note: A load pattern cannot be deleted if it is referenced by a load case |
| 171 | or if it is the only remaining load pattern. |
| 172 | |
| 173 | Args: |
| 174 | model: SAP2000 SapModel object |
| 175 | |
| 176 | Returns: |
| 177 | `0` if successful. |
| 178 | """ |
| 179 | return model.LoadPatterns.Delete(self.name) |
| 180 | |
| 181 | def change_name(self, model, new_name: str) -> int: |
| 182 | """ |
nothing calls this directly
no outgoing calls
no test coverage detected