Author Topic: Edit multiple attributes in a single block all with the same tag name.  (Read 9482 times)

0 Members and 1 Guest are viewing this topic.

Reu

  • Guest
Re: Edit multiple attributes in a single block all with the same tag name.
« Reply #15 on: March 19, 2013, 01:43:10 PM »
Just change the "_X" to either "_:L" or "_+.:E:S:L" in my original code.
Why remove the while loop?

The problems are:

1) It allows more than one object to be selected (not sure how since I applied the "_:S" filter as suggested to the ssget function.

2) It also allows the user to select a block that has attributes that are not the same and change them all to the user defined string from the "getstring" function.
« Last Edit: March 19, 2013, 01:47:06 PM by Reu »

Lee Mac

  • Seagull
  • Posts: 12929
  • London, England
Re: Edit multiple attributes in a single block all with the same tag name.
« Reply #16 on: March 19, 2013, 02:03:27 PM »
Are you using my original code as posted in Reply#7 or your modified version with half the code removed?

ronjonp

  • Needs a day job
  • Posts: 7533

Windows 11 x64 - AutoCAD /C3D 2023

Custom Build PC

Reu

  • Guest
Re: Edit multiple attributes in a single block all with the same tag name.
« Reply #18 on: March 19, 2013, 03:08:55 PM »
Are you using my original code as posted in Reply#7 or your modified version with half the code removed?

I am sorry Lee, your program works wonderfully, the error was on my end.

Sincerely,
     Reuben Shilling

Reu

  • Guest
Re: Edit multiple attributes in a single block all with the same tag name.
« Reply #19 on: March 19, 2013, 03:10:46 PM »
Did this not work?
http://www.theswamp.org/index.php?topic=44203.msg494667#msg494667

Yes Ron, sorry for not responding, however Lee's program is slightly more user friendly in that it alerts the user that the selected block cannot be modified before the user enters the text.

Sincerely,
     Reuben Shilling

Lee Mac

  • Seagull
  • Posts: 12929
  • London, England
Re: Edit multiple attributes in a single block all with the same tag name.
« Reply #20 on: March 19, 2013, 03:22:17 PM »
Are you using my original code as posted in Reply#7 or your modified version with half the code removed?

I am sorry Lee, your program works wonderfully, the error was on my end.

Sincerely,
     Reuben Shilling

No problem Reuben, I'm glad the program performs as required :-)