Skip to content

Commit 38c6815

Browse files
committed
merging issues - sync with developement
1 parent 53a25da commit 38c6815

File tree

198 files changed

+984
-965
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

198 files changed

+984
-965
lines changed

CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,21 @@
11
# Changelog
22

3+
## 0.9.0
4+
5+
Please note the change to VisPropertySet.get_show() will break existing scripts where this is used.
6+
7+
* updated the following VisPropertySet() methods with fixed type hinting:
8+
get_layer(), get_pick(), get_real_color(), get_real_inheritance(),
9+
get_real_line_type(), get_real_opacity(), get_real_width(), get_show(),
10+
get_symbol_type(), get_visible_color(), get_visible_line_type(),
11+
get_visible_opacity(), get_visible_width().
12+
Thanks to @HubertDomaros for pointing out the initial issue #269.
13+
* updated Selection.select_element4() type hints and the returned objects.
14+
Thanks to @CossackLucas for reporting #263.
15+
* updated ParameterSet.all_parameters to return a Parameters collection object.
16+
* fixed DrawingDimension.get_boundary_box(). #275
17+
* many type hinting improvements / fixes.
18+
319
## 0.8.3
420

521
* fixed methods for Plane.get_first_axis(), Plane.get_origin(),

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def __getattr__(cls, name):
3232
# -- Project information -----------------------------------------------------
3333

3434
project = 'pycatia'
35-
copyright = '2024, Paul Bourne'
35+
copyright = '2025, Paul Bourne'
3636
author = 'Paul Bourne'
3737

3838
# The short X.Y version

docs/examples.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Examples
55

66
Simple examples that help you get started using pycatia.
77

8-
For more complex scripts see the section on :ref:`User Scripts`.
8+
For more complex scripts see the section on :ref:`User Scripts<User Scripts>`.
99

1010
Index
1111
-----
@@ -404,7 +404,7 @@ Change the Length value of parameter named Thickness.
404404

405405

406406

407-
.. _Example Part:
407+
.. _Example Parts:
408408

409409
PART EXAMPLES
410410
----------------

docs/user_scripts.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
User Scripts
44
============
55

6-
User created scripts that are more advanced than the :ref:`examples`.
6+
User created scripts that are more advanced than the :ref:`Examples<examples>`.
77

88
Index
99
-----

pycatia/abq_automation_interfaces/abq_analysis_cases.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"""
1111
from pycatia.abq_automation_interfaces.abq_analysis_case import ABQAnalysisCase
1212
from pycatia.system_interfaces.collection import Collection
13-
from pycatia.types.general import cat_variant
13+
from pycatia.types.general import CATVariant
1414

1515

1616
class ABQAnalysisCases(Collection):
@@ -73,7 +73,7 @@ def add(self, i_analysis_type: str) -> ABQAnalysisCase:
7373
"""
7474
return ABQAnalysisCase(self.abq_analysis_cases.Add(i_analysis_type))
7575

76-
def item(self, i_index: cat_variant) -> ABQAnalysisCase:
76+
def item(self, i_index: CATVariant) -> ABQAnalysisCase:
7777
"""
7878
.. note::
7979
:class: toggle
@@ -106,12 +106,12 @@ def item(self, i_index: cat_variant) -> ABQAnalysisCase:
106106
| Set ThisCase = CaseColl.Item(5)
107107
| Set ThatCase = CaseColl.Item("MyCase")
108108
109-
:param cat_variant i_index:
109+
:param CATVariant i_index:
110110
:rtype: ABQAnalysisCase
111111
"""
112112
return ABQAnalysisCase(self.abq_analysis_cases.Item(i_index))
113113

114-
def remove(self, i_index: cat_variant) -> None:
114+
def remove(self, i_index: CATVariant) -> None:
115115
"""
116116
.. note::
117117
:class: toggle
@@ -134,7 +134,7 @@ def remove(self, i_index: cat_variant) -> None:
134134
| the analysis case using the CATIABase::Name
135135
| property.
136136
137-
:param cat_variant i_index:
137+
:param CATVariant i_index:
138138
:rtype: None
139139
"""
140140
return self.abq_analysis_cases.Remove(i_index)

