Skip to content

evereux/pycatia

Folders and files

NameName
Last commit message
Last commit date

Latest commit

7230e5c · Mar 17, 2025
Oct 4, 2020
Mar 14, 2025
Mar 14, 2025
Mar 14, 2025
Mar 2, 2025
Jul 13, 2024
Jun 6, 2024
Jul 12, 2024
Oct 11, 2023
Mar 14, 2025
Oct 8, 2022
Jul 13, 2024
Jul 13, 2024
Dec 8, 2018
Mar 17, 2025
Oct 20, 2023
Sep 14, 2023
Nov 28, 2022
Sep 14, 2023
Nov 28, 2022

Repository files navigation

pycatia

alpha software

This is alpha software.

All the test cases and examples work but there will be many issues outside of the test framework. The CATIA com interface is large and I've predominantly wrote tests for those areas I'm familiar. Any bugs that exist should be for the most part be quite easy to fix using those methods that do work as a reference.

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

Requirements

  • python >= 3.9
  • CATIA V5 running on Windows.
  • see requirements.txt

Installation

see installation.

Usage

See the introduction, examples and user_scripts for a good over view on how to use pycatia.

Links

Releases: pycatia @ pypi.org

Examples And Scripts

See the documentation @ examples and user_scripts.

A GUI based application that uses pycatia - pycatia-tools.

Asking Questions

Please read the following with regards to raising questions: #28

Contributing

See CONTRIBUTING.md in root of github repository.

Running The Tests

Prior to running the tests please ensure CATIA V5 has the following configuration settings:

  • CGR cache system must be disabled.
  • Do not activate default shapes on open must be disabled.
  • Parameter names must not have back ticks enabled. Tools > Options > General > Parameters and Measure > Knowledge > Parameter Names > Surrounded by the ` symbol.

On the first run, during the running of the tests, the test suite will create the CATIA drawing, products and part it requires to run in the folder tests/cat_files.

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

To run the tests with coverage (-v is verbosity):

py.test -v --cov-report term-missing --cov=pycatia

To run a specific test:

py.test -v tests/test_product.py::test_move

To stop tests running after first failure.

py.test -vx

Release process

A reminder for @evereux. I don't do this often and forget ...

  • Check version is correct.
  • Check changelog has been updated.
  • Run the tests. pytest -v tests
    • Ensure cache is disabled and
    • Fix any issues.
  • Run the examples.
    • Fix any issues.
  • Build the docs. cd docs ./make html
    • Fix any issues.
  • Run mypy over module. mypy pycatia
  • Build source. python setup.py sdist bdist_wheel
    • Check source contents.
  • Build pycatia exe python -m nuitka --standalone pycatia-exe.py. * use 64 env. * rename pycatia-exe.exe.
  • Merge changes with master branch and upload.
  • Upload to pypi. twine upload dist/*.
  • Update github releases.