Jump to content

Reset the items in selection set Last to first order


Recommended Posts

Posted (edited)

I have a selection set

added by  Crossing.

Now I need re arrange this list as  mirror order of selection.

Edited by Dayananda
Posted

You process the selection set last to first

 

last to first
(repeat (setq x (sslength lst))
(setq ent (ssname lst (setq x (- x 1))))
do your thing ....
)

first to last
(setq x 0)
(repeat (sslength lst)
(setq ent (ssname lst x))
do your thing .....
(setq x (+ x 1))
)

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...