hi ,
i need a lisp which is going to make a block all of entities between start / end commands , it is almost similar with undo / begin and undo / end ... can any body share with me similar lisp code ?
thank you
Solved! Go to Solution.
Solved by Kent1Cooper. Go to Solution.
Assuming you mean to issue some kind of Start-Block command, and want all newly-drawn entities after it to be included in a Block that will be defined after you issue some kind of End-Block command, the attached BlockStartEnd.lsp, with its SB and EB commands, seems to work. It leaves you in the Block dialog box, to designate the Block name, insertion point, and whatever other options.
thank you Kent , that one is what exactly i want to do , just it`s sometimes working well but sometimes giving an error (; error: bad argument type: lentityp nil) ,
but anyway this lisp is my solution ... thank you again
@E.S.7.9 wrote:
thank you Kent , that one is what exactly i want to do , just it`s sometimes working well but sometimes giving an error (; error: bad argument type: lentityp nil) ,
but anyway this lisp is my solution ... thank you again
I expect that error would be if you started with SB first thing in a drawing, because its setting of the sbbase variable with (entlast) would return nil. The attached upgraded version accounts for that possibility, and also prevents the User from using EB without having first used SB.