def draw_rect(points: List[Vec3], color: Color, out: Backend): from ezdxf.addons.drawing import Properties props = Properties() props.color = color for a, b in zip(points, points[1:]): out.draw_line(a, b, props)
def override_properties(self, entity: DXFGraphic, properties: Properties) -> None: if not self.override_enabled: return if properties.layer == 'T1': properties.layer = 'Tx' properties.color = '#000000' if entity.dxf.text == 'T2': properties.is_visible = False
def override_properties(self, entity: DXFGraphic, properties: Properties) -> None: if not self.override_enabled: return if properties.layer == "T1": properties.layer = "Tx" properties.color = "#000000" if entity.dxf.text == "T2": properties.is_visible = False