Skip to content

Commit fc7e065

Browse files
committed
Merge branch 'developement' of https://github.com/evereux/pycatia into developement
2 parents 7da8d2f + f77af05 commit fc7e065

File tree

249 files changed

+1169
-1201
lines changed

Some content is hidden

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

249 files changed

+1169
-1201
lines changed

CHANGELOG.md

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

3+
## 0.9.1
4+
5+
* fixed DrawingDimValue.get_bault_text() and DrawingDimValue.get_ps_text().
6+
37
## 0.9.0
48

59
Please note the change to VisPropertySet.get_show() will break existing scripts where this is used.
@@ -14,6 +18,7 @@ Please note the change to VisPropertySet.get_show() will break existing scripts
1418
Thanks to @CossackLucas for reporting #263.
1519
* updated ParameterSet.all_parameters to return a Parameters collection object.
1620
* fixed DrawingDimension.get_boundary_box(). #275
21+
* many type hinting improvements / fixes.
1722

1823
## 0.8.3
1924

README.rst

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,12 @@ alpha software
1414

1515
This is alpha software.
1616

17-
All the test cases and examples work but there will be many issues outside of
18-
the test framework. The CATIA com interface is large and I've predominantly
19-
wrote tests for those areas I'm familiar. Any bugs that exist should be for the
20-
most part be quite easy to fix using those methods that do work as a reference.
17+
The CATIA com interface is large and I've predominantly wrote tests for those
18+
areas I'm familiar. Any bugs that exist should be easy to fix. There are many
19+
examples of fixes within the git repository history that can be learned from to
20+
fix remaining issues.
2121

22-
I have limited access to CATIA licences / workbenches. Also, there are many
23-
modules that I simply don't know what they do. Thus my ability to test and
24-
support can be limited.
22+
My ability to test and support can be limited.
2523

2624

2725
Requirements
@@ -86,8 +84,8 @@ On the first run, during the running of the tests, the test suite will create
8684
the CATIA drawing, products and part it requires to run and adds them to the
8785
folder tests/cat_files.
8886

89-
If you have previously run the tests successfully and see into strange errors,
90-
it maybe that the source parts require re-creating. Try deleting the CATIA files
87+
If you have previously run the tests successfully and see unexpected errors, it
88+
maybe that the source parts require re-creating. Try deleting the CATIA files
9189
in the folder tests/cat_files so that they are regenerated on the next test run.
9290

9391
CATIA V5 should already be running and have NO documents already open.

docs/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@ 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
39-
version = '0.9.0'
39+
version = '0.9.1'
4040
# The full version, including alpha/beta/rc tags
4141
release = version
4242

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/installation.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,11 +129,11 @@ Confirm Successful Install
129129
.. code-block:: python
130130
131131
from pycatia import catia
132-
caa = catia()
133-
help(caa)
132+
application = catia()
133+
help(application)
134134
# q to quit help
135135
# open a new .CATPart
136-
documents = caa.documents
136+
documents = application.documents
137137
documents.add('Part')
138138
139139
* To exit the python interpreter.

docs/introduction.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ You will almost always want to import the `catia`
2121
from pycatia import catia
2222
from pycatia.mec_mod_interfaces.part_document import PartDocument
2323
# initialise the catia automation appliction. CATIA V5 should already be running.
24-
caa = catia()
25-
documents = caa.documents
24+
application = catia()
25+
documents = application.documents
2626
2727
documents is an instance of the :ref:`Documents<Documents>`
2828
class.

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
-----

examples/example__assembly_convertor__001.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@
3838
# file_type can be "TXT", "HTML" or "XLS".
3939
file_type = "XLS"
4040

41-
caa = catia()
42-
product_document: ProductDocument = caa.active_document
41+
application = catia()
42+
product_document: ProductDocument = application.active_document
4343
product = product_document.product
4444

4545
bom = product.get_item("BillOfMaterial")

examples/example__bom_custom_001.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@
2727
from pycatia import catia
2828
from pycatia.product_structure_interfaces.product_document import ProductDocument
2929

30-
caa = catia()
31-
product_document: ProductDocument = caa.active_document
30+
application = catia()
31+
product_document: ProductDocument = application.active_document
3232
product = product_document.product
3333
products = product.products
3434

examples/example__constraints_001.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@
2626
from pycatia.enumeration.enumeration_types import cat_constraint_type
2727
from pycatia.product_structure_interfaces.product_document import ProductDocument
2828

29-
caa = catia()
29+
application = catia()
3030
# if the active document is a CATProduct this will return a ProductDocument
31-
product_document: ProductDocument = caa.active_document
31+
product_document: ProductDocument = application.active_document
3232
product = product_document.product
3333

3434
products = product.products

0 commit comments

Comments
 (0)