qtmodel 0.5.36__tar.gz → 0.5.37__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.
- {qtmodel-0.5.36 → qtmodel-0.5.37}/PKG-INFO +11 -8
- {qtmodel-0.5.36 → qtmodel-0.5.37}/README.md +10 -7
- {qtmodel-0.5.36 → qtmodel-0.5.37}/qtmodel/qt_mdb.py +18 -15
- {qtmodel-0.5.36 → qtmodel-0.5.37}/qtmodel.egg-info/PKG-INFO +11 -8
- {qtmodel-0.5.36 → qtmodel-0.5.37}/setup.py +1 -1
- {qtmodel-0.5.36 → qtmodel-0.5.37}/qtmodel/__init__.py +0 -0
- {qtmodel-0.5.36 → qtmodel-0.5.37}/qtmodel/qt_db.py +0 -0
- {qtmodel-0.5.36 → qtmodel-0.5.37}/qtmodel/qt_odb.py +0 -0
- {qtmodel-0.5.36 → qtmodel-0.5.37}/qtmodel.egg-info/SOURCES.txt +0 -0
- {qtmodel-0.5.36 → qtmodel-0.5.37}/qtmodel.egg-info/dependency_links.txt +0 -0
- {qtmodel-0.5.36 → qtmodel-0.5.37}/qtmodel.egg-info/top_level.txt +0 -0
- {qtmodel-0.5.36 → qtmodel-0.5.37}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: qtmodel
|
|
3
|
-
Version: 0.5.
|
|
3
|
+
Version: 0.5.37
|
|
4
4
|
Summary: python modeling for qt 24/11/4
|
|
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.
|
|
15
|
+
# 最新版本 V0.5.37 - 2024.11.7
|
|
16
16
|
> pip install --upgrade qtmodel -i https://pypi.org/simple
|
|
17
|
-
-
|
|
17
|
+
- 扩展节点操作
|
|
18
18
|
## 项目管理
|
|
19
19
|
### update_bim
|
|
20
20
|
刷新Bim模型信息
|
|
@@ -218,12 +218,14 @@ mdb.update_response_spectrum_setting(do_analysis=True,kind=1,damping_ratio=0.05)
|
|
|
218
218
|
Returns: 无
|
|
219
219
|
## 节点操作
|
|
220
220
|
### add_node
|
|
221
|
-
|
|
221
|
+
根据坐标信息和节点编号添加节点
|
|
222
222
|
> 参数:
|
|
223
|
-
> node_data: [id,x,y,z] 或 [x,y,z]
|
|
223
|
+
> node_data: [id,x,y,z] 或 [x,y,z] 指定节点编号时不进行交叉分割、合并、编号等操作
|
|
224
224
|
> intersected: 是否交叉分割
|
|
225
225
|
> is_merged: 是否忽略位置重复节点
|
|
226
226
|
> merge_error: 合并容许误差
|
|
227
|
+
> numbering_type:编号方式 0-未使用的最小号码 1-最大号码加1 2-用户定义号码
|
|
228
|
+
> start_id:自定义节点起始编号(用户定义号码时使用)
|
|
227
229
|
```Python
|
|
228
230
|
# 示例代码
|
|
229
231
|
from qtmodel import *
|
|
@@ -232,12 +234,14 @@ mdb.add_node(node_data=[1,1,2,3])
|
|
|
232
234
|
```
|
|
233
235
|
Returns: 无
|
|
234
236
|
### add_nodes
|
|
235
|
-
|
|
237
|
+
根据坐标信息和节点编号添加一组节点,可指定节点号,或不指定节点号
|
|
236
238
|
> 参数:
|
|
237
|
-
> node_data: [[id,x,y,z]...]
|
|
239
|
+
> node_data: [[id,x,y,z]...] 或[[x,y,z]...] 指定节点编号时不进行交叉分割、合并、编号等操作
|
|
238
240
|
> intersected: 是否交叉分割
|
|
239
241
|
> is_merged: 是否忽略位置重复节点
|
|
240
242
|
> merge_error: 合并容许误差
|
|
243
|
+
> numbering_type:编号方式 0-未使用的最小号码 1-最大号码加1 2-用户定义号码
|
|
244
|
+
> start_id:自定义节点起始编号(用户定义号码时使用)
|
|
241
245
|
```Python
|
|
242
246
|
# 示例代码
|
|
243
247
|
from qtmodel import *
|
|
@@ -2760,6 +2764,5 @@ odb.get_deviation_load(case_name="荷载工况1")
|
|
|
2760
2764
|
```
|
|
2761
2765
|
Returns: json字符串,包含信息为list[dict]
|
|
2762
2766
|
|
|
2763
|
-
Process finished with exit code 0
|
|
2764
2767
|
|
|
2765
2768
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
# 最新版本 V0.5.
|
|
1
|
+
# 最新版本 V0.5.37 - 2024.11.7
|
|
2
2
|
> pip install --upgrade qtmodel -i https://pypi.org/simple
|
|
3
|
-
-
|
|
3
|
+
- 扩展节点操作
|
|
4
4
|
## 项目管理
|
|
5
5
|
### update_bim
|
|
6
6
|
刷新Bim模型信息
|
|
@@ -204,12 +204,14 @@ mdb.update_response_spectrum_setting(do_analysis=True,kind=1,damping_ratio=0.05)
|
|
|
204
204
|
Returns: 无
|
|
205
205
|
## 节点操作
|
|
206
206
|
### add_node
|
|
207
|
-
|
|
207
|
+
根据坐标信息和节点编号添加节点
|
|
208
208
|
> 参数:
|
|
209
|
-
> node_data: [id,x,y,z] 或 [x,y,z]
|
|
209
|
+
> node_data: [id,x,y,z] 或 [x,y,z] 指定节点编号时不进行交叉分割、合并、编号等操作
|
|
210
210
|
> intersected: 是否交叉分割
|
|
211
211
|
> is_merged: 是否忽略位置重复节点
|
|
212
212
|
> merge_error: 合并容许误差
|
|
213
|
+
> numbering_type:编号方式 0-未使用的最小号码 1-最大号码加1 2-用户定义号码
|
|
214
|
+
> start_id:自定义节点起始编号(用户定义号码时使用)
|
|
213
215
|
```Python
|
|
214
216
|
# 示例代码
|
|
215
217
|
from qtmodel import *
|
|
@@ -218,12 +220,14 @@ mdb.add_node(node_data=[1,1,2,3])
|
|
|
218
220
|
```
|
|
219
221
|
Returns: 无
|
|
220
222
|
### add_nodes
|
|
221
|
-
|
|
223
|
+
根据坐标信息和节点编号添加一组节点,可指定节点号,或不指定节点号
|
|
222
224
|
> 参数:
|
|
223
|
-
> node_data: [[id,x,y,z]...]
|
|
225
|
+
> node_data: [[id,x,y,z]...] 或[[x,y,z]...] 指定节点编号时不进行交叉分割、合并、编号等操作
|
|
224
226
|
> intersected: 是否交叉分割
|
|
225
227
|
> is_merged: 是否忽略位置重复节点
|
|
226
228
|
> merge_error: 合并容许误差
|
|
229
|
+
> numbering_type:编号方式 0-未使用的最小号码 1-最大号码加1 2-用户定义号码
|
|
230
|
+
> start_id:自定义节点起始编号(用户定义号码时使用)
|
|
227
231
|
```Python
|
|
228
232
|
# 示例代码
|
|
229
233
|
from qtmodel import *
|
|
@@ -2746,4 +2750,3 @@ odb.get_deviation_load(case_name="荷载工况1")
|
|
|
2746
2750
|
```
|
|
2747
2751
|
Returns: json字符串,包含信息为list[dict]
|
|
2748
2752
|
|
|
2749
|
-
Process finished with exit code 0
|
|
@@ -324,46 +324,49 @@ class Mdb:
|
|
|
324
324
|
|
|
325
325
|
# region 节点操作
|
|
326
326
|
@staticmethod
|
|
327
|
-
def add_node(node_data: list[float], intersected: bool =
|
|
328
|
-
is_merged: bool = False, merge_error: float = 1e-
|
|
327
|
+
def add_node(node_data: list[float], intersected: bool = False,
|
|
328
|
+
is_merged: bool = False, merge_error: float = 1e-3,
|
|
329
|
+
numbering_type: int = 0, start_id: int = 1):
|
|
329
330
|
"""
|
|
330
|
-
|
|
331
|
+
根据坐标信息和节点编号添加节点
|
|
331
332
|
Args:
|
|
332
|
-
node_data: [id,x,y,z] 或 [x,y,z]
|
|
333
|
+
node_data: [id,x,y,z] 或 [x,y,z] 指定节点编号时不进行交叉分割、合并、编号等操作
|
|
333
334
|
intersected: 是否交叉分割
|
|
334
335
|
is_merged: 是否忽略位置重复节点
|
|
335
336
|
merge_error: 合并容许误差
|
|
337
|
+
numbering_type:编号方式 0-未使用的最小号码 1-最大号码加1 2-用户定义号码
|
|
338
|
+
start_id:自定义节点起始编号(用户定义号码时使用)
|
|
336
339
|
Example:
|
|
337
340
|
mdb.add_node(node_data=[1,2,3])
|
|
338
341
|
mdb.add_node(node_data=[1,1,2,3])
|
|
339
342
|
Returns: 无
|
|
340
343
|
"""
|
|
341
344
|
try:
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
intersected=intersected, isMerged=is_merged, merge_error=merge_error)
|
|
345
|
-
elif len(node_data) == 3:
|
|
346
|
-
qt_model.AddNode(x=node_data[0], y=node_data[1], z=node_data[2],
|
|
347
|
-
intersected=intersected, isMerged=is_merged, merge_error=merge_error)
|
|
345
|
+
qt_model.AddNodes(nodeData=[node_data], intersected=intersected, isMerged=is_merged, merge_error=merge_error,
|
|
346
|
+
numberingType=numbering_type, startId=start_id)
|
|
348
347
|
except Exception as ex:
|
|
349
348
|
raise Exception(ex)
|
|
350
349
|
|
|
351
350
|
@staticmethod
|
|
352
|
-
def add_nodes(node_data: list[list[float]], intersected: bool =
|
|
353
|
-
is_merged: bool = False, merge_error: float = 1e-
|
|
351
|
+
def add_nodes(node_data: list[list[float]], intersected: bool = False,
|
|
352
|
+
is_merged: bool = False, merge_error: float = 1e-3,
|
|
353
|
+
numbering_type: int = 0, start_id: int = 1):
|
|
354
354
|
"""
|
|
355
|
-
|
|
355
|
+
根据坐标信息和节点编号添加一组节点,可指定节点号,或不指定节点号
|
|
356
356
|
Args:
|
|
357
|
-
node_data: [[id,x,y,z]...]
|
|
357
|
+
node_data: [[id,x,y,z]...] 或[[x,y,z]...] 指定节点编号时不进行交叉分割、合并、编号等操作
|
|
358
358
|
intersected: 是否交叉分割
|
|
359
359
|
is_merged: 是否忽略位置重复节点
|
|
360
360
|
merge_error: 合并容许误差
|
|
361
|
+
numbering_type:编号方式 0-未使用的最小号码 1-最大号码加1 2-用户定义号码
|
|
362
|
+
start_id:自定义节点起始编号(用户定义号码时使用)
|
|
361
363
|
Example:
|
|
362
364
|
mdb.add_nodes(node_data=[[1,1,2,3],[1,1,2,3]])
|
|
363
365
|
Returns: 无
|
|
364
366
|
"""
|
|
365
367
|
try:
|
|
366
|
-
qt_model.AddNodes(nodeData=node_data, intersected=intersected, isMerged=is_merged, merge_error=merge_error
|
|
368
|
+
qt_model.AddNodes(nodeData=node_data, intersected=intersected, isMerged=is_merged, merge_error=merge_error,
|
|
369
|
+
numberingType=numbering_type, startId=start_id)
|
|
367
370
|
except Exception as ex:
|
|
368
371
|
raise Exception(ex)
|
|
369
372
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: qtmodel
|
|
3
|
-
Version: 0.5.
|
|
3
|
+
Version: 0.5.37
|
|
4
4
|
Summary: python modeling for qt 24/11/4
|
|
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.
|
|
15
|
+
# 最新版本 V0.5.37 - 2024.11.7
|
|
16
16
|
> pip install --upgrade qtmodel -i https://pypi.org/simple
|
|
17
|
-
-
|
|
17
|
+
- 扩展节点操作
|
|
18
18
|
## 项目管理
|
|
19
19
|
### update_bim
|
|
20
20
|
刷新Bim模型信息
|
|
@@ -218,12 +218,14 @@ mdb.update_response_spectrum_setting(do_analysis=True,kind=1,damping_ratio=0.05)
|
|
|
218
218
|
Returns: 无
|
|
219
219
|
## 节点操作
|
|
220
220
|
### add_node
|
|
221
|
-
|
|
221
|
+
根据坐标信息和节点编号添加节点
|
|
222
222
|
> 参数:
|
|
223
|
-
> node_data: [id,x,y,z] 或 [x,y,z]
|
|
223
|
+
> node_data: [id,x,y,z] 或 [x,y,z] 指定节点编号时不进行交叉分割、合并、编号等操作
|
|
224
224
|
> intersected: 是否交叉分割
|
|
225
225
|
> is_merged: 是否忽略位置重复节点
|
|
226
226
|
> merge_error: 合并容许误差
|
|
227
|
+
> numbering_type:编号方式 0-未使用的最小号码 1-最大号码加1 2-用户定义号码
|
|
228
|
+
> start_id:自定义节点起始编号(用户定义号码时使用)
|
|
227
229
|
```Python
|
|
228
230
|
# 示例代码
|
|
229
231
|
from qtmodel import *
|
|
@@ -232,12 +234,14 @@ mdb.add_node(node_data=[1,1,2,3])
|
|
|
232
234
|
```
|
|
233
235
|
Returns: 无
|
|
234
236
|
### add_nodes
|
|
235
|
-
|
|
237
|
+
根据坐标信息和节点编号添加一组节点,可指定节点号,或不指定节点号
|
|
236
238
|
> 参数:
|
|
237
|
-
> node_data: [[id,x,y,z]...]
|
|
239
|
+
> node_data: [[id,x,y,z]...] 或[[x,y,z]...] 指定节点编号时不进行交叉分割、合并、编号等操作
|
|
238
240
|
> intersected: 是否交叉分割
|
|
239
241
|
> is_merged: 是否忽略位置重复节点
|
|
240
242
|
> merge_error: 合并容许误差
|
|
243
|
+
> numbering_type:编号方式 0-未使用的最小号码 1-最大号码加1 2-用户定义号码
|
|
244
|
+
> start_id:自定义节点起始编号(用户定义号码时使用)
|
|
241
245
|
```Python
|
|
242
246
|
# 示例代码
|
|
243
247
|
from qtmodel import *
|
|
@@ -2760,6 +2764,5 @@ odb.get_deviation_load(case_name="荷载工况1")
|
|
|
2760
2764
|
```
|
|
2761
2765
|
Returns: json字符串,包含信息为list[dict]
|
|
2762
2766
|
|
|
2763
|
-
Process finished with exit code 0
|
|
2764
2767
|
|
|
2765
2768
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|