Skip to content

Reference Line (moved)

Deprecated — moved to the design family

snaptrude.entity.referenceLine is deprecated. Reference-line operations now live in the design family. The old paths keep working for now, but new code should call the canonical names below.

DeprecatedCanonical
entity.referenceLine.createMulti(profile)design.create.referenceLines(profile, ...) — plus optional styling args
entity.referenceLine.get(id, props)design.query.referenceLines.get(id, props)
entity.referenceLine.getAll()design.query.listReferenceLines(filter?) — see shape note below
entity.referenceLine.delete(id)design.delete.entities([id])

Result-shape notes: getAll() returns { referenceLineIds: string[] }; listReferenceLines() returns the handles directly as a ComponentHandle[] array (and accepts the standard entity filter). Likewise createMulti returns { referenceLineIds } while design.create.referenceLines returns a ComponentHandle[].

See Design → Create, Design → Query, and Design → Delete for the full documentation of every method, type, and error condition.