Author Topic: Freeze all layer  (Read 5944 times)

0 Members and 1 Guest are viewing this topic.

ronjonp

  • Needs a day job
  • Posts: 7531
Re: Freeze all layer
« Reply #15 on: April 27, 2006, 03:01:44 PM »
Thanks for the input MP. Why do you prefer the getvar over activex?

This stuff is finally starting to get fun for me :).

Ron

Windows 11 x64 - AutoCAD /C3D 2023

Custom Build PC

MP

  • Seagull
  • Posts: 17750
  • Have thousands of dwgs to process? Contact me.
Re: Freeze all layer
« Reply #16 on: April 27, 2006, 03:02:33 PM »
1.Thanks for the input MP.

2.Why do you prefer the getvar over activex?

3.This stuff is finally starting to get fun for me :).

Ron

1. My pleasure.

2. The brevity.

3. Most excellent!

:)
Engineering Technologist • CAD Automation Practitioner
Automation ▸ Design ▸ Drafting ▸ Document Control ▸ Client
cadanalyst@gmail.comhttp://cadanalyst.slack.comhttp://linkedin.com/in/cadanalyst

Sdoman

  • Guest
Re: Freeze all layer
« Reply #17 on: April 27, 2006, 08:50:09 PM »
Gotta go with Steve on this one.  Humbertogo, can you post the whole code you're using??

Thanks CADaver.  The way I/we interpreted the Op's question is that his original code works (he says so).  The problem he is having is with the *error* function.  I assume that the Op's code is part of a routine which crashes when the user cancels or the routine ends. 

The other view, is that the Op's code does not work and is causing the *error* function to execute.  And thus appears to be an error in the *error* function, but this error should be capture while freezing the layers and therefore avoiding the error in the *error*. Whew..

Anyhow, it interesting to see so many ways to "skin a cat".  I just not sure what cat we should be skinning...  :-)



Jürg Menzi

  • Swamp Rat
  • Posts: 599
  • Oberegg, Switzerland
Re: Freeze all layer
« Reply #18 on: April 28, 2006, 03:10:58 AM »
Not sure if the local var is needed. If not then this.

There is no need for a lokal var.
In my apps the acaddoc object is global, therefore I've to copy this line to the extracted samples... ;-)
A computer's human touch is its unscrupulousness!
MENZI ENGINEERING GmbH
Current A2k16... A2k24 - Start R2.18

CADaver

  • Guest
Re: Freeze all layer
« Reply #19 on: April 28, 2006, 08:18:38 AM »
Anyhow, it interesting to see so many ways to "skin a cat".  I just not sure what cat we should be skinning...  :-)
That's why I'd like to see the original code.  I've beat myself silly for hourss over something as simple as misspelling the word command.