pycatia/abq_automation_interfaces/abq_boundary_conditions.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"""
1111
from pycatia.abq_automation_interfaces.abq_boundary_condition import ABQBoundaryCondition
1212
from pycatia.system_interfaces.collection import Collection
13-
from pycatia.types.general import cat_variant
13+
from pycatia.types.general import CATVariant
1414

1515

1616
class ABQBoundaryConditions(Collection):
@@ -76,7 +76,7 @@ def add(self, i_boundary_type: str) -> ABQBoundaryCondition:
7676
"""
7777
return ABQBoundaryCondition(self.abq_boundary_conditions.Add(i_boundary_type))
7878

79-
def item(self, i_index: cat_variant) -> ABQBoundaryCondition:
79+
def item(self, i_index: CATVariant) -> ABQBoundaryCondition:
8080
"""
8181
.. note::
8282
:class: toggle
@@ -101,12 +101,12 @@ def item(self, i_index: cat_variant) -> ABQBoundaryCondition:
101101
| Returns:
102102
| The specified ABQBoundaryCondition.
103103
104-
:param cat_variant i_index:
104+
:param CATVariant i_index:
105105
:rtype: ABQBoundaryCondition
106106
"""
107107
return ABQBoundaryCondition(self.abq_boundary_conditions.Item(i_index))
108108

109-
def remove(self, i_index: cat_variant) -> None:
109+
def remove(self, i_index: CATVariant) -> None:
110110
"""
111111
.. note::
112112
:class: toggle
@@ -128,7 +128,7 @@ def remove(self, i_index: cat_variant) -> None:
128128
| specifies the name you assigned to the boundary condition using the
129129
| CATIACollection::Name property.
130130
131-
:param cat_variant i_index:
131+
:param CATVariant i_index:
132132
:rtype: None
133133
"""
134134
return self.abq_boundary_conditions.Remove(i_index)

pycatia/abq_automation_interfaces/abq_data_output_requests.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"""
1111
from pycatia.abq_automation_interfaces.abq_data_output_request import ABQDataOutputRequest
1212
from pycatia.system_interfaces.collection import Collection
13-
from pycatia.types.general import cat_variant
13+
from pycatia.types.general import CATVariant
1414

1515

1616
class ABQDataOutputRequests(Collection):
@@ -65,7 +65,7 @@ def add(self) -> ABQDataOutputRequest:
6565
"""
6666
return ABQDataOutputRequest(self.abq_data_output_requests.Add())
6767

68-
def item(self, i_index: cat_variant) -> ABQDataOutputRequest:
68+
def item(self, i_index: CATVariant) -> ABQDataOutputRequest:
6969
"""
7070
.. note::
7171
:class: toggle
@@ -90,12 +90,12 @@ def item(self, i_index: cat_variant) -> ABQDataOutputRequest:
9090
| Returns:
9191
| The specified ABQDataOutputRequest.
9292
93-
:param cat_variant i_index:
93+
:param CATVariant i_index:
9494
:rtype: ABQDataOutputRequest
9595
"""
9696
return ABQDataOutputRequest(self.abq_data_output_requests.Item(i_index))
9797

98-
def remove(self, i_index: cat_variant) -> None:
98+
def remove(self, i_index: CATVariant) -> None:
9999
"""
100100
.. note::
101101
:class: toggle
@@ -116,7 +116,7 @@ def remove(self, i_index: cat_variant) -> None:
116116
| is Count. As a string, it is the name you assigned to the data output request
117117
| using the CATIABase::Name property.
118118
119-
:param cat_variant i_index:
119+
:param CATVariant i_index:
120120
:rtype: None
121121
"""
122122
return self.abq_data_output_requests.Remove(i_index)

