Replies: 3 comments 4 replies
-
I think your best bet is extending DXF export and adding dimensions via ezdxf. |
Beta Was this translation helpful? Give feedback.
-
I would rather be staying with CadQuery to add the dimensions so only one interface for all the work, even ezdxf is used for importing DXF files. If using native OpenCascade is hard or troublesome maybe something like build123d can be done? Also cq_warehouse has something like that. Probably that's the way for know I think. I hoped native OpenCascade dimensions was something which could be added to CadQuery. Currently it's not my usecase but STEP ap214 which is supported by OpenCascade can also export the annotations like dimensions etc. So when you open that STEP file in another program that supports ap214, the dimensions etc are also shown. |
Beta Was this translation helpful? Give feedback.
-
In the end, it was indeed the best bet to use So the steps I'm taking now is:
|
Beta Was this translation helpful? Give feedback.
-
As the title describes it, this is not about creating production drawings but create a 2D view with dimensions and other annotations. That view then can be exported as a vector image and then it's up to the user to put several views together with a template to create the production drawing.
So the idea is to create a
Plane
where the dimensions and annotations live. The model can also be clipped by that plane and hatched. This all should also work with assemblies. Adding dimensions can be done by selecting edges or vertices and maybe even create points in space to connect a dimension to.There is an example how to create dimensions which comes with OpenCascade in
/usr/share/opencascade/samples/tcl/dimensions.tcl
using TCL. It's still a 3D view, but I hope it can somehow be converted into a SVG image or something like that.I looked into https://dev.opencascade.org/doc/refman/html/package_xcafdimtolobjects.html but there I got lost and I have no idea to go any further. If anyone can shed any light on how to proceed would be awesome!
I'm fully aware that automatically adding dimensions can be problematic, but I think for simple use-cases this can be very useful. Like simple 3D box like models and simple assemblies like steel or wooden frames.
Any other thoughts on this?
Beta Was this translation helpful? Give feedback.
All reactions