qtmodel 0.5.43__tar.gz → 0.5.45__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.5.43
4
- Summary: python modeling for qt 24/11/27
3
+ Version: 0.5.45
4
+ Summary: python modeling for qt 2024-12-09
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.5.43 - 2024.12.6
15
+ # 最新版本 V0.5.45 - 2024-12-09
16
16
  > pip install --upgrade qtmodel -i https://pypi.org/simple
17
- - 优化钢束导入并修复单箱多室混凝土截面导入
17
+ - 添加安装方式更改接口
18
18
  ## 项目管理
19
19
  ### update_bim
20
20
  刷新Bim模型信息
@@ -1893,6 +1893,16 @@ from qtmodel import *
1893
1893
  mdb.update_weight_stage(name="施工阶段1",structure_group_name="默认结构组",weight_stage_id=1)
1894
1894
  ```
1895
1895
  Returns: 无
1896
+ ### update_all_stage_setting_type
1897
+ 更新施工阶段安装方式
1898
+ > 参数:
1899
+ > setting_type:安装方式 (1-接线法 2-无应力法 3-变形法 4-切线法)
1900
+ ```Python
1901
+ # 示例代码
1902
+ from qtmodel import *
1903
+ mdb.update_all_stage_setting_type(setting_type=1)
1904
+ ```
1905
+ Returns: 无
1896
1906
  ### remove_construction_stage
1897
1907
  按照施工阶段名删除施工阶段,默认删除所有施工阶段
1898
1908
  > 参数:
@@ -1945,6 +1955,32 @@ mdb.remove_load_combine(name="荷载组合1")
1945
1955
  ```
1946
1956
  Returns: 无
1947
1957
  ## 视图控制
1958
+ ### set_view_camera
1959
+ 更改三维显示相机设置
1960
+ > 参数:
1961
+ > camera_point: 相机坐标点
1962
+ > focus_point: 相机焦点
1963
+ > camera_rotate:相机绕XYZ旋转角度
1964
+ > scale: 缩放系数
1965
+ ```Python
1966
+ # 示例代码
1967
+ from qtmodel import *
1968
+ odb.set_view_camera(camera_point=(-100,-100,100),focus_point=(0,0,0))
1969
+ ```
1970
+ Returns: 无
1971
+ ### set_view_direction
1972
+ 更改三维显示默认视图
1973
+ > 参数:
1974
+ > direction: 1-空间视图1 2-前视图 3-三维视图2 4-左视图 5-顶视图 6-右视图 7-空间视图3 8-后视图 9-空间视图4 10-底视图
1975
+ > horizontal_degree:水平向旋转角度
1976
+ > vertical_degree:竖向旋转角度
1977
+ > scale:缩放系数
1978
+ ```Python
1979
+ # 示例代码
1980
+ from qtmodel import *
1981
+ odb.set_view_direction(direction=1,scale=1.2)
1982
+ ```
1983
+ Returns: 无
1948
1984
  ### activate_structure
1949
1985
  激活指定阶段和单元,默认激活所有
1950
1986
  > 参数:
@@ -1,6 +1,6 @@
1
- # 最新版本 V0.5.43 - 2024.12.6
1
+ # 最新版本 V0.5.45 - 2024-12-09
2
2
  > pip install --upgrade qtmodel -i https://pypi.org/simple
3
- - 优化钢束导入并修复单箱多室混凝土截面导入
3
+ - 添加安装方式更改接口
4
4
  ## 项目管理
5
5
  ### update_bim
6
6
  刷新Bim模型信息
@@ -1879,6 +1879,16 @@ from qtmodel import *
1879
1879
  mdb.update_weight_stage(name="施工阶段1",structure_group_name="默认结构组",weight_stage_id=1)
1880
1880
  ```
1881
1881
  Returns: 无
1882
+ ### update_all_stage_setting_type
1883
+ 更新施工阶段安装方式
1884
+ > 参数:
1885
+ > setting_type:安装方式 (1-接线法 2-无应力法 3-变形法 4-切线法)
1886
+ ```Python
1887
+ # 示例代码
1888
+ from qtmodel import *
1889
+ mdb.update_all_stage_setting_type(setting_type=1)
1890
+ ```
1891
+ Returns: 无
1882
1892
  ### remove_construction_stage
1883
1893
  按照施工阶段名删除施工阶段,默认删除所有施工阶段
1884
1894
  > 参数:
@@ -1931,6 +1941,32 @@ mdb.remove_load_combine(name="荷载组合1")
1931
1941
  ```
1932
1942
  Returns: 无
1933
1943
  ## 视图控制
