PSC Code Manual

util/object/text.lsp [src]

Functions pertaining to text, mtext, leader, and mleader objects

Functions

Function signature Description
(add-mleader container ins points text) Wrapper for vla-AddMLeader
(add-mtext container ins text width attachmentpoint) Wrapper for vla-AddMText
(add-text container ins text height width alignment) Wrapper for vla-AddMText
(vla-replace-string block from to) Replaces FROM with TO in all text, mtext, and mleaders in BLOCK

(add-mleader container ins points text)

Wrapper for vla-AddMLeader

POINTS is a list of leader points which are relative to INS

VARS:
(CONTAINER VLA-OBJECT)
(INS LIST (POINT-P INS))
(POINTS LIST (VL-EVERY 'POINT-P POINTS))
(TEXT STR)

(add-mtext container ins text width attachmentpoint)

Wrapper for vla-AddMText

ATTACHMENTPOINT should be a symbol like 'middlecenter or 'topleft.

VARS:
(CONTAINER VLA-OBJECT)
(INS LIST (POINT-P INS))
(TEXT STR)
(WIDTH nil (NUMBERP WIDTH))
(ATTACHMENTPOINT SYM)

(add-text container ins text height width alignment)

Wrapper for vla-AddMText

ALIGNMENT should be a symbol like 'middlecenter or 'topleft.

VARS:
(CONTAINER VLA-OBJECT)
(INS LIST (POINT-P INS))
(TEXT STR)
(HEIGHT nil (NUMBERP HEIGHT))
(WIDTH nil (NUMBERP WIDTH))
(ALIGNMENT SYM)

(vla-replace-string block from to)

Replaces FROM with TO in all text, mtext, and mleaders in BLOCK

VARS:
(BLOCK VLA-OBJECT)
(FROM STR)
(TO STR)