qtmodel 0.6.14__tar.gz → 0.6.16__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of qtmodel might be problematic. Click here for more details.

@@ -1,7 +1,7 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: qtmodel
3
- Version: 0.6.14
4
- Summary: python modeling for qt 2025-04-27
3
+ Version: 0.6.16
4
+ Summary: python modeling for qt 2025-05-06
5
5
  Home-page: https://github.com/Inface0443/pyqt
6
6
  Author: dqy-zhj
7
7
  Author-email: 1105417715@qq.com
@@ -12,9 +12,9 @@ Classifier: Programming Language :: Python :: 3
12
12
  Classifier: Operating System :: OS Independent
13
13
  Description-Content-Type: text/markdown
14
14
 
15
- > 最新版本 V0.6.14 - 2025-04-27
15
+ > 最新版本 V0.6.16 - 2025-05-06
16
16
  > pip install --upgrade qtmodel -i https://pypi.org/simple
17
- - 新增部分接口
17
+ - 新增更新结构组接口
18
18
  # 建模操作
19
19
  ## 建模助手
20
20
  ### create_cantilever_bridge
@@ -288,6 +288,19 @@ mdb.add_structure_group(name="新建结构组1")
288
288
  mdb.add_structure_group(name="新建结构组2",node_ids=[1,2,3,4],element_ids=[1,2])
289
289
  ```
290
290
  Returns: 无
291
+ ### update_structure_group
292
+ 更新结构组信息
293
+ > 参数:
294
+ > name: 结构组名
295
+ > new_name: 新结构组名
296
+ > node_ids: 节点编号列表(可选参数)
297
+ > element_ids: 单元编号列表(可选参数)
298
+ ```Python
299
+ # 示例代码
300
+ from qtmodel import *
301
+ mdb.update_structure_group(name="结构组",new_name="新建结构组",node_ids=[1,2,3,4],element_ids=[1,2])
302
+ ```
303
+ Returns: 无
291
304
  ### update_structure_group_name
292
305
  更新结构组名
293
306
  > 参数:
@@ -1,6 +1,6 @@
1
- > 最新版本 V0.6.14 - 2025-04-27
1
+ > 最新版本 V0.6.16 - 2025-05-06
2
2
  > pip install --upgrade qtmodel -i https://pypi.org/simple
3
- - 新增部分接口
3
+ - 新增更新结构组接口
4
4
  # 建模操作
5
5
  ## 建模助手
6
6
  ### create_cantilever_bridge
@@ -274,6 +274,19 @@ mdb.add_structure_group(name="新建结构组1")
274
274
  mdb.add_structure_group(name="新建结构组2",node_ids=[1,2,3,4],element_ids=[1,2])
275
275
  ```
276
276
  Returns: 无
277
+ ### update_structure_group
278
+ 更新结构组信息
279
+ > 参数:
280
+ > name: 结构组名
281
+ > new_name: 新结构组名
282
+ > node_ids: 节点编号列表(可选参数)
283
+ > element_ids: 单元编号列表(可选参数)
284
+ ```Python
285
+ # 示例代码
286
+ from qtmodel import *
287
+ mdb.update_structure_group(name="结构组",new_name="新建结构组",node_ids=[1,2,3,4],element_ids=[1,2])
288
+ ```
289
+ Returns: 无
277
290
  ### update_structure_group_name
278
291
  更新结构组名
279
292
  > 参数:
@@ -429,6 +429,24 @@ class Mdb:
429
429
  except Exception as ex:
430
430
  raise Exception(ex)
431
431
 
