Jump to content

Recommended Posts

Posted

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)

Posted

@Steven P  Please upload a sample.dwg  and a xls or csv file with change FROM >> TODO task

Posted

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

Posted (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

 

 

multi toggles 3.png

Edited by BIGAL
  • Like 1
Posted
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

Posted
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

 

 

multi toggles 3.png

 

Multitoggles might work if I think about it - not that many things I'd need to do to all blocks

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