Share
 
 

LISP: Visability of Object Text (SetText)

Command line automation to turn on/off the visibility of Object Text. This function allows users to automate the visibility of text from LISP. The function is called SETTEXT and can be called from the command line or from LISP as follows.

Procedure

(SetText sset Flag which thisVPOnly Leader Report_Name)

sset is the selection set of objects to process.

thisVPOnly (0 or 1), Leader (0 or 1) and Report_Name are optional, but thisVPOnly and Leader are required if you want to pass in a Report_Name to work on. If thisVPOnly is 1, the text visibility is set/reset in the active paperspace VP only If Leader is 1, this turns the visibility of the leader On if the text has a leader and if 0 Off.

Flag is a bitwise number that indicates the text to work on; for example:

1 = Item Number

2 = Size

4 = Elevation Text

8 = Alias Text

16 = Set Information

32 = Length Dimension

64 = Custom Report Text

which is a string value either "On" or "Off"

Example:

To create the selection set in LISP (setq sset (ssget))

To turn the Item numbers ON for a selection set "sset", use (settext sset 1 "On").

To turn the Numbers and the Alias ON, use (settext sset 9 "On").

To turn the Numbers, Alias and Size ON, use (settext sset 11 "On").

To turn ALL the text OFF, use (settext sset 63 "Off").

Command Line Examples:

(settext(ssget)63"off") - Turns the visibility of all the labels OFF.

(settext(ssget)3"off") - Turns the visibility of Item No. & Size OFF.

(settext(ssget)17"on") - Turns the visibility of Set Information & Item No. ON.

Was this information helpful?