Author Topic: Runs yet it doesn't  (Read 3610 times)

0 Members and 1 Guest are viewing this topic.

ronjonp

  • Needs a day job
  • Posts: 7531
Re: Runs yet it doesn't
« Reply #15 on: February 21, 2013, 01:34:54 PM »
Unless  :-P
« Last Edit: February 21, 2013, 02:38:26 PM by ronjonp »

Windows 11 x64 - AutoCAD /C3D 2023

Custom Build PC

David Hall

  • Automatic Duh Generator
  • King Gator
  • Posts: 4076
Re: Runs yet it doesn't
« Reply #16 on: February 21, 2013, 01:39:24 PM »
unless what?  I tried to open, which worked, and when I call layer command, fatal exception
Everyone has a photographic memory, Some just don't have film.
They say money can't buy happiness, but it can buy Bacon and that's a close second.
Sometimes the question is more important than the answer. (Thanks Kerry for reminding me)

Lee Mac

  • Seagull
  • Posts: 12925
  • London, England
Re: Runs yet it doesn't
« Reply #17 on: February 21, 2013, 02:05:05 PM »
Haven't looked at the drawing, but I'm guessing clayer has been frozen using entmod  :lol:

ronjonp

  • Needs a day job
  • Posts: 7531
Re: Runs yet it doesn't
« Reply #18 on: February 21, 2013, 02:45:05 PM »
Haven't looked at the drawing, but I'm guessing clayer has been frozen using entmod  :lol:

 :-P

Windows 11 x64 - AutoCAD /C3D 2023

Custom Build PC

irneb

  • Water Moccasin
  • Posts: 1794
  • ACad R9-2016, Revit Arch 6-2016
Re: Runs yet it doesn't
« Reply #19 on: February 23, 2013, 01:50:20 AM »
sledge hammers, how do they work?
:lmao:

I like this comparison!

Sledgehammer:
Code: [Select]
...vl-catch-all-apply...

Toothpick:
Code - Auto/Visual Lisp: [Select]
  1. (defun c:foo  (/ )
  2.     (if (and (vlax-property-available-p eachLayer 'Freeze t)
  3.              (= (vla-get-Freeze eachLayer) :vlax-true))
  4.       (vla-put-Freeze eachLayer :vlax-false)))
  5.   (princ))

Should even catch the hacked entmod'ed current layer  ;)

Edit: Also got rid of all those (used only once) local variables. You don't need them in Lisp, not like in VBA/C++/C#.
 
« Last Edit: February 23, 2013, 01:55:07 AM by irneb »
Common sense - the curse in disguise. Because if you have it, you have to live with those that don't.