qtmodel 0.5.44__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,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: qtmodel
3
- Version: 0.5.44
3
+ Version: 0.5.45
4
4
  Summary: python modeling for qt 2024-12-09
5
5
  Home-page: https://github.com/Inface0443/pyqt
6
6
  Author: dqy-zhj
@@ -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.44 - 2024-12-09
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
  > 参数:
@@ -1955,17 +1965,20 @@ Returns: 无
1955
1965
  ```Python
1956
1966
  # 示例代码
1957
1967
  from qtmodel import *
1958
- odb.set_view_camera(camera_point=(-100,-100,-100),focus_point=(0,0,0))
1968
+ odb.set_view_camera(camera_point=(-100,-100,100),focus_point=(0,0,0))
1959
1969
  ```
1960
1970
  Returns: 无
1961
1971
  ### set_view_direction
1962
1972
  更改三维显示默认视图
1963
1973
  > 参数:
1964
1974
  > direction: 1-空间视图1 2-前视图 3-三维视图2 4-左视图 5-顶视图 6-右视图 7-空间视图3 8-后视图 9-空间视图4 10-底视图
1975
+ > horizontal_degree:水平向旋转角度
1976
+ > vertical_degree:竖向旋转角度
1977
+ > scale:缩放系数
1965
1978
  ```Python
1966
1979
  # 示例代码
1967
1980
  from qtmodel import *
1968
- odb.set_view_direction(1)
1981
+ odb.set_view_direction(direction=1,scale=1.2)
1969
1982
  ```
1970
1983
  Returns: 无
1971
1984
  ### activate_structure
@@ -1,6 +1,6 @@
1
- # 最新版本 V0.5.44 - 2024-12-09
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
  > 参数:
@@ -1941,17 +1951,20 @@ Returns: 无
1941
1951
  ```Python
1942
1952
  # 示例代码
1943
1953
  from qtmodel import *
1944
- odb.set_view_camera(camera_point=(-100,-100,-100),focus_point=(0,0,0))
1954
+ odb.set_view_camera(camera_point=(-100,-100,100),focus_point=(0,0,0))
1945
1955
  ```
1946
1956
  Returns: 无
1947
1957
  ### set_view_direction
1948
1958
  更改三维显示默认视图
1949
1959
  > 参数:
1950
1960
  > direction: 1-空间视图1 2-前视图 3-三维视图2 4-左视图 5-顶视图 6-右视图 7-空间视图3 8-后视图 9-空间视图4 10-底视图
1961
+ > horizontal_degree:水平向旋转角度
1962
+ > vertical_degree:竖向旋转角度
1963
+ > scale:缩放系数
1951
1964
  ```Python
1952
1965
  # 示例代码
1953
1966
  from qtmodel import *
1954
- odb.set_view_direction(1)
1967
+ odb.set_view_direction(direction=1,scale=1.2)
1955
1968
  ```
1956
1969
  Returns: 无
1957
1970
  ### activate_structure
@@ -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
  """
@@ -31,17 +31,20 @@ class Odb:
31
31
  raise Exception(ex)
32
32
 
33
33
  @staticmethod
34
- def set_view_direction(direction: int = 1):
34
+ def set_view_direction(direction: int = 1, horizontal_degree: float = 0, vertical_degree: float = 0, scale: float = 1):
35
35
  """
36
36
  更改三维显示默认视图
37
37
  Args:
38
38
  direction: 1-空间视图1 2-前视图 3-三维视图2 4-左视图 5-顶视图 6-右视图 7-空间视图3 8-后视图 9-空间视图4 10-底视图
39
+ horizontal_degree:水平向旋转角度
40
+ vertical_degree:竖向旋转角度
41
+ scale:缩放系数
39
42
  Example:
40
- odb.set_view_direction(1)
43
+ odb.set_view_direction(direction=1,scale=1.2)
41
44
  Returns: 无
42
45
  """
43
46
  try:
44
- qt_model.SetViewDirection(direction=direction)
47
+ qt_model.SetViewDirection(direction=direction, horizontalDegree=horizontal_degree, verticalDegree=vertical_degree, scale=scale)
45
48
  qt_model.UpdateModel()
46
49
  except Exception as ex:
47
50
  raise Exception(ex)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: qtmodel
3
- Version: 0.5.44
3
+ Version: 0.5.45
4
4
  Summary: python modeling for qt 2024-12-09
5
5
  Home-page: https://github.com/Inface0443/pyqt
6
6
  Author: dqy-zhj
@@ -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.44 - 2024-12-09
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
  > 参数:
@@ -1955,17 +1965,20 @@ Returns: 无
1955
1965
  ```Python
1956
1966
  # 示例代码
1957
1967
  from qtmodel import *
1958
- odb.set_view_camera(camera_point=(-100,-100,-100),focus_point=(0,0,0))
1968
+ odb.set_view_camera(camera_point=(-100,-100,100),focus_point=(0,0,0))
1959
1969
  ```
1960
1970
  Returns: 无
1961
1971
  ### set_view_direction
1962
1972
  更改三维显示默认视图
1963
1973
  > 参数:
1964
1974
  > direction: 1-空间视图1 2-前视图 3-三维视图2 4-左视图 5-顶视图 6-右视图 7-空间视图3 8-后视图 9-空间视图4 10-底视图
1975
+ > horizontal_degree:水平向旋转角度
1976
+ > vertical_degree:竖向旋转角度
1977
+ > scale:缩放系数
1965
1978
  ```Python
1966
1979
  # 示例代码
1967
1980
  from qtmodel import *
1968
- odb.set_view_direction(1)
1981
+ odb.set_view_direction(direction=1,scale=1.2)
1969
1982
  ```
1970
1983
  Returns: 无
1971
1984
  ### activate_structure
@@ -12,7 +12,7 @@ today = now.date()
12
12
 
13
13
  setup(
14
14
  name="qtmodel",
15
- version="0.5.44",
15
+ version="0.5.45",
16
16
  author="dqy-zhj",
17
17
  author_email="1105417715@qq.com",
18
18
  description=f"python modeling for qt {today} ",
File without changes
File without changes
File without changes