Skip to content

Commit 762f6c4

Browse files
committed
Merge branch 'developement'
2 parents 00a9498 + 6d63b19 commit 762f6c4

File tree

56 files changed

+7680
-45
lines changed

Some content is hidden

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

56 files changed

+7680
-45
lines changed

CHANGELOG.md

Lines changed: 125 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,122 @@
11
# Changelog
22

3+
## 0.8.0
4+
5+
* New Classes, methods, properties and enums added.
6+
7+
### Introduced in V5-6R2021
8+
9+
* added the following new classes introduced in V5-6R2021.
10+
* ManufacturingComputePMAParameters
11+
* ManufacturingFeatureFactory
12+
* ManufacturingMachinableAreaMngt
13+
* ManufacturingParameter
14+
* PartServices
15+
16+
* added the following new methods / properties introduced in V5-6R2021.
17+
* DrawingTable.orientation_reference
18+
* DrawingTable.text_properties
19+
* DrawingText.orientation_reference
20+
21+
### Introduced in V5-6R2020
22+
23+
* added the following new classes introduced in V5-6R2020.
24+
* CompositesServices
25+
* CompositesMaterial
26+
* CDMASettingAtt
27+
* ManufacturingProgram2
28+
29+
* added the following new methods / properties introduced in V5-6R2020.
30+
* HybridShapeUnfold.target_direction
31+
* HybridShapeUnfold.target_origin
32+
* StepSettingAtt.att_annotation_export
33+
* StepSettingAtt.get_att_annotation_export_info()
34+
* StepSettingAtt.set_att_annotation_export_lock()
35+
* Wrappings.compute_wrapping_with_convex_hull()
36+
37+
* added the following enumeration types introduced in V5-6R2020:
38+
* cat_composites_type
39+
40+
### Introduced in V5-6R2019
41+
42+
* added the following new classes introduced in V5-6R2019.
43+
* MedianFeature
44+
* NumericalDisplayFormat
45+
* SemanticGDTCommonZone
46+
* SemanticGDTFrameExtension
47+
* SemanticGDTNxDisplay
48+
* ManufacturingActivityToolPath
49+
* added the following new methods / properties introduced in V5-6R2019.
50+
* DxfSettingAtt.export_view_as_viewport
51+
* DxfSettingAtt.get_export_view_as_viewport_info()
52+
* DxfSettingAtt.set_export_view_as_viewport_lock()
53+
* DxfSettingAtt.set_export_view_as_viewport()
54+
* Ig2SettingAtt.export_view_as_viewport
55+
* Ig2SettingAtt.get_export_view_as_viewport_info()
56+
* Ig2SettingAtt.set_export_view_as_viewport_lock()
57+
* Ig2SettingAtt.set_export_view_as_viewport()
58+
* HybridShapeAssemble.get_healing_mode()
59+
* HybridShapeAssemble.set_healing_mode()
60+
* HybridShapeRevol.begin_angle_offset
61+
* HybridShapeRevol.end_angle_offset
62+
* Annotation.has_a_numerical_display_format()
63+
* Annotation.numerical_display_format
64+
* Annotation2.is_a_consumable_annotation
65+
* AnnotationSet.annotation_set_purpose
66+
* AnnotationSet.apply_result_with_link_when_copy_set_to
67+
* AnnotationSet.read_iso_default_properties
68+
* TPSView.annotation_plane
69+
* TPSView.annotation_sketch
70+
* TPSView.annotations
71+
* TPSView.display_ratio
72+
* TPSView.view_type
73+
* Dimension3D.is_a_continuous_feature_applied()
74+
* SemanticGDT.frame_extensions()
75+
* SemanticGDT.has_a_centered_element()
76+
* SemanticGDT.has_a_frame_extension()
77+
* SemanticGDT.is_applied_on_multiple_entities()
78+
* SemanticGDT.median_feature()
79+
* SemanticGDT.nx_display()
80+
* Application.begin_ur_concatenation()
81+
* Application.stop_ur_concatenation()
82+
83+
### Introduced in V5-6R2018
84+
85+
* added the following new classes introduced in V5-6R2018.
86+
* CoordDim
87+
* DrawingCoordDim
88+
* DrawingCoordDims
89+
* DrawingGDT
90+
* DrawingGDTs
91+
92+
* added the following new methods / properties introduced in V5-6R2018.
93+
* Annotation2.coordinate_dimension()
94+
* AnnotationFactory2.create_coord_dimension()
95+
* AnnotationFactory2.create_gdt()
96+
* NonSemanticGDT.get_2d_annot()
97+
* Layout2DView.coord_dims
98+
* Layout2DView.gdts
99+
* DrawingLeader.anchor_symbol
100+
* DrawingView.coord_dims
101+
* DrawingView.gdts
102+
* DrawingText.nb_link
103+
* DrawingText.get_parameter_link()
104+
* DrawingArrow.scale_on_extremities() #230
105+
* VisualizationSettingAtt.pre_sel_navigator_started_by_arrow_keys
106+
* VisualizationSettingAtt.set_pre_sel_navigator_started_by_arrow_keys_lock
107+
* VisualizationSettingAtt.get_pre_sel_navigator_started_by_arrow_keys_info()
108+
* Hole.counter_drilled_mode
109+
* VarRadEdgeFillet.sharp_edge_removal_mode
110+
* VarRadEdgeFillet.switch_to_const_fillet_type()
111+
* ConstRadEdgeFillet.switch_to_var_fillet_type()
112+
* Measurable.get_angle_between_in_context()
113+
* Measurable.get_minimum_distance_in_context()
114+
* Measurable.get_minimum_distance_points_in_context()
115+
* SPAWorkbench.get_measurable_in_context()
116+
117+
* added the following enumeration types introduced in V5-6R2018:
118+
* cat_cd_hole_mode
119+
3120
## 0.7.4
4121

