Skip to main content

A python module to interface with the CATIA V5 COM object.

Project description

alpha software

This is alpha software.

The CATIA com interface is large and I’ve predominantly wrote tests for those areas I’m familiar. Any bugs that exist should be easy to fix. There are many examples of fixes within the git repository history that can be learned from to fix remaining issues.

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.

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: https://github.com/evereux/pycatia/issues/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 and adds them to the folder tests/cat_files.

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

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pycatia-0.9.3.tar.gz (1.4 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pycatia-0.9.3-py3-none-any.whl (2.5 MB view details)

Uploaded Python 3

File details

Details for the file pycatia-0.9.3.tar.gz.

File metadata

  • Download URL: pycatia-0.9.3.tar.gz
  • Upload date:
  • Size: 1.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.1

File hashes

Hashes for pycatia-0.9.3.tar.gz
Algorithm Hash digest
SHA256 41a56368449fc9f731eba0fde9ee080b8d698d9b9485b8905018e93ffc384a90
MD5 639557d580912e83c4623902eec90ab3
BLAKE2b-256 36706b7bdd26c953136cfa5e65fc6e029506af619d0d5fab6b1754ed81c0751c

See more details on using hashes here.

File details

Details for the file pycatia-0.9.3-py3-none-any.whl.

File metadata

  • Download URL: pycatia-0.9.3-py3-none-any.whl
  • Upload date:
  • Size: 2.5 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.1

File hashes

Hashes for pycatia-0.9.3-py3-none-any.whl
Algorithm Hash digest
SHA256 1696e7269f5c87a6b7cc6951820ef1d8a3e06cbe6b1a76d38b8eb161d4c2df96
MD5 f660f8e3a737fb9d22231672b40bbe10
BLAKE2b-256 22dd0326d9a7baf9ad0b508bc04fd2b5d5d551fa511bf3df812db5cca117a401

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page