SleelaDoc API
HTML documentation for the SLeeLa standard library (/lib)
Home › Packages › autocad

Package autocad

This package contains 9 source unit(s) defining 9 class(es) / struct(s). Each unit below lists its fields (the values it stores) and methods (the actions it performs), with a plain explanation of each.

autocad #sleela 2.5 (lib/autocad/autocad.sleela)

AutoCadRenderer class

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
wallsString wallsaccumulated LINE entities (walls layer)
dimsString dimsaccumulated dimension LINE + measured TEXT entities
notesString notesaccumulated TEXT entities (notes layer)
noteCountint noteCountNo description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
beginvoid begin(String t, String u)No description in source.
growvoid grow(double x, double y)No description in source.
numString num(double v)No description in source.
istrString istr(int v)No description in source.
lineEntityString lineEntity(String lyr, double x1, double y1, double x2, double y2)No description in source.
textEntityString textEntity(String lyr, double x, double y, double height, String value)No description in source.
distancedouble distance(double x1, double y1, double x2, double y2)No description in source.
addWallvoid addWall(double x1, double y1, double x2, double y2)No description in source.
addRoomvoid addRoom(double w, double h)No description in source.
addDimvoid addDim(double x1, double y1, double x2, double y2)No description in source.
addNotevoid addNote(double x, double y, String text)No description in source.
numberOfdouble numberOf(int v)No description in source.
applyDirectivevoid applyDirective(String op, double n1, double n2, double n3, double n4, String text)Apply one plan directive to the model.
layerString layer(String name, int color)No description in source.
emitString emit()Serialize the whole model to AutoCAD DXF text.
buildString build()No description in source.
mainvoid main()No description in source.

SLCadCommand #sleela 2.5 (lib/autocad/SLCadCommand.sleela)

SLCadCommand class

Defines SLCadCommand -- one recorded, reversible edit the AutoCAD Creator(TM) applied to a document. Every creation (line/text/dim/room) and every alteration (move/reshape/relabel/restyle/delete) is captured as a command so the Creator can keep an audit trail and offer undo: a command remembers its verb, the id of the entity it affected, and the "before" values needed to reverse it (prior endpoints, prior label/layer, prior alive flag). This keeps editing a first-class, inspectable operation rather than an opaque mutation -- which is exactly what makes a creator (as opposed to a one-shot renderer) possible. Family: autocad. SLeeLa owns the edit history; a command is a plain record, replayed/reversed against an SLCadDocument.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
CREATEstatic final int CREATE = 0Verb ordinals. an entity was created (undo = delete it)
MOVEstatic final int MOVE = 1translated by (dx,dy)
RESHAPEstatic final int RESHAPE = 2endpoints changed (before stored)
RELABELstatic final int RELABEL = 3text value changed (before stored)
RESTYLEstatic final int RESTYLE = 4layer changed (before stored)
DELETEstatic final int DELETE = 5tombstoned (undo = restore)
verbint verbNo description in source.
entityIdint entityIdNo description in source.
priorValueString priorValueRELABEL prior text
priorLayerString priorLayerRESTYLE prior layer
seqint seqAudit metadata: when the edit was applied (host-supplied) and its order in the session. seq is 1-based; stampedAt is a Julian date (0 = unstamped) and stampLabel its readable form. Stamped by the Creator via stamp().
stampedAtdouble stampedAtNo description in source.
stampLabelString stampLabelNo description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
stampvoid stamp(int sequence, double whenJulian, String whenText)Attach the audit stamp (sequence number + host time) to this command.
getSeqint getSeq()No description in source.
getStampedAtdouble getStampedAt()No description in source.
getStampLabelString getStampLabel()No description in source.
createvoid create(int id)No description in source.
movevoid move(int id, double ddx, double ddy)No description in source.
reshapevoid reshape(int id, double ox1, double oy1, double ox2, double oy2)No description in source.
relabelvoid relabel(int id, String prior)No description in source.
restylevoid restyle(int id, String prior)No description in source.
deletedvoid deleted(int id)No description in source.
getVerbint getVerb()No description in source.
getEntityIdint getEntityId()No description in source.
undoboolean undo(SLCadDocument doc)Reverse this command against `doc`. Returns true when something changed.
describeString describe()A short, human-readable description for a history/log view.
describeAtString describeAt()The same description prefixed with the audit stamp, for a timeline view: "#3 @ 2026-10-13T18:00Z move #7"