pycatia/abq_automation_interfaces/abq_display_groups.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"""
1111
from pycatia.abq_automation_interfaces.abq_display_group import ABQDisplayGroup
1212
from pycatia.system_interfaces.collection import Collection
13-
from pycatia.types.general import cat_variant
13+
from pycatia.types.general import CATVariant
1414

1515

1616
class ABQDisplayGroups(Collection):
@@ -36,7 +36,7 @@ def __init__(self, com_object):
3636
super().__init__(com_object, child_object=ABQDisplayGroup)
3737
self.abq_display_groups = com_object
3838

39-
def item(self, i_index: cat_variant) -> ABQDisplayGroup:
39+
def item(self, i_index: CATVariant) -> ABQDisplayGroup:
4040
"""
4141
.. note::
4242
:class: toggle
@@ -60,7 +60,7 @@ def item(self, i_index: cat_variant) -> ABQDisplayGroup:
6060
| Returns:
6161
| The specified ABQDisplayGroup.
6262
63-
:param cat_variant i_index:
63+
:param CATVariant i_index:
6464
:rtype: ABQDisplayGroup
6565
"""
6666
return ABQDisplayGroup(self.abq_display_groups.Item(i_index))

pycatia/abq_automation_interfaces/abq_field_output_requests.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"""
1111
from pycatia.abq_automation_interfaces.abq_field_output_request import ABQFieldOutputRequest
1212
from pycatia.system_interfaces.collection import Collection
13-
from pycatia.types.general import cat_variant
13+
from pycatia.types.general import CATVariant
1414

1515

1616
class ABQFieldOutputRequests(Collection):
@@ -65,7 +65,7 @@ def add(self) -> ABQFieldOutputRequest:
6565
"""
6666
return ABQFieldOutputRequest(self.abq_field_output_requests.Add())
6767

68-
def item(self, i_index: cat_variant) -> ABQFieldOutputRequest:
68+
def item(self, i_index: CATVariant) -> ABQFieldOutputRequest:
6969
"""
7070
.. note::
7171
:class: toggle
@@ -90,12 +90,12 @@ def item(self, i_index: cat_variant) -> ABQFieldOutputRequest:
9090
| Returns:
9191
| The specified ABQFieldOutputRequest.
9292
93-
:param cat_variant i_index:
93+
:param CATVariant i_index:
9494
:rtype: ABQFieldOutputRequest
9595
"""
9696
return ABQFieldOutputRequest(self.abq_field_output_requests.Item(i_index))
9797

98-
def remove(self, i_index: cat_variant) -> None:
98+
def remove(self, i_index: CATVariant) -> None:
9999
"""
100100
.. note::
101101
:class: toggle
@@ -116,7 +116,7 @@ def remove(self, i_index: cat_variant) -> None:
116116
| request is Count. As a string, it is the name you assigned to the field output
117117
| request using the CATIABase::Name property.
118118
119-
:param cat_variant i_index:
119+
:param CATVariant i_index:
120120
:rtype: None
121121
"""
122122
return self.abq_field_output_requests.Remove(i_index)

pycatia/abq_automation_interfaces/abq_fields.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"""
1111
from pycatia.abq_automation_interfaces.abq_temperature import ABQTemperature
1212
from pycatia.system_interfaces.collection import Collection
13-
from pycatia.types.general import cat_variant
13+
from pycatia.types.general import CATVariant
1414

1515

1616
class ABQFields(Collection):
@@ -84,7 +84,7 @@ def add(self, i_field_type: str) -> ABQTemperature:
8484
"""
8585
return ABQTemperature(self.abq_fields.Add(i_field_type))
8686

87-
def item(self, i_index: cat_variant) -> ABQTemperature:
87+
def item(self, i_index: CATVariant) -> ABQTemperature:
8888
"""
8989
.. note::
9090
:class: toggle
@@ -108,12 +108,12 @@ def item(self, i_index: cat_variant) -> ABQTemperature:
108108
| Returns:
109109
| The specified ABQTemperature.
110110
111-
:param cat_variant i_index:
111+
:param CATVariant i_index:
112112
:rtype: ABQTemperature
113113
"""
114114
return ABQTemperature(self.abq_fields.Item(i_index))
115115

116-
def remove(self, i_index: cat_variant) -> None:
116+
def remove(self, i_index: CATVariant) -> None:
117117
"""
118118
.. note::
119119
:class: toggle
@@ -134,7 +134,7 @@ def remove(self, i_index: cat_variant) -> None:
134134
| string, it specifies the name you assigned to the field using the
135135
| CATIABase::Name property.
136136
137-
:param cat_variant i_index:
137+
:param CATVariant i_index:
138138
:rtype: None
139139
"""
140140
return self.abq_fields.Remove(i_index)

0 commit comments

Comments
 (0)