Author Topic: TabSort.lsp  (Read 87538 times)

0 Members and 1 Guest are viewing this topic.

T.Willey

  • Needs a day job
  • Posts: 5251
Re: TabSort.lsp
« Reply #15 on: September 14, 2009, 11:16:27 AM »
Hmm, that brings up an interesting question: I wonder if it's possible to replicate the 'copy layout' option (probably not in Lisp). I think I'll do a little research and digging.

I think you would have to manually copy all the objects from the layout space into the new layout... I don't think there would be an elegant solution to it.  :|

Just use the ' CopyObjects ' method of the document.  You might have to turn on viewports in the new layout, but you should be able to copy all content from one tab to another, even if it is one you just created.  Just make sure you don't grab the very first viewport, as that is the paperspace viewport.
Tim

I don't want to ' end-up ', I want to ' become '. - Me

Please think about donating if this post helped you.

jmcshane

  • Newt
  • Posts: 83
Re: TabSort.lsp
« Reply #16 on: September 14, 2009, 11:25:56 AM »
Lee,
That is a real timesaver. Nice one.

I have just tried it on Civil 3D 2009 but it didn't switch to the new tab whenever I hit the ADD button.

One question though?
Would it be possible to include a numerical sort as well as the Alpha, as in that it will show 99, 100, 101 in order?

Thanks for sharing.

John




John.

Civil 3D 2021. Windows 10

Lee Mac

  • Seagull
  • Posts: 12906
  • London, England
Re: TabSort.lsp
« Reply #17 on: September 14, 2009, 11:55:42 AM »
Just use the ' CopyObjects ' method of the document.  You might have to turn on viewports in the new layout, but you should be able to copy all content from one tab to another, even if it is one you just created.  Just make sure you don't grab the very first viewport, as that is the paperspace viewport.

Thanks Tim - I'll certainly look into that method  8-)

Lee,
That is a real timesaver. Nice one.

I have just tried it on Civil 3D 2009 but it didn't switch to the new tab whenever I hit the ADD button.

One question though?
Would it be possible to include a numerical sort as well as the Alpha, as in that it will show 99, 100, 101 in order?

Thanks for sharing.

John

Hi John,

When you hit the "Add" button the program should highlight (select) the new tab in the list_box on the dialog - does this not happen?

I should think I could incorporate a Numerical Sort into the program in due course  :-)

Thanks for the comments, glad you like it  :-)

Lee

jmcshane

  • Newt
  • Posts: 83
Re: TabSort.lsp
« Reply #18 on: September 14, 2009, 12:00:57 PM »
Oops! :oops:
Yes it does, I was looking at the actual Tabs.

Sorry about that.
John.

Civil 3D 2021. Windows 10

Lee Mac

  • Seagull
  • Posts: 12906
  • London, England
Re: TabSort.lsp
« Reply #19 on: September 14, 2009, 12:01:39 PM »
Oops! :oops:
Yes it does, I was looking at the actual Tabs.

Sorry about that.

Not a problem John  :-)

CHulse

  • Swamp Rat
  • Posts: 504
Re: TabSort.lsp
« Reply #20 on: September 14, 2009, 12:37:53 PM »
That's great Lee, Thanks!

My only request would be to have the ability to select several (but not all) tabs to sort or apply a prefix/suffix.
Cary Hulse
Urban Forestry Manager
Wetland Studies and Solutions

Civil 3D 2020 & 2023

Lee Mac

  • Seagull
  • Posts: 12906
  • London, England
Re: TabSort.lsp
« Reply #21 on: September 14, 2009, 12:41:00 PM »
That's great Lee, Thanks!

My only request would be to have the ability to select several (but not all) tabs to sort or apply a prefix/suffix.

Thanks Cary  :-)

I'm working on the Multiple Tab Selection  :wink:

CHulse

  • Swamp Rat
  • Posts: 504
Re: TabSort.lsp
« Reply #22 on: September 14, 2009, 12:42:47 PM »
Sweet
Very useful
Cary Hulse
Urban Forestry Manager
Wetland Studies and Solutions

Civil 3D 2020 & 2023

alanjt

  • Needs a day job
  • Posts: 5352
  • Standby for witty remark...
Re: TabSort.lsp
« Reply #23 on: September 14, 2009, 12:44:44 PM »
Just updated a minor bug in the code to switch to the new tab when the user clicks "Add".
;-)
Civil 3D 2019 ~ Windohz 7 64bit
Dropbox

Lee Mac

  • Seagull
  • Posts: 12906
  • London, England
Re: TabSort.lsp
« Reply #24 on: September 14, 2009, 08:05:22 PM »
I have updated the first post to include Version 1.2  ~ which now includes a Numerical Sort, hence:

Code: [Select]
("A32" "C23" "A22" "E7")

Becomes:

Code: [Select]
("E7" "A22" "C23" "A32")

Multiple Tab Selection coming soon  :-)

Enjoy!

Lee


Aerdvark

  • Guest
Re: TabSort.lsp
« Reply #25 on: September 15, 2009, 01:22:32 AM »
Lee,

Thanks for reply.

What do you think of the "nlay" function I mentioned?
Wouldn't that be a nice add on?

V 1.2 looks nice to me. A handy tool I say. :kewl:

Lee Mac

  • Seagull
  • Posts: 12906
  • London, England
Re: TabSort.lsp
« Reply #26 on: September 15, 2009, 07:26:40 AM »
What do you think of the "nlay" function I mentioned?
Wouldn't that be a nice add on?

Thanks for the suggestion Marco, but I think I'd rather stay away from templates - that would make the program quite user specific, and I'd rather keep this pretty generic.  :-)

V 1.2 looks nice to me. A handy tool I say. :kewl:

Thanks Marco  :-)

jmcshane

  • Newt
  • Posts: 83
Re: TabSort.lsp
« Reply #27 on: September 15, 2009, 09:28:20 AM »
You beauty!

Excellent tool Lee.

Maybe if you get bored sometime, you could add in the facility to export to single drawings.

Thanks a million for sharing it. You are a legend.

John.

Civil 3D 2021. Windows 10

Lee Mac

  • Seagull
  • Posts: 12906
  • London, England
Re: TabSort.lsp
« Reply #28 on: September 15, 2009, 09:58:52 AM »
Thanks John  8-)

When you say "export to single drawings" do you mean make each tab a new drawing?

jmcshane

  • Newt
  • Posts: 83
Re: TabSort.lsp
« Reply #29 on: September 15, 2009, 10:20:09 AM »
You are welcome.

Quote
When you say "export to single drawings" do you mean make each tab a new drawing?

Yeah, I know its a big task but this tool would then be the ultimate one stop shop for layout tabs.


How do you get the time to do all this code?





John.

Civil 3D 2021. Windows 10