432
+ @staticmethod
433
+ def update_structure_group(name: str = "", new_name: str = "", node_ids: list[int] = None, element_ids: list[int] = None):
434
+ """
435
+ 更新结构组信息
436
+ Args:
437
+ name: 结构组名
438
+ new_name: 新结构组名
439
+ node_ids: 节点编号列表(可选参数)
440
+ element_ids: 单元编号列表(可选参数)
441
+ Example:
442
+ mdb.update_structure_group(name="结构组",new_name="新建结构组",node_ids=[1,2,3,4],element_ids=[1,2])
443
+ Returns: 无
444
+ """
445
+ try:
446
+ qt_model.UpdateStructureGroup(name=name, newName=new_name, nodeIds=node_ids, elementIds=element_ids)
447
+ except Exception as ex:
448
+ raise Exception(ex)
449
+
432
450
  @staticmethod
433
451
  def update_structure_group_name(name: str = "", new_name: str = ""):
434
452
  """
@@ -1458,7 +1476,7 @@ class Mdb:
1458
1476
  biasX=bias_x, biasY=bias_y, secProperty=sec_property)
1459
1477
  elif sec_type == "工字钢梁" or sec_type == "箱型钢梁":
1460
1478
  qt_model.AddSection(id=index, name=name, secType=sec_type, secInfo=sec_info,
1461
- ribInfo=rib_info, ribPlaceList=rib_place, biasType=bias_type, centerType=center_type,
1479
+ ribInfo=rib_info, ribPlace=rib_place, biasType=bias_type, centerType=center_type,
1462
1480
  shearConsider=shear_consider, biasX=bias_x, biasY=bias_y, secProperty=sec_property)
1463
1481
  elif sec_type == "特性截面" or sec_type.startswith("自定义"):
1464
1482
  qt_model.AddSection(id=index, name=name, secType=sec_type, secInfo=sec_info, biasType=bias_type,
@@ -1,7 +1,7 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: qtmodel
3
- Version: 0.6.14
4
- Summary: python modeling for qt 2025-04-27
3
+ Version: 0.6.16
4
+ Summary: python modeling for qt 2025-05-06
5
5
  Home-page: https://github.com/Inface0443/pyqt
6
6
  Author: dqy-zhj
7
7
  Author-email: 1105417715@qq.com
@@ -12,9 +12,9 @@ Classifier: Programming Language :: Python :: 3
12
12
  Classifier: Operating System :: OS Independent
13
13
  Description-Content-Type: text/markdown
14
14
 
15
- > 最新版本 V0.6.14 - 2025-04-27
15
+ > 最新版本 V0.6.16 - 2025-05-06
16
16
  > pip install --upgrade qtmodel -i https://pypi.org/simple
17
- - 新增部分接口
17
+ - 新增更新结构组接口
18
18
  # 建模操作
19
19
  ## 建模助手
20
20
  ### create_cantilever_bridge
@@ -288,6 +288,19 @@ mdb.add_structure_group(name="新建结构组1")
288
288
  mdb.add_structure_group(name="新建结构组2",node_ids=[1,2,3,4],element_ids=[1,2])
289
289
  ```
290
290
  Returns: 无
291
+ ### update_structure_group
292
+ 更新结构组信息
293
+ > 参数:
294
+ > name: 结构组名
295
+ > new_name: 新结构组名
296
+ > node_ids: 节点编号列表(可选参数)
297
+ > element_ids: 单元编号列表(可选参数)
298
+ ```Python
299
+ # 示例代码
300
+ from qtmodel import *
301
+ mdb.update_structure_group(name="结构组",new_name="新建结构组",node_ids=[1,2,3,4],element_ids=[1,2])
302
+ ```
303
+ Returns: 无
291
304
  ### update_structure_group_name
292
305
  更新结构组名
293
306
  > 参数:
@@ -11,7 +11,7 @@ with open("README.md", "r", encoding="utf-8") as fh:
11
11
 
12
12
  setup(
13
13
  name="qtmodel",
14
- version=f"V0.6.14",
14
+ version=f"V0.6.16",
15
15
  author="dqy-zhj",
16
16
  author_email="1105417715@qq.com",
17
17
  description=f"python modeling for qt {datetime.now().date()} ",
File without changes
File without changes
File without changes
File without changes