Table of Contents

CadTableRecords

from OpenCAD2D import CadTableRecords

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

Table records of one drawing brought into another by name, as a commit of the Python Drawing and of a remote client adds the styles, linetypes and blocks it made in a small drawing of its own.

Methods

Add

.NET

@staticmethod
def Add(
    database: DxfDatabase,
    source: DxfDatabase,
    textStyles: System.Collections.Generic.IReadOnlyList[str],
    linetypes: System.Collections.Generic.IReadOnlyList[str],
    blocks: System.Collections.Generic.IReadOnlyList[str],
    dimensionStyles: System.Collections.Generic.IReadOnlyList[str],
) -> None

Copies the named text styles, linetypes, blocks (each with its objects) and dimension styles of another drawing into a drawing, in that order, so that a dimension style points at the text style and the blocks the drawing then has: the way the library merges the tables of a drawing it inserts, but only the records named, so that the defaults a small drawing is made with (ISO-25) are not added to a drawing that lacks them. Each name is of a record the source has and the drawing has not. Writes no record of the edit: the caller's CadEditScope does.