Pycatia

Latest version: v0.6.8

Safety actively analyzes 629599 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 4 of 8

0.5.0

* Added tps_interfaces.
* Document() no longer contains methods specific to Parts, Products and Drawings. This will most likely break your
scripts. Please see updated examples. These methods / properties are now only available in PartDocument,
ProductDocument and DrawingDocument. Example:

python
from pycatia import catia

caa = catia()
documents = caa.documents
documents.open(r'tests/cat_files/part_measurable.CATPart')

get the active document
document = caa.active_document
get the Part() object. NOTE THIS IS NOW A PROPERTY, NOT A METHOD.
part = document.part


* Removed requirements from setup.py which are installed by pytest.

0.4.4

Many thanks to Tian-Jionglu for his contributions.

* Improved checks for malformed filenames.
* Add method Application.setting_controllers.
* Improvements to export_data.
* Added Product.type.
* Docstring fix for Measurable.get_minimum_distance.
* Added __iter__ method to collections.

0.4.3

* Updated ViewPoint3D get methods so they now work.
* Updated Viewer so Viewer2D and Viewer3D can be called.
* Fix issue 58.
* Change file_name argument so that it now expects Path().
* Log warning to console if full path isn't provided.
* Raise error if directory doesn't exist.

0.4.2

* Added missing methods Parameter.rename(), Parameter.valuate_from_string(), and Parameter.value_as_string()
* Added missing methods DrawingThread.is_linked().
* Added the following missing methods from the class HybridShapeCurveSmooth
* add_frozen_curve_segment()
* add_frozen_point
* get_frozen_curve_segment
* get_frozen_curve_segments_size
* get_frozen_point
* get_frozen_points_size
* remove_all_frozen_curve_segments
* remove_all_frozen_points
* remove_frozen_curve_segment
* remove_frozen_point
* set_maximum_deviation
* set_tangency_threshold

0.4.1

* Document.save_as() If overwrite is to true DisplayFileAlerts is set to False.
* Analyze added to Part().
* Updates / fixes to SettingController(s) and LicenseSettingAtt. More work to be done here yet though.
* Document.add() now accepts lowercase document_types.
* Document.add() now correctly returns a document.

0.4.0

Breaking changes.

* The catia application object now needs to be initialized in your scripts. This was done so scripts can be written in
such a way that they first launch CATIA V5 (or check it's actually running) before the application object is
initialised. Previously, the object was initialised immediately on import. Not practical for some use cases. For
example:


>>> from pycatia import catia
>>> initialise the catia application automation object.
>>> caa = catia()
>>> document = caa.active_document


* Removed pycatia.workbenches folder. Functionality is provided for Document object.
* Lots of bug/type fixes. Mypy is great!

* Collection objects are now directly iterable (Product.get_products() will be deprecated in later release).


>>> from pycatia import catia
>>> caa = catia()
>>> document = caa.active_document
>>> product = document.product()
>>> products = product.products
>>> for product in produts:
>>> print(product)


* Improved viewing experience of API. I hope.

Page 4 of 8

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.