Templot Club forums powered for Martin Wynne by XenForo :
  • The Plug Track functions are experimental and still being developed. Some of the earlier pages of this topic are now out-of-date.

    For an updated overview of this project see this topic.   For some practical modelling aspects of using Plug Track see Building 3D Track.

    The assumption is that you have your own machines on which to experiment, or helpful friends with machines. Please do not send Templot files to commercial laser cutting or 3D printing firms while this project is still experimental, because the results are unpredictable and possibly wasteful.

    Some pages of this and other topics include contributions from members who are creating and posting their own CAD designs for 3D printing and laser-cutting. Do not confuse them with Templot's own exported CAD files. All files derived from Templot are © Martin Wynne.
  • The Plug Track functions are experimental and still being developed.

    For an updated overview of this project see this topic.   For some practical modelling aspects of using Plug Track see Building 3D Track.

    The assumption is that you have your own machines on which to experiment, or helpful friends with machines. Please do not send Templot files to commercial laser cutting or 3D printing firms while this project is still experimental, because the results are unpredictable and possibly wasteful.

    Some pages of this and other topics include contributions from members who are creating and posting their own CAD designs for 3D printing and laser-cutting. Do not confuse them with Templot's own exported CAD files. All files derived from Templot are © Martin Wynne.

CadQuery

Quick reply >

Richardb

Member
Location
Wilts
Real name
Richard Bunting
**Completely separate from Templot and is a personal project**

I want to build a simplified way of generating detailed CAD models for my own use but keep it open source under GPL3 v3 and help remove barriers to 3d printing or indeed open new gateways.

This is what I had in mind but using CadQuery, which is a Python library for building parametric 3D CAD models. The documentation describes it as “intuitive and easy-to-use,” and while I do think it’s quite straightforward, it’s not always as intuitive as it sounds. It is, however, great fun—especially when you use the free extension in VS Code.

CadQuery can be installed in a web application with a Python package manager; I used pip in a Django project (currently on hold while I experiment with the editor). I also considered a SQLite database for storing CadQuery data, letting users dynamically render objects from track component data via a web interface.

This would take me a good couple of months and I'd need to think how to deploy such a program without detrimental cost to myself.

Below is a screenshot of VS Code with the OCP extension enabled, knowledge of VS Code and how extensions work is required. In the picture below I'm developing a parametric baseboard (some tweaking required to the design) and plan to create other parametric models like platforms, canopies etc once I get the hang of it.


1737215931915.png
 
_______________
message ref: 16109
Last edited:
**Completely separate from Templot and is a personal project**

Sorry for the annoying music in the linked video, sadly to get more reach on a reel you need music and hashtags.

I've integrated CadQuery into a Django-Ninja backend. I've used YAML config files to dynamically parameterise a pre-modelled 3d model. The script produces an STL and STEP file to disk and caches to speed up the CAD pipeline, which isn't built yet. Right now, I'm getting the foundations right and necessary tests sorted plus optimisations. Next steps is refining the API to allow users to interact with the YAML config file, download the generated STL file plus some other cool stuff.


The codebase is on GitHub and is open source. https://github.com/Richard-Gnitnub/Railworks

Its a work in progress so if you fancy tinkering you will need experience in VS Code, Python and Django
 
_______________
message ref: 16169
Last edited:
Back
Top