File tree Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Original file line number Diff line number Diff line change @@ -42,9 +42,41 @@ Notes on the Formats
42
42
Importing DXF
43
43
##############
44
44
45
+ DXF files can be imported using the :py:meth: `importers.importDXF ` method. There are 3 parameters that can be
46
+ passed this method to control how the DXF is handled.
47
+
48
+ * *fileName * - The path and name of the DXF file to be imported.
49
+ * *tol * - The tolerance used for merging edges into wires (default: 1e-6).
50
+ * *exclude * - A list of layer names not to import (default: []).
51
+
52
+ Importing a DXF profile with default settings and using it within a CadQuery script is shown in the following code.
53
+
54
+ .. code-block :: python
55
+
56
+ import cadquery as cq
57
+
58
+ result = (
59
+ cq.importers.importDXF(' /path/to/dxf/circle.dxf' )
60
+ .wires().toPending()
61
+ .extrude(10 )
62
+ )
63
+
64
+ Note the use of the :py:meth: `Workplane.wires ` and :py:meth: `Workplane.toPending ` methods to make the DXF profile
65
+ ready for use during subsequent operations. Calling toPending() tells CadQuery to make the edges/wires available
66
+ to the next operation that is called in the chain.
67
+
45
68
Importing STEP
46
69
###############
47
70
71
+ STEP files can be imported using the :py:meth: `importers.importStep ` method (note the capitalization of "Step").
72
+ There are no parameters for this method other than the file path to import.
73
+
74
+ .. code-block :: python
75
+
76
+ import cadquery as cq
77
+
78
+ result = cq.importers.importStep(' /path/to/step/block.stp' )
79
+
48
80
Exporting SVG
49
81
##############
50
82
@@ -116,5 +148,11 @@ Which results in the following image:
116
148
Exporting STL
117
149
##############
118
150
151
+ The STL exporter is capable of adjusting the quality of the resulting STL, and accepts the following options.
152
+
153
+ * ** -
154
+ * ** -
155
+ * ** -
156
+
119
157
Exporting Other Formats
120
158
########################
You can’t perform that action at this time.
0 commit comments