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

Method save

cadquery/assembly.py:537–562  ·  view source on GitHub ↗

Save assembly to a file. :param path: Path and filename for writing. :param exportType: export format (default: None, results in format being inferred form the path) :param mode: STEP only - See :meth:`~cadquery.occ_impl.exporters.assembly.exportAssembly`. :

(
        self,
        path: str,
        exportType: Optional[ExportLiterals] = None,
        mode: STEPExportModeLiterals = "default",
        tolerance: float = 0.1,
        angularTolerance: float = 0.1,
        **kwargs,
    )

Source from the content-addressed store, hash-verified

535
536 @deprecate()
537 def save(
538 self,
539 path: str,
540 exportType: Optional[ExportLiterals] = None,
541 mode: STEPExportModeLiterals = "default",
542 tolerance: float = 0.1,
543 angularTolerance: float = 0.1,
544 **kwargs,
545 ) -> Self:
546 """
547 Save assembly to a file.
548
549 :param path: Path and filename for writing.
550 :param exportType: export format (default: None, results in format being inferred form the path)
551 :param mode: STEP only - See :meth:`~cadquery.occ_impl.exporters.assembly.exportAssembly`.
552 :param tolerance: the deflection tolerance, in model units. Only used for glTF, VRML. Default 0.1.
553 :param angularTolerance: the angular tolerance, in radians. Only used for glTF, VRML. Default 0.1.
554 :param \\**kwargs: Additional keyword arguments. Only used for STEP, glTF and STL.
555 See :meth:`~cadquery.occ_impl.exporters.assembly.exportAssembly`.
556 :param ascii: STL only - Sets whether or not STL export should be text or binary
557 :type ascii: bool
558 """
559
560 return self.export(
561 path, exportType, mode, tolerance, angularTolerance, **kwargs
562 )
563
564 def export(
565 self,

Calls 1

exportMethod · 0.95