1944
+ ### set_view_camera
1945
+ 更改三维显示相机设置
1946
+ > 参数:
1947
+ > camera_point: 相机坐标点
1948
+ > focus_point: 相机焦点
1949
+ > camera_rotate:相机绕XYZ旋转角度
1950
+ > scale: 缩放系数
1951
+ ```Python
1952
+ # 示例代码
1953
+ from qtmodel import *
1954
+ odb.set_view_camera(camera_point=(-100,-100,100),focus_point=(0,0,0))
1955
+ ```
1956
+ Returns: 无
1957
+ ### set_view_direction
1958
+ 更改三维显示默认视图
1959
+ > 参数:
1960
+ > direction: 1-空间视图1 2-前视图 3-三维视图2 4-左视图 5-顶视图 6-右视图 7-空间视图3 8-后视图 9-空间视图4 10-底视图
1961
+ > horizontal_degree:水平向旋转角度
1962
+ > vertical_degree:竖向旋转角度
1963
+ > scale:缩放系数
1964
+ ```Python
1965
+ # 示例代码
1966
+ from qtmodel import *
1967
+ odb.set_view_direction(direction=1,scale=1.2)
1968
+ ```
1969
+ Returns: 无
1934
1970
  ### activate_structure
1935
1971
  激活指定阶段和单元,默认激活所有
1936
1972
  > 参数:
@@ -2950,7 +2950,7 @@ class Mdb:
2950
2950
  # region 施工阶段操作
2951
2951
  @staticmethod