5122
* fixed DrawingDimensions.add().
@@ -310,14 +427,19 @@
310427
ProductDocument and DrawingDocument. Example:
311428

312429
```python
430+
from pathlib import Path
431+
313432
from pycatia import catia
433+
from pycatia.mec_mod_interfaces.part_document import PartDocument
434+
435+
source_document = Path(r'tests/cat_files/part_measurable.CATPart')
314436

315437
caa = catia()
316438
documents = caa.documents
317-
documents.open(r'tests/cat_files/part_measurable.CATPart')
439+
documents.open(source_document)
318440

319441
# get the active document
320-
document = caa.active_document
442+
document: PartDocument = caa.active_document
321443
# get the Part() object. NOTE THIS IS NOW A PROPERTY, NOT A METHOD.
322444
part = document.part
323445
```
@@ -544,4 +666,4 @@ Breaking changes.
544666

545667
* Added ability to parse csv and create points in a CATIA part.
546668
* Added methods to open, save, save as and close CATIA files.
547-
* Test coverage now covers
669+
* Test coverage now cover

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def __getattr__(cls, name):
3636
author = 'Paul Bourne'
3737

3838
# The short X.Y version
39-
version = '0.7.4'
39+
version = '0.8.0'
4040
# The full version, including alpha/beta/rc tags
4141
release = version
4242

pycatia/base_interfaces/pycatia.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,17 @@ def logger(self) -> logging.Logger:
2020
"""
2121
return create_logger()
2222

23+
def release_check(self, current: int, required: int, name: str):
24+
"""
25+
26+
Used to notify user if the CATIA V5 version is lower than that required.
27+
28+
:param int current:
29+
:param int required:
30+
:param str name:
31+
"""
32+
if current < required:
33+
self.logger.info(f'"{name}" was introduced in R{required}. You are running R{current}.')
34+
2335
def __repr__(self):
2436
return 'PyCATIA()'

pycatia/caa_composites_interfaces/__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)