Author Topic: TabSort.lsp  (Read 87514 times)

0 Members and 1 Guest are viewing this topic.

Lee Mac

  • Seagull
  • Posts: 12906
  • London, England
Re: TabSort.lsp
« Reply #120 on: September 21, 2009, 07:27:28 PM »
Good point CAB - I notice the ABS in the backtrace and I believe that is the only line that uses it.

Did AJ maybe double click too fast  :evil:

alanjt

  • Needs a day job
  • Posts: 5352
  • Standby for witty remark...
Re: TabSort.lsp
« Reply #121 on: September 21, 2009, 08:32:33 PM »
Thanks Alan  8-)

I can't quite follow the backtrace too well - when exactly did it crash, and what did you try to rename the tab to (if you got that far)?
I couldn't get past the double-click.
Civil 3D 2019 ~ Windohz 7 64bit
Dropbox

alanjt

  • Needs a day job
  • Posts: 5352
  • Standby for witty remark...
Re: TabSort.lsp
« Reply #122 on: September 21, 2009, 08:33:15 PM »
Good point CAB - I notice the ABS in the backtrace and I believe that is the only line that uses it.

Did AJ maybe double click too fast  :evil:
LoL
I'm fast, but not that fast. I tried it several times, just to make sure.
Civil 3D 2019 ~ Windohz 7 64bit
Dropbox

Lee Mac

  • Seagull
  • Posts: 12906
  • London, England
Re: TabSort.lsp
« Reply #123 on: September 21, 2009, 08:41:40 PM »
I think CAB is correct about the read statement not returning a valid number - but I cannot see why it is failing...

Just out of curiosity, try this at the command line... :P

Code: [Select]
(abs (read (rtos -1.01887e-006 2 10)))

CAB

  • Global Moderator
  • Seagull
  • Posts: 10401
Re: TabSort.lsp
« Reply #124 on: September 21, 2009, 09:19:54 PM »
I have not been able to reproduce the error.

BTW Lee, The = is causing the DCL not to fire the first time when it is created
Code: [Select]
((<[color=red]=[/color] (setq dcTag (load_dialog fname)) 0)should be
Code: [Select]
((< (setq dcTag (load_dialog fname)) 0)
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.

alanjt

  • Needs a day job
  • Posts: 5352
  • Standby for witty remark...
Re: TabSort.lsp
« Reply #125 on: September 21, 2009, 09:23:20 PM »
I have not been able to reproduce the error.
Odd, I'll have to try it when I can get back on the PC (wife is using it). Perhaps it was an isolated incident. I did only run it one session; should have restarted AutoCAD.
Civil 3D 2019 ~ Windohz 7 64bit
Dropbox

Lee Mac

  • Seagull
  • Posts: 12906
  • London, England
Re: TabSort.lsp
« Reply #126 on: September 22, 2009, 07:37:32 AM »
I have not been able to reproduce the error.

BTW Lee, The = is causing the DCL not to fire the first time when it is created
Code: [Select]
((<[color=red]=[/color] (setq dcTag (load_dialog fname)) 0)should be
Code: [Select]
((< (setq dcTag (load_dialog fname)) 0)

Thats funny - the equals makes no difference to mine  :? - but I shall change it anyway.

I have not been able to reproduce the error.
Odd, I'll have to try it when I can get back on the PC (wife is using it). Perhaps it was an isolated incident. I did only run it one session; should have restarted AutoCAD.

I couldn't reproduce the error either, unless your DATE sys var is somehow "corrupted", I can't think of any other explanation...  :-(

alanjt

  • Needs a day job
  • Posts: 5352
  • Standby for witty remark...
Re: TabSort.lsp
« Reply #127 on: September 22, 2009, 08:32:01 AM »
It's the dimzin variable. We use dimzin 12 to remove leading and trailing zeros. As a result, read returns only a '-' and abs freaks out.

I have not been able to reproduce the error.

BTW Lee, The = is causing the DCL not to fire the first time when it is created
Code: [Select]
((<[color=red]=[/color] (setq dcTag (load_dialog fname)) 0)should be
Code: [Select]
((< (setq dcTag (load_dialog fname)) 0)

Thats funny - the equals makes no difference to mine  :? - but I shall change it anyway.

I have not been able to reproduce the error.
Odd, I'll have to try it when I can get back on the PC (wife is using it). Perhaps it was an isolated incident. I did only run it one session; should have restarted AutoCAD.

I couldn't reproduce the error either, unless your DATE sys var is somehow "corrupted", I can't think of any other explanation...  :-(
Civil 3D 2019 ~ Windohz 7 64bit
Dropbox

Lee Mac

  • Seagull
  • Posts: 12906
  • London, England
Re: TabSort.lsp
« Reply #128 on: September 22, 2009, 08:41:48 AM »
Ahhh of couse!

Ok, then I suppose an easy fix would be to just set the DIMZIN to say 0, and reset it after program completion  ;-)

alanjt

  • Needs a day job
  • Posts: 5352
  • Standby for witty remark...
Re: TabSort.lsp
« Reply #129 on: September 22, 2009, 08:53:46 AM »
Ahhh of couse!

Ok, then I suppose an easy fix would be to just set the DIMZIN to say 0, and reset it after program completion  ;-)
It's an easy-to-squash bug.
Civil 3D 2019 ~ Windohz 7 64bit
Dropbox

Lee Mac

  • Seagull
  • Posts: 12906
  • London, England
Re: TabSort.lsp
« Reply #130 on: September 22, 2009, 09:01:59 AM »
Bug Squashed  8-)

First post updated to Version 1.8.1 to include the bug fixes for the two Alans  :-)

alanjt

  • Needs a day job
  • Posts: 5352
  • Standby for witty remark...
Re: TabSort.lsp
« Reply #131 on: September 22, 2009, 09:14:18 AM »
Bug Squashed  8-)

First post updated to Version 1.8.1 to include the bug fixes for the two Alans  :-)
We're buggy people.  :-o :lol:
Civil 3D 2019 ~ Windohz 7 64bit
Dropbox

CAB

  • Global Moderator
  • Seagull
  • Posts: 10401
Re: TabSort.lsp
« Reply #132 on: September 22, 2009, 09:25:58 AM »
I have not been able to reproduce the error.

BTW Lee, The = is causing the DCL not to fire the first time when it is created
Code: [Select]
((<[color=red]=[/color] (setq dcTag (load_dialog fname)) 0)should be
Code: [Select]
((< (setq dcTag (load_dialog fname)) 0)

Thats funny - the equals makes no difference to mine  :? - but I shall change it anyway.

Maybe it's ACAD2000 but the help says negative numbers signal failure so zero is returned on my system.
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: 12906
  • London, England
Re: TabSort.lsp
« Reply #133 on: September 22, 2009, 09:33:50 AM »
I have not been able to reproduce the error.

BTW Lee, The = is causing the DCL not to fire the first time when it is created
Code: [Select]
((<[color=red]=[/color] (setq dcTag (load_dialog fname)) 0)should be
Code: [Select]
((< (setq dcTag (load_dialog fname)) 0)

Thats funny - the equals makes no difference to mine  :? - but I shall change it anyway.

Maybe it's ACAD2000 but the help says negative numbers signal failure so zero is returned on my system.


True, but then zero is neither positive or negative - I just err'd on the wrong side thats all  :-)

VovKa

  • Water Moccasin
  • Posts: 1626
  • Ukraine
Re: TabSort.lsp
« Reply #134 on: September 23, 2009, 12:39:39 PM »
1 delete all layouts
2 reset
3 done
4 error