discontinuedPackage jet_cad_floor_plan has been discontinued and replaced by jet_cad_2d_plan.

tableLabelRecord function

EntityRecord tableLabelRecord({
  1. required Handle handle,
  2. required Handle instance,
  3. required String number,
})

The label record of a table: owned by instance, on layer 0 (so it follows the instance's layer, spec 12b S-2), BYBLOCK style, the standard text style, tag TABLE, text number (T8).

Implementation

EntityRecord tableLabelRecord(
        {required Handle handle,
        required Handle instance,
        required String number}) =>
    EntityRecord(
      handle: handle,
      owner: instance,
      kind: EntityKind.attrib,
      layer: ReservedHandles.layerZero,
      linetype: ReservedHandles.byBlockLinetype,
      linetypeScale: 1.0,
      geomIndex: 0,
      color: const ByBlockColor(),
      lineweight: kByBlock,
      transparency: kByBlock,
      flags: 0,
      text: number,
      tag: kTableLabelTag,
      textStyle: ReservedHandles.standardTextStyle,
      textAttrs: kTableLabelTextAttrs,
    );