Steven P Posted June 10 Posted June 10 Just before I go off on one and make something up.... Does anyone have a 'scriptwriter' that will loop through all the blocks in a drawing and apply a set of commands to them all ? (every now and then it would be handy, things like adjusting layers, fonts, overkill, elevations, etc to apply to all block elements) Ta. (and if not the follow on question is editing blocks without bedit or refedit to make the above faster) Quote
devitg Posted June 10 Posted June 10 @Steven P Please upload a sample.dwg and a xls or csv file with change FROM >> TODO task Quote
Steven P Posted June 10 Author Posted June 10 Thanks Devitg, I don't have one particular problem drawing - some of this is an academic exercise to see if I can make something good - but what prompted this this week is a 2D layout drawing with about 40 blocks where lines etc are at different elevations, each block could do with overkill, and so on to tidy it up. A custom one-off LISP: Get block list, set all entities Z=0, overkill everything, repeat to next block. Next week it might be something else. So along the lines of Lee Macs Scriptwriter or scriptwriter pro, I was wondering if anyone had a LISP to apply a list of commands to all the block definitions in the drawing Quote
devitg Posted June 10 Posted June 10 @Steven P ok . Upload 2D layout drawing with about 40 blocks 1 Quote
BIGAL Posted June 10 Posted June 10 (edited) I would use a dcl with toggles so you would check on what you want to run, say Overkill, flatten, purge and so on. Yes you would have a defun for each task. In one task I used to do we had steps like changing layers, load linetypes, change certain blocks to others I am sure you will figure out how to use this .Multi toggles.lsp Edited June 10 by BIGAL 1 Quote
Steven P Posted June 11 Author Posted June 11 18 hours ago, devitg said: @Steven P ok . Upload 2D layout drawing with about 40 blocks Didn't get chance to get the drawing - had to just do it yesterday with a custom LISP Quote
Steven P Posted June 11 Author Posted June 11 8 hours ago, BIGAL said: I would use a dcl with toggles so you would check on what you want to run, say Overkill, flatten, purge and so on. Yes you would have a defun for each task. In one task I used to do we had steps like changing layers, load linetypes, change certain blocks to others I am sure you will figure out how to use this .Multi toggles.lsp Multitoggles might work if I think about it - not that many things I'd need to do to all blocks Quote
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.