MCPcopy Create free account
hub / github.com/HeisenbergJY1/PySap2000 / _delete

Method _delete

loading/load_pattern.py:166–179  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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 """

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected