mirror of
https://github.com/gumyr/build123d.git
synced 2025-12-15 15:20:37 -08:00
Changed Unit Enum to abbreviations
This commit is contained in:
parent
c288ae2856
commit
2831078a28
6 changed files with 78 additions and 84 deletions
|
|
@ -91,7 +91,7 @@ with BuildPart() as lego:
|
|||
# Extrude this base sketch to the height of the walls
|
||||
extrude(amount=base_height - wall_thickness)
|
||||
visible, hidden = lego.part.project_to_viewport((-5, -30, 50))
|
||||
exporter = ExportSVG(unit=Unit.MILLIMETER, scale=6)
|
||||
exporter = ExportSVG(scale=6)
|
||||
exporter.add_layer("Visible")
|
||||
exporter.add_layer("Hidden", line_color=(99, 99, 99), line_type=LineType.ISO_DOT)
|
||||
exporter.add_shape(visible, layer="Visible")
|
||||
|
|
@ -107,7 +107,7 @@ with BuildPart() as lego:
|
|||
align=(Align.CENTER, Align.CENTER, Align.MIN),
|
||||
)
|
||||
visible, hidden = lego.part.project_to_viewport((-5, -30, 50))
|
||||
exporter = ExportSVG(unit=Unit.MILLIMETER, scale=6)
|
||||
exporter = ExportSVG(scale=6)
|
||||
exporter.add_layer("Visible")
|
||||
exporter.add_layer("Hidden", line_color=(99, 99, 99), line_type=LineType.ISO_DOT)
|
||||
exporter.add_shape(visible, layer="Visible")
|
||||
|
|
@ -123,7 +123,7 @@ with BuildPart() as lego:
|
|||
align=(Align.CENTER, Align.CENTER, Align.MIN),
|
||||
)
|
||||
visible, hidden = lego.part.project_to_viewport((-100, -100, 50))
|
||||
exporter = ExportSVG(unit=Unit.MILLIMETER, scale=6)
|
||||
exporter = ExportSVG(scale=6)
|
||||
exporter.add_layer("Visible")
|
||||
exporter.add_layer("Hidden", line_color=(99, 99, 99), line_type=LineType.ISO_DOT)
|
||||
exporter.add_shape(visible, layer="Visible")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue