"""Open-ended GT2 (2GT) timing belt as a straight envelope for assemblies: a bar of the belt's overall height and width, length along X, centred on the origin, back of the belt up. Teeth are not modelled.""" from steve import Model width = 6 # mm Belt width length = 300 # mm Belt length # Handson Technology, GT2 belt data sheet: 2 mm pitch, belt height 1.38 mm, tooth height 0.75 mm. HEIGHT = 1.38 model = Model() with model.sketch("belt_sketch", on="XY", name="Belt") as sk: sk.rect("outline", (-length / 2, -width / 2), (length / 2, width / 2)) model.extrude("belt", "belt_sketch", distance=HEIGHT, name="Belt") result = model.result()