TheSwamp

Code Red => AutoLISP (Vanilla / Visual) => Topic started by: trogg on December 20, 2011, 02:29:29 PM

Title: Improved BATTMAN
Post by: trogg on December 20, 2011, 02:29:29 PM
I know that I'm treading on holy ground by even mentioning that BATTMAN can be improved upon - but does anyone know of an enhanced version of BATTMAN? I have to deal with blocks that literally have over 100 attributes in them and need to reorder them. The current functionality of BATTMAN is starting to make me hate the clicking sound of my mouse.

The "improved functionality" that I had in mind was the ability to press & hold the buttons that move the ATT up or down and/or buttons that move an ATT to the top or bottom in one click.

So does anyone have a better way of repositioning attributes?

thanks
~Greg

I know the irony - I am showing a block that only has 2 attributes...

Title: Re: Improved BATTMAN
Post by: alanjt on December 20, 2011, 02:33:42 PM
I wonder if you wouldn't better off exploding the block and recreating. The attribute order is based on their order selected.
Title: Re: Improved BATTMAN
Post by: trogg on December 20, 2011, 02:41:16 PM
I'm trying to avoid exploding or bursting because there are so many attributes. Some of which (in their pre-blocked state) overlap so much that selecting them is a little tricky.

But I can see that exploding or bursting might be a good option
Title: Re: Improved BATTMAN
Post by: alanjt on December 20, 2011, 02:43:23 PM
Ahh, I can understand that. Why are you having to reorder them?
Title: Re: Improved BATTMAN
Post by: trogg on December 20, 2011, 02:50:29 PM
They are sent to me that way. They are mainly title blocks that have the various revision info all jumbled. I cant stand it so I am updating them so that the drafters/designers don't have to weed through the jumbled mess when updating their revisions.
I think that some of them are old or were quickly thrown together. Either way - they shouldn't be in that state...
Title: Re: Improved BATTMAN
Post by: trogg on December 20, 2011, 02:53:21 PM
Here is one that I worked on last night:
Title: Re: Improved BATTMAN
Post by: alanjt on December 20, 2011, 03:08:32 PM
Yikes.
Title: Re: Improved BATTMAN
Post by: Matt__W on December 20, 2011, 03:10:05 PM
Here is one that I worked on last night:
Jumpin' Jesus on a pogostick, BATTMAN!!
Title: Re: Improved BATTMAN
Post by: ronjonp on December 20, 2011, 03:22:37 PM
I don't have anything written, but it seems that an alphabetical sort would help too :)
Title: Re: Improved BATTMAN
Post by: trogg on December 20, 2011, 03:28:59 PM
I don't have anything written, but it seems that an alphabetical sort would help too :)
That would be a nice addition as well especially in my case where the revisions have a numerical suffix "REVISIONNUMBER1" that could easily be changed to a numerical prefix >> "1REVISIONNUMBER" Or it could be a letter as well >> "AREVISIONNUMBER"
Title: Re: Improved BATTMAN
Post by: dgorsman on December 20, 2011, 04:09:32 PM
I've seen those before.  Thats the reason I prefer a separate block for each revision entry, since trying to shuffle each revision down a line requires a lot of work on the part of the user.  When something like this comes up, time for some automation to handle the re-shuffling.

Regarding the initial question, I don't think any dialogs in AutoCAD use the "click and hold" method.  Maybe some sort of sort order template that can be saved out and re-applied later on...
Title: Re: Improved BATTMAN
Post by: cmwade77 on December 20, 2011, 04:25:30 PM
I have seen title blocks with similar amounts of Attributes, here is what we do for Title Blocks that are sent to us:

By using the fields, it allows us to make sure our Sheet Indexes and Title Blocks match. And this process eliminates the issues with attributes in the Title Block.

As for the original question, I wish there were options to do so, Title blocks are not the only place where that would be useful for us.
Title: Re: Improved BATTMAN
Post by: irneb on December 21, 2011, 09:55:41 AM
There's one more reason why explode & recreate is not an option: Dynamic Parameters would disappear.

The biggest hassle I can see is that to introduce new functionality into the BAttMan dialog would require a lot of re-writing existing functionality. I don't think those functions are exposed in ADesk's libraries, let alone ActiveX. I'm guessing it would be easier just to re-create the BAttMan thingy through DotNet, especially since I don't think it's possible to have a click-n-hold action in DCL.

If such is the way to go, there would be even more I'd like to add to that dialog:
Just a few thoughts.  ;)
Title: Re: Improved BATTMAN
Post by: jbuzbee on December 21, 2011, 10:12:09 AM
Well, instead of changing the block you could create an editor that could search, order the attributes in a textbox control to any specification you want.  Would be quite easy with OpenDCL.
Title: Re: Improved BATTMAN
Post by: alanjt on December 21, 2011, 10:33:30 AM
Would be quite easy with OpenDCL.
Would be really easy if DosLib is installed: dos_orderlist

(https://lh4.googleusercontent.com/-mEj7CucFhKQ/TvH8iZhtJXI/AAAAAAAAARg/RAaGMpvCVlI/s355/ScreenShot008.jpg)
Title: Re: Improved BATTMAN
Post by: CottageCGirl on December 21, 2011, 10:53:42 AM
I feel better now.. about reordring my 12 attribute blocks... . thanks
Title: Re: Improved BATTMAN
Post by: alanjt on December 21, 2011, 10:56:15 AM
I feel better now.. about reordring my 12 attribute blocks... . thanks
:lmao:
*water all over screen*