2952
2952
  def add_construction_stage(name: str = "", duration: int = 0,
2953
- active_structures: list[tuple[str, int, int, int]] = None,
2953
+ active_structures: list[tuple[str, float, int, int]] = None,
2954
2954
  delete_structures: list[str] = None,
2955
2955
  active_boundaries: list[tuple[str, int]] = None,
2956
2956
  delete_boundaries: list[str] = None,
@@ -2989,7 +2989,7 @@ class Mdb:
2989
2989
 
2990
2990
  @staticmethod
2991
2991
  def update_construction_stage(name: str = "", duration: int = 0,
2992
- active_structures: list[tuple[str, int, int, int]] = None,
2992
+ active_structures: list[tuple[str, float, int, int]] = None,
2993
2993
  delete_structures: list[str] = None,
2994
2994
  active_boundaries: list[tuple[str, int]] = None,
2995
2995
  delete_boundaries: list[str] = None,
@@ -3042,6 +3042,21 @@ class Mdb:
3042
3042
  except Exception as ex:
3043
3043
  raise Exception(f"更新施工阶段自重:{name}错误,{ex}")
3044
3044
 
3045
+ @staticmethod
3046
+ def update_all_stage_setting_type(setting_type: int = 1):
3047
+ """
3048
+ 更新施工阶段安装方式
3049
+ Args:
3050
+ setting_type:安装方式 (1-接线法 2-无应力法 3-变形法 4-切线法)
3051
+ Example:
3052
+ mdb.update_all_stage_setting_type(setting_type=1)
3053
+ Returns: 无
3054
+ """
3055
+ try:
3056
+ qt_model.UpdateAllStageSettingType(type=setting_type)
3057
+ except Exception as ex:
3058
+ raise Exception(f"操作错误,{ex}")
3059
+
3045
3060
  @staticmethod
3046
3061
  def remove_construction_stage(name: str = ""):
3047
3062
  """
@@ -9,6 +9,46 @@ class Odb:
9
9
  """
10
10
 
11
11
  # region 视图控制
12
+ @staticmethod
13
+ def set_view_camera(camera_point: tuple[float, float, float], focus_point: tuple[float, float, float],
14
+ camera_rotate: tuple[float, float, float] = (45, 45, 0), scale: float = 0.5):
15
+ """
16
+ 更改三维显示相机设置
17
+ Args:
18
+ camera_point: 相机坐标点
19
+ focus_point: 相机焦点
20
+ camera_rotate:相机绕XYZ旋转角度
21
+ scale: 缩放系数
22
+ Example:
23
+ odb.set_view_camera(camera_point=(-100,-100,100),focus_point=(0,0,0))
24
+ Returns: 无
25
+ """
26
+ try:
27
+ qt_model.SetViewCamera(direction=[camera_point[0], camera_point[1], camera_point[2], focus_point[0], focus_point[1], focus_point[2],
28
+ camera_rotate[0], camera_rotate[1], camera_rotate[2], scale])
29
+ qt_model.UpdateModel()
30
+ except Exception as ex:
31
+ raise Exception(ex)
32
+
33
+ @staticmethod
34
+ def set_view_direction(direction: int = 1, horizontal_degree: float = 0, vertical_degree: float = 0, scale: float = 1):
35
+ """
36
+ 更改三维显示默认视图
37
+ Args:
38
+ direction: 1-空间视图1 2-前视图 3-三维视图2 4-左视图 5-顶视图 6-右视图 7-空间视图3 8-后视图 9-空间视图4 10-底视图
39
+ horizontal_degree:水平向旋转角度
40
+ vertical_degree:竖向旋转角度
41
+ scale:缩放系数
42
+ Example:
43
+ odb.set_view_direction(direction=1,scale=1.2)
44
+ Returns: 无
45
+ """
46
+ try:
47
+ qt_model.SetViewDirection(direction=direction, horizontalDegree=horizontal_degree, verticalDegree=vertical_degree, scale=scale)
48
+ qt_model.UpdateModel()
49
+ except Exception as ex:
50
+ raise Exception(ex)
51
+
12
52
  @staticmethod
13
53
  def activate_structure(node_ids: list[int] = None, element_ids: list[int] = None):
14
54
  """
@@ -21,7 +61,7 @@ class Odb:
21
61
  Returns: 无
22
62
  """
23
63
  try:
24
- qt_model.activate_structure(nodeIds=node_ids, elementIds=element_ids)
64
+ qt_model.ActivateStructure(nodeIds=node_ids, elementIds=element_ids)
25
65
  qt_model.UpdateModel()
26
66
  except Exception as ex:
27
67
  raise Exception(ex)
@@ -1,7 +1,7 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: qtmodel
3
- Version: 0.5.43
4
- Summary: python modeling for qt 24/11/27
3
+ Version: 0.5.45
4
+ Summary: python modeling for qt 2024-12-09
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.5.43 - 2024.12.6
15
+ # 最新版本 V0.5.45 - 2024-12-09
16
16
  > pip install --upgrade qtmodel -i https://pypi.org/simple
17
- - 优化钢束导入并修复单箱多室混凝土截面导入
17
+ - 添加安装方式更改接口
18
18
  ## 项目管理
19
19
  ### update_bim
20
20
  刷新Bim模型信息
@@ -1893,6 +1893,16 @@ from qtmodel import *
1893
1893
  mdb.update_weight_stage(name="施工阶段1",structure_group_name="默认结构组",weight_stage_id=1)
1894
1894
  ```
1895
1895
  Returns: 无
1896
+ ### update_all_stage_setting_type
1897
+ 更新施工阶段安装方式
1898
+ > 参数:
1899
+ > setting_type:安装方式 (1-接线法 2-无应力法 3-变形法 4-切线法)
1900
+ ```Python
1901
+ # 示例代码
1902
+ from qtmodel import *
1903
+ mdb.update_all_stage_setting_type(setting_type=1)
1904
+ ```
1905
+ Returns: 无
1896
1906
  ### remove_construction_stage
1897
1907
  按照施工阶段名删除施工阶段,默认删除所有施工阶段
1898
1908
  > 参数:
@@ -1945,6 +1955,32 @@ mdb.remove_load_combine(name="荷载组合1")
1945
1955
  ```
1946
1956
  Returns: 无
1947
1957
  ## 视图控制
1958
+ ### set_view_camera
1959
+ 更改三维显示相机设置
1960
+ > 参数:
1961
+ > camera_point: 相机坐标点
1962
+ > focus_point: 相机焦点
1963
+ > camera_rotate:相机绕XYZ旋转角度
1964
+ > scale: 缩放系数
1965
+ ```Python
1966
+ # 示例代码
1967
+ from qtmodel import *
1968
+ odb.set_view_camera(camera_point=(-100,-100,100),focus_point=(0,0,0))
1969
+ ```
1970
+ Returns: 无
1971
+ ### set_view_direction
1972
+ 更改三维显示默认视图
1973
+ > 参数:
1974
+ > direction: 1-空间视图1 2-前视图 3-三维视图2 4-左视图 5-顶视图 6-右视图 7-空间视图3 8-后视图 9-空间视图4 10-底视图
1975
+ > horizontal_degree:水平向旋转角度
1976
+ > vertical_degree:竖向旋转角度
1977
+ > scale:缩放系数
1978
+ ```Python
1979
+ # 示例代码
1980
+ from qtmodel import *
1981
+ odb.set_view_direction(direction=1,scale=1.2)
1982
+ ```
1983
+ Returns: 无
1948
1984
  ### activate_structure
1949
1985
  激活指定阶段和单元,默认激活所有
1950
1986
  > 参数:
@@ -1,3 +1,4 @@
1
+ from datetime import datetime
1
2
  from setuptools import setup, find_packages
2
3
 
3
4
  # 读取文件内容
@@ -5,12 +6,16 @@ with open("README.md", "r", encoding="utf-8") as fh:
5
6
  long_description = fh.read()
6
7
  # python setup.py sdist
7
8
  # twine upload dist/*
9
+ # 获取当前日期和时间
10
+ now = datetime.now()
11
+ today = now.date()
12
+
8
13
  setup(
9
14
  name="qtmodel",
10
- version="0.5.43",
15
+ version="0.5.45",
11
16
  author="dqy-zhj",
12
17
  author_email="1105417715@qq.com",
13
- description="python modeling for qt 24/11/27 ",
18
+ description=f"python modeling for qt {today} ",
14
19
  long_description=long_description, # 使用读取的 README.md 文件内容
15
20
  long_description_content_type="text/markdown", # 指明内容格式为markdown
16
21
  url="https://github.com/Inface0443/pyqt",
File without changes
File without changes
File without changes