Author Topic: CHALLENGE: Individual attribute edit like DDEDIT  (Read 17249 times)

0 Members and 1 Guest are viewing this topic.

nivuahc

  • Guest
Re: CHALLENGE: Individual attribute edit like DDEDIT
« Reply #15 on: May 10, 2006, 08:36:43 AM »
doh!

nivuahc

  • Guest
Re: CHALLENGE: Individual attribute edit like DDEDIT
« Reply #16 on: May 10, 2006, 08:44:34 AM »
Whoa! I just tried out the latest and clicked the ESC button on my mouse...

Quote
; entering keyboard break loop

AutoCAD has become completely unresponsive....


EDIT:

VLisp highlights the following for me:

Code: [Select]
(vl-catch-all-apply
               '(lambda ( )
                    (setq
                        data nil
                        data (grread t 13 2)
                    )
                )
            )

nivuahc

  • Guest
Re: CHALLENGE: Individual attribute edit like DDEDIT
« Reply #17 on: May 10, 2006, 08:46:55 AM »
Well closing VLisp resets the break loop... what'd I do wrong?

Keith™

  • Villiage Idiot
  • Seagull
  • Posts: 16899
  • Superior Stupidity at its best
Re: CHALLENGE: Individual attribute edit like DDEDIT
« Reply #18 on: May 10, 2006, 09:17:19 AM »
You have the vlisp options to break on all errors.
Proud provider of opinion and arrogance since November 22, 2003 at 09:35:31 am
CadJockey Militia Field Marshal

Find me on https://parler.com @kblackie

ronjonp

  • Needs a day job
  • Posts: 7529
Re: CHALLENGE: Individual attribute edit like DDEDIT
« Reply #19 on: May 10, 2006, 09:20:10 AM »
Cool routine MP :). Hey chuck...you're not crazy. I'm seeing choppiness when the routine is runnning and it's not that my machine is slow.

Ron

Windows 11 x64 - AutoCAD /C3D 2023

Custom Build PC

MP

  • Seagull
  • Posts: 17750
  • Have thousands of dwgs to process? Contact me.
Re: CHALLENGE: Individual attribute edit like DDEDIT
« Reply #20 on: May 10, 2006, 10:03:17 AM »
Hmmm, I can't explain the choppiness -- I've run it on 2 different PCs, 2 different versions of AutoCAD, with and without a glut of attribute laden blocks -- runs fine. <scratchin' nuggin>.

PS: Did another edit -- dumped the edit box label -- it was just chewing up real estate.



<old image may be in your cache so you may need to do a refresh>
Engineering Technologist • CAD Automation Practitioner
Automation ▸ Design ▸ Drafting ▸ Document Control ▸ Client
cadanalyst@gmail.comhttp://cadanalyst.slack.comhttp://linkedin.com/in/cadanalyst

Sdoman

  • Guest
Re: CHALLENGE: Individual attribute edit like DDEDIT
« Reply #21 on: May 10, 2006, 03:08:47 PM »
I like that EditAttrib routine! Thanks MP!

I tested your routine on a drawing that contains lots of blocks with lots of attributes.  Performed better then the native Attedit command.  Quick and light.

I also tried a couple other routines posted, all of them are very worthy routines.  What a great place this Swamp is.






ronjonp

  • Needs a day job
  • Posts: 7529
Re: CHALLENGE: Individual attribute edit like DDEDIT
« Reply #22 on: May 10, 2006, 06:01:07 PM »
Hey MP,

How hard would it be to make the routine have a shift selection to select multiple attributes and change them all at once?

Ron

Windows 11 x64 - AutoCAD /C3D 2023

Custom Build PC

MP

  • Seagull
  • Posts: 17750
  • Have thousands of dwgs to process? Contact me.
Re: CHALLENGE: Individual attribute edit like DDEDIT
« Reply #23 on: May 10, 2006, 06:38:06 PM »
Hey MP,

How hard would it be to make the routine have a shift selection to select multiple attributes and change them all at once?

Ron

Wouldn't be hard, but would be a different code variant -- grread does not provide the ability to recognize the state of the shift key. A variant that achieves what you're implying might be as follows --

