Comments (1)
Is this a hack? Why not just add this as a function to Sketch
?
Edit: I just tried it and it doesn't work for all sketches. If there are disconnected edges it could not handle them. The following could probably work. I tried it on some of my sketches.
def sketchToDxf(sketch, **kwargs):
w = (
cq.Workplane()
.add(sketch._faces)
.add(sketch._wires)
.add(sketch._edges)
)
cq.exporters.exportDXF(w, **kwargs)
from cadquery.
Related Issues (20)
- Sketches edges connection misplaced HOT 8
- Implement pickling support
- How to get the absolute location of a tag? HOT 5
- Visualizing multiple vertices (3d points) HOT 2
- Cannot create a free standing bezier curve HOT 1
- Problem importing STEP with colours HOT 1
- free function sweep BRepOffsetAPI_MakePipeShell option to SetMode
- Operation along a rounded box HOT 2
- Length of an edge HOT 5
- Workplane.clone() HOT 2
- allow face selectors to be relative to workplane ? HOT 2
- pyright and extending workplane
- Export assy to brep
- Projection HOT 1
- Which center fucntion is more appropriate for "Point constraint", Center()(=centerOfMass) or CenterOfBoundBox()? HOT 2
- Body rotations from a repeatedly solved assembly seem to be off by factor 1.29 HOT 5
- When the same sketch is placed on the "XZ-plane" and the "ZX-plane", how to keep the sketch's direction the same? HOT 2
- `cskHole` generates incorrect results for shallow holes HOT 1
- AttributeError: 'Workplane' object has no attribute 'cylinder' HOT 3
- Proper steps using pyinstaller to create a .exe for a file using cadquery HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cadquery.