MCPcopy Index your code
hub / github.com/CadQuery/cadquery / importStep

Method importStep

cadquery/assembly.py:631–640  ·  view source on GitHub ↗

Reads an assembly from a STEP file. :param path: Path and filename for reading. :param unit: The unit of measurement for the STEP file. Default "MM". :return: An Assembly object.

(cls, path: str, unit: UnitLiterals = "MM")

Source from the content-addressed store, hash-verified

629
630 @classmethod
631 def importStep(cls, path: str, unit: UnitLiterals = "MM") -> Self:
632 """
633 Reads an assembly from a STEP file.
634
635 :param path: Path and filename for reading.
636 :param unit: The unit of measurement for the STEP file. Default "MM".
637 :return: An Assembly object.
638 """
639
640 return cls.load(path, importType="STEP", unit=unit)
641
642 @classmethod
643 def load(

Calls 1

loadMethod · 0.80