Go into a polling loop -- as long as the user selects (hilites) attributes (clicking them again would would de-select / de-hilite them) the program would collect them. If the user presssed [enter] and any attributes were collected they'd then be displayed for editing, say 8 to a screen, otherwise the program would terminate.
Engineering Technologist • CAD Automation Practitioner
Automation ▸ Design ▸ Drafting ▸ Document Control ▸ Client
cadanalyst@gmail.comhttp://cadanalyst.slack.comhttp://linkedin.com/in/cadanalyst

FengK

  • Guest
Re: CHALLENGE: Individual attribute edit like DDEDIT
« Reply #24 on: May 10, 2006, 06:52:02 PM »
Edit 1: Added hililiting when cursor is over a valid attribute entity.
Edit 2: Commented code a bit for others.
Edit 3: Added a little screen grab for fun.
Edit 4: Dumped the edit box label.


Nice job Michael.  Can I ask what software you used for the screen recording?

MP

  • Seagull
  • Posts: 17750
  • Have thousands of dwgs to process? Contact me.
Re: CHALLENGE: Individual attribute edit like DDEDIT
« Reply #25 on: May 10, 2006, 08:52:14 PM »
Nice job Michael.  Can I ask what software you used for the screen recording?

Thanks Kelie, I used Camtasia Studio, about $300 and worth every penny in my estimation.

:)
Engineering Technologist • CAD Automation Practitioner
Automation ▸ Design ▸ Drafting ▸ Document Control ▸ Client
cadanalyst@gmail.comhttp://cadanalyst.slack.comhttp://linkedin.com/in/cadanalyst

FengK

  • Guest
Re: CHALLENGE: Individual attribute edit like DDEDIT
« Reply #26 on: May 12, 2006, 02:56:09 AM »
i was thinking something like this should work too.

prompt user to pick entity (nentsel, nentselp);
extract old string;
create a temporary text object with that string;
issue DDEDIT command and ask user to modify the temporary text;
put the new string from the text object to the originally picked entity;
delete the temporary text object.

just an idea. not implemented.


CAB

  • Global Moderator
  • Seagull
  • Posts: 10401
Re: CHALLENGE: Individual attribute edit like DDEDIT
« Reply #27 on: May 12, 2006, 11:49:00 AM »
i was thinking something like this should work too.

prompt user to pick entity (nentsel, nentselp);
extract old string;
create a temporary text object with that string;
issue DDEDIT command and ask user to modify the temporary text;
put the new string from the text object to the originally picked entity;
delete the temporary text object.

just an idea. not implemented.

Guess you didn't look at my code. :-)
http://www.theswamp.org/index.php?topic=10028.msg128482#msg128482
I've reached the age where the happy hour is a nap. (°¿°)
Windows 10 core i7 4790k 4Ghz 32GB GTX 970
Please support this web site.

Keith™

  • Villiage Idiot
  • Seagull
  • Posts: 16899
  • Superior Stupidity at its best
Re: CHALLENGE: Individual attribute edit like DDEDIT
« Reply #28 on: May 12, 2006, 11:53:53 AM »
i was thinking something like this should work too.

prompt user to pick entity (nentsel, nentselp);
extract old string;
create a temporary text object with that string;
issue DDEDIT command and ask user to modify the temporary text;
put the new string from the text object to the originally picked entity;
delete the temporary text object.

just an idea. not implemented.

Guess you didn't look at my code. :-)
http://www.theswamp.org/index.php?topic=10028.msg128482#msg128482

Or mine just a couple posts:
http://www.theswamp.org/index.php?topic=10028.msg128438#msg128438

Only I used the default edit box instead of the ddedit one and I didn't duplicate the item as text .. I figured why bother .. if you can read the test, then just edit it.
Proud provider of opinion and arrogance since November 22, 2003 at 09:35:31 am
CadJockey Militia Field Marshal

Find me on https://parler.com @kblackie

FengK

  • Guest
Re: CHALLENGE: Individual attribute edit like DDEDIT
« Reply #29 on: May 13, 2006, 04:11:15 AM »
Sorry, CAB and Keith.  As you guys guessed, I didn't read the code from you.