Return the first entity of the Previous selection set?

Status
Not open for further replies.

Allan Seidel

Usenet Archive
Joined
Feb 11, 2000
Messages
298
Reaction score
0
Hi,

How does one return the first entity of the previous
selection set, the first entity in a selection set, or even the nth entity in a selection set? I'm trying to check for the existence of an extending character like ^ " or | that may be in a text line so to correct for the slight insertion bump that occurs when these characters are in mtext.

Thanks,
Allan Seidel
 
Allan Seidel wrote:
Hi,

How does one return the first entity of the previous
selection set, the first entity in a selection set, or even the nth entity in a selection set? I'm trying to check for the existence of an extending character like ^ " or | that may be in a text line so to correct for the slight insertion bump that occurs when these characters are in mtext.

Thanks,
Allan Seidel

Allan,

Following is from AutoCAD help, example use of ssname:
(ssname setname nth)

(setq ent1 (ssname sset 0)) - Gets name of first entity in sset You may need sslength to get number of items to query, or test for nil for each n of selection set.

You probably know this, but you'll need to query the proper group code of the entity data to get the text string, then test it for particular characters.

Hope this helps,

Carl
 
Status
Not open for further replies.

Latest threads

Back
Top