metaldan Posted February 21, 2014 Share Posted February 21, 2014 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. Quote Link to comment Share on other sites More sharing options...
pBe Posted February 21, 2014 Share Posted February 21, 2014 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 Quote Link to comment Share on other sites More sharing options...
metaldan Posted February 22, 2014 Author Share Posted February 22, 2014 thanks pBe all works fine with your help Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.