poccad is a Python parametric CAD application using pyqt5 and keeping original pythonocc scripts syntax.
The idea is modeling in an user friendly framework with a didactic way to learn and use pythonocc. You can edit your code and render your file on the same UI, use any of the pythonocc-core method that are not yet implement as long as you import them, export your project as .py
files or 3d exchange format such as .stp
, .iges
or .stl
.
Example of use :
- Modeling part and export
- Developp functions in a friendly user framework before implement in your code
- Discover and learn pythonocc by trying and consult files
I guess the code needs a lot clean-up and hope it would be useful to anybody. I've started to implement method in lib\Scripts
such as make_box
, draw_point
or export_step
, a contribute instructions file will follow.
Generated files are named *.pocc
or *.py
The Qt designer file is poccad.ui
then converted in poccad.py
thanks to the line stored in cmd_qtGUI.txt
and all the functions are stored under poccad_Method.py
Requires : pythonocc-core and PyQt5. Installation guide will be add soon, but you can refer to https://github.com/tpaviot/pythonocc-core with for example conda installing https://anaconda.org/conda-forge/pythonocc-core
Execute poccad_launcher.py
to get started
New ui design and functions, readme update coming soon
Open a demo file :
Boolean cut and export result as filename.step :
Translate a box and change view to Top :