86 lines
1.7 KiB
Plaintext
86 lines
1.7 KiB
Plaintext
snippet build123d
|
|
from build123d import *
|
|
snippet ocp
|
|
from ocp_vscode import *
|
|
snippet box
|
|
Box(${1:length}, ${2:width}, ${3:height})
|
|
|
|
snippet text
|
|
Text("${1:what?}", font_size=${2:ile?})
|
|
|
|
|
|
snippet otwieramy
|
|
offset(amount=-${1:grubosc_scianki}, openings=${2:what}.faces().sort_by(Axis.Z)[-1])
|
|
|
|
snippet loc
|
|
with Locations((${1:x}, ${2:y}, ${3:z})):
|
|
|
|
snippet rec
|
|
Rectangle(${1:dlugosc}, ${2:szerokosc})
|
|
|
|
|
|
snippet filletpolyline
|
|
FilletPolyline((${1:pts1}, ${2:pts2}), (${3:pts3}, ${4:pts4}), (${5:pts5}, ${6:pts5}), radius=${7:fillet radius})
|
|
|
|
|
|
|
|
snippet part
|
|
with BuildPart() as ${1:what?}:
|
|
snippet sketch
|
|
with BuildSketch() as ${1:what?}:
|
|
|
|
snippet line
|
|
with BuildLine() as ${1:what?}:
|
|
|
|
snippet debug
|
|
debug(${1:what?})
|
|
snippet move
|
|
move(Location((${1:0}, ${2:0}, ${3:0})))
|
|
|
|
snippet extrude
|
|
extrude(amount=${1:ile?})
|
|
|
|
snippet align
|
|
align=Align.${1:what?}
|
|
|
|
snippet alignl
|
|
align=(Align.${1:what?}, Align.${2:what?}, Align.${3:what?})
|
|
|
|
snippet fs
|
|
${1:what?}.faces().sort_by(Axis.${2:what?})
|
|
|
|
|
|
snippet grid
|
|
with GridLocations(${1:x_spacing,}, ${2:y_spacing}, ${3:x_count}, ${4:y_count})
|
|
|
|
snippet mode
|
|
mode=Mode.${1:what?}
|
|
|
|
snippet fillet
|
|
fillet(${1:objects}, ${2:radius})
|
|
|
|
snippet circle
|
|
Circle(${1:radius})
|
|
|
|
snippet mirror
|
|
mirror(about=Plane.${1:XY})
|
|
|
|
snippet triangle
|
|
Triangle(a=${1:a}, ${2:b}, ${3:c}, ${4:opcional_Angle1}, ${5:optional_Angle2}, ${6:opcional_Angle3})
|
|
|
|
snippet cone
|
|
Cone(bottom_radius=${1:ile?}, top_radius=${2:ile?}, height=${3:ile?})
|
|
|
|
snippet scale
|
|
scale(${1:what?}, by=${2:scale_factor})
|
|
|
|
snippet show
|
|
show(${1:what?})
|
|
snippet showc
|
|
show(${1:what?}, colors=["${2:grey}"])
|
|
snippet joint_location
|
|
joint_location((${1:x}, ${2:y}, ${3:z}))
|
|
|
|
snippet recr
|
|
RectangleRounded(${1:dlugosc}, ${2:szerokosc}, ${3:radius})
|