MCPcopy
hub / github.com/CadQuery/cadquery / importDXF

Method importDXF

cadquery/sketch.py:221–237  ·  view source on GitHub ↗

Import a DXF file and construct face(s)

(
        self: T,
        filename: str,
        tol: float = 1e-6,
        exclude: List[str] = [],
        include: List[str] = [],
        angle: Real = 0,
        mode: Modes = "a",
        tag: Optional[str] = None,
    )

Source from the content-addressed store, hash-verified

219 return self.each(lambda l: res.moved(l), mode, tag, ignore_selection)
220
221 def importDXF(
222 self: T,
223 filename: str,
224 tol: float = 1e-6,
225 exclude: List[str] = [],
226 include: List[str] = [],
227 angle: Real = 0,
228 mode: Modes = "a",
229 tag: Optional[str] = None,
230 ) -> T:
231 """
232 Import a DXF file and construct face(s)
233 """
234
235 res = Compound.makeCompound(_importDXF(filename, tol, exclude, include))
236
237 return self.face(res, angle, mode, tag)
238
239 def rect(
240 self: T,

Callers 9

test_dxf_importFunction · 0.80
test_exportFunction · 0.80
testImportDXFMethod · 0.80
testDXFMethod · 0.80
test_dxf_approxFunction · 0.80
test_dxf_textFunction · 0.80
test_dxf_ellipse_arcFunction · 0.80
test_dxf_sketchFunction · 0.80
test_dxf_shapeFunction · 0.80

Calls 3

faceMethod · 0.95
_importDXFFunction · 0.85
makeCompoundMethod · 0.80

Tested by 9

test_dxf_importFunction · 0.64
test_exportFunction · 0.64
testImportDXFMethod · 0.64
testDXFMethod · 0.64
test_dxf_approxFunction · 0.64
test_dxf_textFunction · 0.64
test_dxf_ellipse_arcFunction · 0.64
test_dxf_sketchFunction · 0.64
test_dxf_shapeFunction · 0.64