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

Method get_name_list

loading/load_pattern.py:243–257  ·  view source on GitHub ↗

Get the names of all load patterns. Args: model: SAP2000 SapModel object Returns: List of load pattern names.

(model)

Source from the content-addressed store, hash-verified

241
242 @staticmethod
243 def get_name_list(model) -> List[str]:
244 """
245 Get the names of all load patterns.
246
247 Args:
248 model: SAP2000 SapModel object
249
250 Returns:
251 List of load pattern names.
252 """
253 result = model.LoadPatterns.GetNameList(0, [])
254 names = com_data(result, 1)
255 if names:
256 return list(names)
257 return []
258
259 @classmethod
260 def get_by_name(cls, model, name: str) -> Optional["LoadPattern"]:

Callers 2

_createMethod · 0.95
get_allMethod · 0.45

Calls 1

com_dataFunction · 0.90

Tested by

no test coverage detected