Table of Contents

CadDimensionPicture

from OpenCAD2D import CadDimensionPicture

class CadDimensionPicture(System.Object) ยท CadDimensionPicture in the .NET reference

The drawn picture of a dimension, for code that makes or changes dimensions outside the commands (a Python tool in the app, a plugin, a script over a file). The app draws the picture of a dimension it is given; this does the same.

Methods

Redraw

.NET

@staticmethod
def Redraw(dimension: DxfDimension) -> bool

Draws the picture of a dimension anew from its points and the variables it reads now (its overrides, else its style's), as the DIM commands make it, and writes the measurement into it. A rotated dimension of (0, 0) to (100, 0) with the line through (100, 20) gets the lines, arrows and words "100" in its own block.