Jump to content

create block with N last entity


metaldan

Recommended Posts

Hi

 

I'm starting making lisp program.

 

 

I have to make a LISP to draw N line and put it in a block at the same place off my original line.

 

I know how to make line in a LOOP, but not how to select the N last entity and make a COPYBASE, ERASE "Previous", PASTE AS A BLOCK " previous"

 

Someone can help with that.

 

 

Excuse my english, i'm a french boy.

Link to comment
Share on other sites

for every loop you can "capture" the last entity by using (entlast) function

 

(seqt asdf (ssadd))
(while doing your thing. 
            for every line entity created (ssadd (entlast) asdf))
);end of while

Link to comment
Share on other sites

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...