Author Topic: TabSort.lsp  (Read 87510 times)

0 Members and 1 Guest are viewing this topic.

Willie

  • Swamp Rat
  • Posts: 958
  • Going nowhere slowly
Re: TabSort.lsp
« Reply #45 on: September 16, 2009, 06:36:55 PM »
Very impressive Lee.
Soli Deo Gloria | Qui Audet Adipiscitur
Windows 8  64-bit Enterprise | Civil 3D 2015 and 2016| ArcGIS 10.1
Yogi Berra : "I'd give my right arm to be ambidextrous."

Lee Mac

  • Seagull
  • Posts: 12905
  • London, England
Re: TabSort.lsp
« Reply #46 on: September 16, 2009, 06:41:52 PM »
Very impressive Lee.

Thanks Willie  :-)

I think I'm just about done with this one - not sure what else to add without making it look cluttered...  :|

Lee

haustab

  • Guest
Re: TabSort.lsp
« Reply #47 on: September 17, 2009, 01:30:18 AM »
Thanks Lee,
Great job(s)
(like the other stuff you published)

jmcshane

  • Newt
  • Posts: 83
Re: TabSort.lsp
« Reply #48 on: September 17, 2009, 04:02:29 AM »
Quote
Your comments/criticism is always welcome, and, of course, the inevitable bug reports!

Lee,

This just gets better and better.

One thing though, The copy function, while it does copy the tab, does not copy the page setup information
as it does when copying the tab manually.

I hate to be picky considering the amount of work you have put into this, and there is now way you can keep everybody happy,
but I thought you would want to know.
John.

Civil 3D 2021. Windows 10

Lee Mac

  • Seagull
  • Posts: 12905
  • London, England
Re: TabSort.lsp
« Reply #49 on: September 17, 2009, 05:41:30 AM »
Quote
Your comments/criticism is always welcome, and, of course, the inevitable bug reports!

Lee,

This just gets better and better.

One thing though, The copy function, while it does copy the tab, does not copy the page setup information
as it does when copying the tab manually.

I hate to be picky considering the amount of work you have put into this, and there is now way you can keep everybody happy,
but I thought you would want to know.


No worries John, I am happy for the criticism - that way things can be improved on  :-)

I shall definitely look into it, thanks for the comment.

Lee


Lee Mac

  • Seagull
  • Posts: 12905
  • London, England
Re: TabSort.lsp
« Reply #50 on: September 17, 2009, 06:26:25 AM »
I have updated the first post to version 1.5, this should resolve the issue with copying Plot settings.

Lee Mac

  • Seagull
  • Posts: 12905
  • London, England
Re: TabSort.lsp
« Reply #51 on: September 17, 2009, 06:45:15 AM »
Not sure whether this is necessary or not, but, with each version of the program, a DCL file is written to the AutoCAD filepath - if you want to clean the excess TabSort DCL files from the filepath, they are stored in the same location as the ACAD.pat file.

You can do a search for that file and delete the old DCL versions manually, else, I have written this short function that will clean it for you:

Code: [Select]
(defun c:TabSortClean (/ wPath)
  (vl-load-com)
  (if (setq wPath (findfile "ACAD.PAT"))
    (progn
      (setq wPath (vl-filename-directory wPath))
      (or (eq "\\" (substr wPath (strlen wPath)))
          (setq wPath (strcat wPath "\\")))
      (foreach file (vl-directory-files wPath "TabSortV1.*.dcl" 1)
        (initget "Yes No")
        (if (/= "No" (getkword (strcat "\nDelete file: " file " ? [Yes/No] <Yes> : ")))
          (vl-file-delete (strcat wPath file))))))
  (princ))

Authorisation is required before each deletion, so it won't just wipe them all at once  :wink:

Willie

  • Swamp Rat
  • Posts: 958
  • Going nowhere slowly
Re: TabSort.lsp
« Reply #52 on: September 17, 2009, 07:30:26 AM »
Hi Lee,

Can't you delete the temp dcl file when you close the dialog?
Soli Deo Gloria | Qui Audet Adipiscitur
Windows 8  64-bit Enterprise | Civil 3D 2015 and 2016| ArcGIS 10.1
Yogi Berra : "I'd give my right arm to be ambidextrous."

jmcshane

  • Newt
  • Posts: 83
Re: TabSort.lsp
« Reply #53 on: September 17, 2009, 07:38:07 AM »
I have updated the first post to version 1.5, this should resolve the issue with copying Plot settings.

Sorted.
Thanks Lee.
John.

Civil 3D 2021. Windows 10

CAB

  • Global Moderator
  • Seagull
  • Posts: 10401
Re: TabSort.lsp
« Reply #54 on: September 17, 2009, 08:23:25 AM »
Lee,
FYI, In architectural DWGs the tab names need to be sorted like this:
A1
A2
A3
A10
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.

Lee Mac

  • Seagull
  • Posts: 12905
  • London, England
Re: TabSort.lsp
« Reply #55 on: September 17, 2009, 09:02:47 AM »
Hi Lee,

Can't you delete the temp dcl file when you close the dialog?

I could do - but I felt it was better to write the file, and check if the file existed on the second time of invoking the function - instead of writing it every time the user invoked the command.

Lee Mac

  • Seagull
  • Posts: 12905
  • London, England
Re: TabSort.lsp
« Reply #56 on: September 17, 2009, 09:04:07 AM »
Lee,
FYI, In architectural DWGs the tab names need to be sorted like this:
A1
A2
A3
A10

My #Sort should sort them like that  :-)

CAB

  • Global Moderator
  • Seagull
  • Posts: 10401
Re: TabSort.lsp
« Reply #57 on: September 17, 2009, 09:31:11 AM »
I don't think so. :evil:
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.

Lee Mac

  • Seagull
  • Posts: 12905
  • London, England
Re: TabSort.lsp
« Reply #58 on: September 17, 2009, 10:25:33 AM »
 :?  :?




Gliderider

  • Guest
Re: TabSort.lsp
« Reply #59 on: September 17, 2009, 11:31:44 AM »
Thanks Lee, I found it quite useful today!