SLCadCreator #sleela 2.5 (lib/autocad/SLCadCreator.sleela)

SLCadCreator class

Defines SLCadCreator -- the AutoCAD Creator(TM): the SLeeLa facade a front end drives to CREATE and ALTER 2D AutoCAD documents and then SAVE them as DXF. It owns an editable SLCadDocument, a current selection (the id a GUI tool acts on), the active layer, and a bounded command history so every create/alter/delete is recorded and undoable. Creation builders (line/wall/room/dim/note) each record a CREATE command; alteration verbs (move/reshape/relabel/restyle/delete) snapshot the prior state before mutating so undo() can reverse them. save() asks the document for the full DXF text. This is the authoritative editing brain; the SleelaUI GUI (autocad/creator) is only a surface that issues these intents and previews the result -- JavaFX never computed geometry here, and neither does SleelaUI. Family: autocad. SLeeLa owns the document, the edits, and the history; a front end selects, creates, alters, and saves through this object.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
MAX_HISTORYstatic final int MAX_HISTORY = 4096No description in source.
docSLCadDocument docNo description in source.
selectionint selectioncurrently selected entity id (-1 = none)
activeLayerString activeLayerlayer new geometry lands on by default
historySLCadCommand[] historyrecorded edits (for undo + audit)
historyCountint historyCountNo description in source.
nowJuliandouble nowJulian---- clock (host-supplied) ---------------------------------------------- The runtime has no live wall-clock, so the host feeds time in. `nowJulian` is the current time as a Julian date (AutoCAD's $TDCREATE/$TDUPDATE unit) and `nowLabel` a readable form; every edit stamps the document and the command it records. Left at 0/"" (the default), timestamping is inert and output is byte-identical to the pre-timestamp Creator.
nowLabelString nowLabelNo description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
setClockvoid setClock(double whenJulian, String whenText)Advance the Creator's clock. A host calls this before an edit (or once per UI frame) so subsequent edits carry the given time.
clockdouble clock()No description in source.
clockLabelString clockLabel()No description in source.
newDocumentvoid newDocument(String title, String units)Start a fresh, empty document (no creation timestamp).
newDocumentAtvoid newDocumentAt(String title, String units, double createdJulian, String createdText)Start a fresh document stamped with a host-supplied creation time.
documentSLCadDocument document()No description in source.
selectedint selected()No description in source.
hasSelectionboolean hasSelection()No description in source.
selectvoid select(int id)No description in source.
deselectvoid deselect()No description in source.
layerString layer()No description in source.
setLayervoid setLayer(String lyr)No description in source.
setAtvoid setAt(double x, double y)No description in source.
lineint line(double x1, double y1, double x2, double y2)No description in source.
wallint wall(double x1, double y1, double x2, double y2)No description in source.
roomint room(double w, double h, String name)No description in source.
dimensionint dimension(double x1, double y1, double x2, double y2)No description in source.
noteint note(double x, double y, String text)No description in source.
textint text(double x, double y, String value, double height)No description in source.
createdint created(int id)No description in source.
moveboolean move(int id, double dx, double dy)Move the current selection (or a specific id) by (dx,dy).
moveSelectionboolean moveSelection(double dx, double dy)No description in source.
reshapeboolean reshape(int id, double x1, double y1, double x2, double y2)Re-point a line/dim's endpoints (prior endpoints captured for undo).
relabelboolean relabel(int id, String text)Change a text/dim label (prior value captured for undo).
restyleboolean restyle(int id, String layer)Move an entity onto a different layer (prior layer captured for undo).
deleteboolean delete(int id)Delete (tombstone) an entity; clears the selection if it was selected.
deleteSelectionboolean deleteSelection()No description in source.
pickAtint pickAt(double x, double y, double radius)Turn a canvas click (model coordinates) into a selection.
editsint edits()No description in source.
lastCommandSLCadCommand lastCommand()No description in source.
lastDescriptionString lastDescription()No description in source.
undoboolean undo()Reverse the most recent recorded edit. Returns true if one was undone.
logEditvoid logEdit(SLCadCommand c)No description in source.
makeCreateSLCadCommand makeCreate(int id)No description in source.
makeMoveSLCadCommand makeMove(int id, double dx, double dy)No description in source.
makeReshapeSLCadCommand makeReshape(int id, double x1, double y1, double x2, double y2)No description in source.
makeRelabelSLCadCommand makeRelabel(int id, String prior)No description in source.
makeRestyleSLCadCommand makeRestyle(int id, String prior)No description in source.
makeDeleteSLCadCommand makeDelete(int id)No description in source.
inspectString inspect(int id)One-line description of an entity by id ("" if there is no such entity). The GUI property strip and any audit view read this to show WHAT a given id is -- its kind, layer, geometry, and label.
inspectSelectionString inspectSelection()The currently selected entity, described (or a hint when nothing is picked).
listEntitiesString listEntities()A newline-separated listing of every entity currently in the document (alive and tombstoned), newest slots last. Suitable for a report pane.
listHistoryString listHistory()A newline-separated listing of the recorded edit history, each line carrying its sequence number and timestamp -- the time-ordered audit trail.
reportString report()A full inspection report: document metadata (title, units, timestamps, counts) followed by the entity listing and the edit history. This is the "inspect the AutoCAD content" surface a report pane or a headless run dumps.
stampTextString stampText(String label, double julian)Render a timestamp for the report: prefer the readable label, fall back to the Julian value, and say "unset" when the host supplied no time.
applyDirectivevoid applyDirective(String op, double n1, double n2, double n3, double n4, String text)Apply one FORMAT.md directive to the document, so a .plan or the GUI's plan editor can seed a drawing the creator then edits. Mirrors the directive vocabulary of lib/autocad/SLCadPlan + autocad/cad/plan.sleela.
saveString save()Produce the full AutoCAD DXF for the current document. The GUI's Save action hands this to the host to write to a .dxf file; the runnable build prints it (exactly as the one-shot renderer persists its output).
summaryString summary()A one-line status summary for a GUI status bar.

SLCadDocument #sleela 2.5 (lib/autocad/SLCadDocument.sleela)

SLCadDocument class

Defines SLCadDocument -- the editable 2D AutoCAD document the

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
MAX_ENTITIESstatic final int MAX_ENTITIES = 8192No description in source.
titleString titleNo description in source.
unitsString unitsNo description in source.
itemsSLCadEntity[] itemsNo description in source.
countint countnumber of slots used (alive + tombstoned)
nextIdint nextIdmonotonic id source
createdAtdouble createdAt---- timestamps --------------------------------------------------------- Time is supplied by the host (there is no live wall-clock in the runtime), so the engine stays deterministic. A timestamp is carried as a Julian date (AutoCAD's $TDCREATE/$TDUPDATE unit, group code 40) plus a human-readable label the inspection/report API prints. createdAt is set once at begin(); updatedAt advances on every mutation via touch(). Julian date the document was created (0 = unset)
updatedAtdouble updatedAtJulian date of the most recent edit (0 = unset)
createdLabelString createdLabelreadable creation stamp (e.g. "2026-10-13T18:00Z")
updatedLabelString updatedLabelreadable last-update stamp
writerSLCadDxf writerthe DXF section wrapper (reused)

Methods — the actions this unit can perform.

MethodSignatureWhat it does
beginvoid begin(String t, String u)No description in source.
beginAtvoid beginAt(String t, String u, double createdJulian, String createdText)Begin a document and record its creation timestamp (Julian date + label). A zero/empty timestamp means "unset" and no $TDCREATE/$TDUPDATE is emitted, so existing callers of begin() are byte-compatible with the old output.
getTitleString getTitle()No description in source.
getUnitsString getUnits()No description in source.
setTitlevoid setTitle(String t)No description in source.
setUnitsvoid setUnits(String u)No description in source.
setAtvoid setAt(double x, double y)No description in source.
getCreatedAtdouble getCreatedAt()No description in source.
getUpdatedAtdouble getUpdatedAt()No description in source.
getCreatedLabelString getCreatedLabel()No description in source.
getUpdatedLabelString getUpdatedLabel()No description in source.
touchvoid touch(double whenJulian, String whenText)Record that the document changed at the given host-supplied time. The Creator calls this after each create/alter/delete so $TDUPDATE and the readable label track the last edit. Called with (0, "") it is a no-op, which keeps timestamp-unaware callers unchanged.
addLineint addLine(String layer, double x1, double y1, double x2, double y2)No description in source.
addTextint addText(String layer, double x, double y, String value, double height)No description in source.
addDimint addDim(String layer, double x1, double y1, double x2, double y2, double height)No description in source.
addWallint addWall(double x1, double y1, double x2, double y2)A wall is a line on the "walls" layer.
addNoteint addNote(double x, double y, String text)A note is text on the "notes" layer at a default height.
addDimensionint addDimension(double x1, double y1, double x2, double y2)A dimension on the "dims" layer with the standard label height.
addRoomint addRoom(double w, double h, String name)Expand a room (w x h) at the current insertion point into four walls and a centred label; returns the id of the first (south) wall so a caller can locate the room.
storeint store(SLCadEntity e)No description in source.
sizeint size()No description in source.
atSLCadEntity at(int index)No description in source.
indexOfIdint indexOfId(int id)No description in source.
byIdSLCadEntity byId(int id)No description in source.
aliveCountint aliveCount()No description in source.
pickint pick(double x, double y, double radius)Hit test: the id of the live entity whose anchor/first point is nearest to (x,y) within `radius`, or -1. Lets a GUI turn a click into a selection.
distdouble dist(double ax, double ay, double bx, double by)No description in source.
sqrtApproxdouble sqrtApprox(double v)A dependency-free square root (Newton's method) so hit testing needs no import beyond this class; converges fast for the magnitudes CAD uses.
moveboolean move(int id, double dx, double dy)Move an entity by (dx,dy). Returns true if it existed and is alive.
reshapeboolean reshape(int id, double x1, double y1, double x2, double y2)Re-point a line/dim's endpoints.
moveToboolean moveTo(int id, double x, double y)Move a point-anchored entity (TEXT) or a line's first point.
relabelboolean relabel(int id, String text)No description in source.
restyleboolean restyle(int id, String layer)No description in source.
removeboolean remove(int id)Soft-delete (tombstone) / restore -- ids stay stable across the edit.
restoreboolean restore(int id)No description in source.
minXdouble minX()No description in source.
maxXdouble maxX()No description in source.
minYdouble minY()No description in source.
maxYdouble maxY()No description in source.
boundXdouble boundX(boolean wantMin)No description in source.
boundYdouble boundY(boolean wantMin)No description in source.
folddouble fold(double acc, double v, boolean wantMin, boolean seen)No description in source.
toDxfString toDxf()Emit the whole document as AutoCAD DXF (R12 text) with the current extents. This is what the Creator's Save produces; a host writes it to a .dxf file (or the runnable `main` prints it, as the renderer does).

SLCadDxf #sleela 2.5 (lib/autocad/SLCadDxf.sleela)

SLCadDxf class

Defines the SLeeLa standard-library type SLCadDxf used within the autocad library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
numString num(double v)No description in source.
istrString istr(int v)No description in source.
julianString julian(double v)Format a Julian-date timestamp as a plain fixed-point decimal (6 places), never scientific notation. DXF group-code-40 values must be plain decimals, and a Julian date (~2.46e6) would otherwise print as "2.461e+06", which both loses precision and breaks strict DXF readers. Builds the string from integer + scaled-fraction parts so no stdlib formatting import is needed.
wholeStrString wholeStr(double w)The integer part of a non-negative double as plain decimal digits (never scientific notation, which "" + aDouble would otherwise produce for a Julian date of ~2.46e6).
pad6String pad6(double f)Zero-pad a 0..999999 fractional count to exactly six decimal digits.
digitCharString digitChar(double d)No description in source.
layerString layer(String name, int color)No description in source.
headerString header(double minX, double minY, double maxX, double maxY,Header with drawing extents plus the AutoCAD creation/update timestamps. $TDCREATE / $TDUPDATE are DXF's standard local creation and last-update times, expressed as Julian dates (group code 40). A zero timestamp means "unset" and the record is omitted, so passing (…, 0.0, 0.0) reproduces the pre-timestamp HEADER byte-for-byte. (SLeeLa has no method overloading, so this is the single header entry point; callers always pass the two stamps.)
tablesString tables()No description in source.
documentString document(double minX, double minY, double maxX, double maxY,Wrap the three accumulated entity strings in a complete DXF document, with the AutoCAD creation/update timestamps embedded in the HEADER. (No method overloading in SLeeLa, so this is the single entry point; pass 0.0/0.0 for the timestamps to emit a HEADER identical to the pre-timestamp output.)

SLCadEntity #sleela 2.5 (lib/autocad/SLCadEntity.sleela)

SLCadEntity class

Defines SLCadEntity -- a single, individually addressable 2D drawing entity in the editable AutoCAD model. Where SLCadModel accumulates geometry append-only into a DXF string (good for one-shot rendering), an SLCadEntity is a mutable record the AutoCAD Creator(TM) can select, move, re-layer, re-label, and delete after it has been created. Each entity has a stable id, a kind (line / text / dim), a layer, two points (p1,p2 -- the second is unused for a point-anchored TEXT), a text value (for TEXT and the measured label of a DIM) and a text height, plus an "alive" flag so a delete is a soft tombstone that keeps ids stable. This is the atom the editable SLCadDocument stores and the SLCadCanvas paints. Family: autocad. SLeeLa owns the geometry and every edit to it; a front end only issues create/alter/move/delete intents.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
KIND_LINEstatic final int KIND_LINE = 0Entity-kind ordinals. A front end and the renderer agree on these. a straight segment (walls/dims geometry)
KIND_TEXTstatic final int KIND_TEXT = 1a point-anchored text label (notes/title)
KIND_DIMstatic final int KIND_DIM = 2a linear dimension: segment + measured label
idint idstable identity, assigned by the document
kindint kindKIND_LINE / KIND_TEXT / KIND_DIM
layerString layer"walls" / "dims" / "notes"
valueString valuetext payload (TEXT content; "" for a bare LINE)
heightdouble heighttext height (for TEXT / DIM label)
aliveint alive1 = present, 0 = tombstoned (deleted but id reserved)

Methods — the actions this unit can perform.

MethodSignatureWhat it does
asLinevoid asLine(int entityId, String lyr, double ax, double ay, double bx, double by)Configure as a straight segment on `lyr` from (ax,ay) to (bx,by).
asTextvoid asText(int entityId, String lyr, double ax, double ay, String text, double h)Configure as a text label anchored at (ax,ay) with content `text`.
asDimvoid asDim(int entityId, String lyr, double ax, double ay, double bx, double by, double h)Configure as a linear dimension between (ax,ay) and (bx,by); the measured label is derived on demand (see measured()).
getIdint getId()No description in source.
getKindint getKind()No description in source.
getLayerString getLayer()No description in source.
isLineboolean isLine()No description in source.
isTextboolean isText()No description in source.
isDimboolean isDim()No description in source.
isAliveboolean isAlive()No description in source.
getX1double getX1()No description in source.
getY1double getY1()No description in source.
getX2double getX2()No description in source.
getY2double getY2()No description in source.
getValueString getValue()No description in source.
getHeightdouble getHeight()No description in source.
lengthdouble length()The measured length of a dimension (and the natural label for a DIM).
labelString label()The label text for this entity: its value, or the measured length for a DIM with no explicit override.
midXdouble midX()The midpoint, where a DIM measurement/label sits.
midYdouble midY()No description in source.
kindNameString kindName()The entity kind as a word, for reports and the GUI readout.
describeString describe()A one-line, human-readable summary of this entity's current state, e.g. "#7 line walls (0,0)->(6000,0)" (a wall) "#9 text notes (3000,2000) \"Lobby\"" (a label) "#4 dim dims (0,-600)->(10000,-600) =10000" (a dimension + measure) A tombstoned entity is flagged so an audit sees deletions too.
translatevoid translate(double dx, double dy)Move the whole entity by (dx,dy).
setP1void setP1(double ax, double ay)Set the first point (and, for TEXT, keep the second coincident).
setP2void setP2(double bx, double by)Set the second point (ignored for TEXT, which is point-anchored).
setEndpointsvoid setEndpoints(double ax, double ay, double bx, double by)Re-point both ends at once.
setLayervoid setLayer(String lyr)No description in source.
setValuevoid setValue(String text)No description in source.
setHeightvoid setHeight(double h)No description in source.
killvoid kill()Soft-delete: keep the id reserved so other entities keep their identity.
revivevoid revive()No description in source.
toDxfString toDxf()Emit just this entity's DXF group-code/value records (empty when dead).
lineRecordString lineRecord(String lyr, double ax, double ay, double bx, double by)No description in source.
textRecordString textRecord(String lyr, double ax, double ay, double h, String text)No description in source.
numString num(double v)No description in source.

SLCadModel #sleela 2.5 (lib/autocad/SLCadModel.sleela)

SLCadModel class

Defines the SLeeLa standard-library type SLCadModel used within the autocad library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
noteCountint noteCountNo description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
beginvoid begin(String t, String u)No description in source.
setAtvoid setAt(double x, double y)No description in source.
growvoid grow(double x, double y)No description in source.
numString num(double v)No description in source.
lineEntityString lineEntity(String lyr, double x1, double y1, double x2, double y2)No description in source.
textEntityString textEntity(String lyr, double x, double y, double height, String value)No description in source.
addWallvoid addWall(double x1, double y1, double x2, double y2)No description in source.
addRoomvoid addRoom(double w, double h)Expand a room into its four wall segments at the current insertion point.
addDimvoid addDim(double x1, double y1, double x2, double y2)No description in source.
addNotevoid addNote(double x, double y, String text)No description in source.
distancedouble distance(double x1, double y1, double x2, double y2)Straight-line distance -- used to compute dimension labels.

SLCadPlan #sleela 2.5 (lib/autocad/SLCadPlan.sleela)

SLCadPlan class

Defines the SLeeLa standard-library type SLCadPlan used within the autocad library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
kindOfint kindOf(String op)Map a directive keyword to its stable kind code so a front end and the renderer agree on the vocabulary: 0 title 1 units 2 at 3 room 4 wall 5 door 6 dim 7 note
knownboolean known(String op)No description in source.

SLCadRenderer #sleela 2.5 (lib/autocad/SLCadRenderer.sleela)

SLCadRenderer class

Defines the SLeeLa standard-library type SLCadRenderer used within the autocad library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
titleString titledrawing title
unitsString unitsdrawing units (e.g. "mm")

Methods — the actions this unit can perform.

MethodSignatureWhat it does
beginvoid begin(String t, String u)No description in source.
drawingTitleString drawingTitle()No description in source.
drawingUnitsString drawingUnits()No description in source.