Small Fish 发表于 2022-7-6 12:57:02

Alan
yes it works, although I will need to polish it up and make it more automated - get rid off annoying alert messages and selection of block for every tab.
 
However the immediate problem now is when I try it, I get in the command line for every tab:
 

Reading the input file... Done._.UNDO Current settings: Auto = Off, Control = All, Combine = YesEnter the number of operations to undo or : _BEGINCommand: _.UNDO Current settings: Auto = Off, Control = All, Combine = YesEnter the number of operations to undo or : _ENDCommand: Regenerating layout.
 
I tried turning UNDO off but that does work. Not sure what that's about?

alanjt 发表于 2022-7-6 13:00:22

 
Well, keep me posted.
 
Try (setvar 'cmdecho 0)

Small Fish 发表于 2022-7-6 13:04:05

I think its probably the (acet-undo-end) and (acet-undo-begin) express tools functions within bns_attin interfering, with my code. I think I may have to do a 'save as' on ATTIN and edit to suit what I am trying to do. Tomorrow I will look at it again, although the attin code is hard to understand.......

Small Fish 发表于 2022-7-6 13:09:17

Okay here is what I have now. It works though not tested thoroughly.
If used on title blocks it's important to delete columns that don't need to be changed otherwise all attributes(eg dwg number) on different tabs will end up with the same value.
Additionally the handle value also needs to be deleted from the text file otherwise it does not work. Press 'Escape' to cancel and 'Enter' to skip tab.
Please try to improve it, if you have any ideas -thanks
 
cheers
S.F.
 

UberGatte.lsp

alanjt 发表于 2022-7-6 13:11:18

 
I'll look at it when I get home (after dinner and my little girl goes to sleep).
 
 
Post me an example DWG and txt file, so I can actually see what it does.

Small Fish 发表于 2022-7-6 13:14:26

Okay try this. Attachedis a sample dwg and text file.
Its probably better to edit it as a csv file rather than just a text file so that it keeps some of its format.
Sample.dwg
Sample.txt
页: 1 [2]
查看完整版本: 'Uber' Gatte