Share
 
 

LISP: Alignment of Object Text (AlignMapText)

LISP function that aligns the text of a selection of items to the required alignment (Length, Connector or View).

Procedure

(AlignMapText sset Flag which requires parameters)

sset is the selection set of objects to process.

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

which is a string value either " L" or " C" or " V" (Length, Connector or View).

Note: These numbers can be added together, so using 3 for Flag would align both the Item Number and Size.

Command Line Examples:

To prompt the selection of objects, aligning the Item Numbers to Length, use (AlignMapText (ssget) 1 "L").

To prompt the selection of objects, aligning the Item Size to Length, use (AlignMapText (ssget) 2 "L").

To prompt the selection of objects, aligning the Item Elevation to View, use (AlignMapText (ssget) 4 "V").

To prompt the selection of objects, aligning the Item Set information to Length, use (AlignMapText (ssget) 16 "C").

Was this information helpful?