Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

; error: Automation Error. On locked layer

4 REPLIES 4
Reply
Message 1 of 5
Anonymous
486 Views, 4 Replies

; error: Automation Error. On locked layer

I'm getting this error while attempting to load my acaddoc.lsp:

; error: Automation Error. On locked layer

There are indeed some locked layers, if I unlock all, everything is
fine. Unlocking the current layer, layer zero & defpoints doesn't help.
Running vlide in animated debug mode doesn't help identify what exactly
is causing this.

Any ideas?
4 REPLIES 4
Message 2 of 5
Anonymous
in reply to: Anonymous

W/o the code, it's hard to tell, but I would assume that you are using a
layer method that fails on locked layers.

--
R. Robert Bell, MCSE
http://www.acadx.com


"Paul Furman" wrote in message
news:3BDEFDFC.4185057F@edgehill.net...
| I'm getting this error while attempting to load my acaddoc.lsp:
|
| ; error: Automation Error. On locked layer
|
| There are indeed some locked layers, if I unlock all, everything is
| fine. Unlocking the current layer, layer zero & defpoints doesn't help.
| Running vlide in animated debug mode doesn't help identify what exactly
| is causing this.
|
| Any ideas?
|
Message 3 of 5
Anonymous
in reply to: Anonymous

Hi Robert,

There is hardly anything that actually runs. This is just loading my suite of
various assorted lisp routines in acaddoc.lsp. It's a big file full of gunk.
The only layer related commands I have simply use the "command" function,
"layer method" sounds like something more than lisp. Is there a way to tell
what it is breaking on? In vlide, if I use the last break source, it says
;CALLBACK-ENTRY which I don't understand. I suppose it must be some arx file
or something trying to write to some kind of library that's placed on a
particular layer somehow???

"R. Robert Bell" wrote:

> W/o the code, it's hard to tell, but I would assume that you are using a
> layer method that fails on locked layers.
>
> --
> R. Robert Bell, MCSE
> http://www.acadx.com
>
> "Paul Furman" wrote in message
> news:3BDEFDFC.4185057F@edgehill.net...
> | I'm getting this error while attempting to load my acaddoc.lsp:
> |
> | ; error: Automation Error. On locked layer
> |
> | There are indeed some locked layers, if I unlock all, everything is
> | fine. Unlocking the current layer, layer zero & defpoints doesn't help.
> | Running vlide in animated debug mode doesn't help identify what exactly
> | is causing this.
> |
> | Any ideas?
> |
Message 4 of 5
Anonymous
in reply to: Anonymous

Paul:

Might be (command) but also look for any (entmod)s. Actually, an automation
error indicates you're using some kind of ActiveX property change function,
so you might want to look for (vla-put...)s or (vlax-put...)s. It's a good
practice to include locked layer checking in all your code.

--
John Uhden, Cadlantic/formerly CADvantage
--> mailto:juhden@cadlantic.com
--> http://www.cadlantic.com
2 Village Road
Sea Girt, NJ 08750
Tel. 732-974-1711
FAX 732-528-1332


"Paul Furman" wrote in message
news:3BDF14BB.4CE72F60@edgehill.net...
> Hi Robert,
>
> There is hardly anything that actually runs. This is just loading my suite
of
> various assorted lisp routines in acaddoc.lsp. It's a big file full of
gunk.
> The only layer related commands I have simply use the "command" function,
> "layer method" sounds like something more than lisp. Is there a way to
tell
> what it is breaking on? In vlide, if I use the last break source, it says
> ;CALLBACK-ENTRY which I don't understand. I suppose it must be some arx
file
> or something trying to write to some kind of library that's placed on a
> particular layer somehow???
>
> "R. Robert Bell" wrote:
>
> > W/o the code, it's hard to tell, but I would assume that you are using a
> > layer method that fails on locked layers.
> >
> > --
> > R. Robert Bell, MCSE
> > http://www.acadx.com
> >
> > "Paul Furman" wrote in message
> > news:3BDEFDFC.4185057F@edgehill.net...
> > | I'm getting this error while attempting to load my acaddoc.lsp:
> > |
> > | ; error: Automation Error. On locked layer
> > |
> > | There are indeed some locked layers, if I unlock all, everything is
> > | fine. Unlocking the current layer, layer zero & defpoints doesn't
help.
> > | Running vlide in animated debug mode doesn't help identify what
exactly
> > | is causing this.
> > |
> > | Any ideas?
> > |
>
Message 5 of 5
Anonymous
in reply to: Anonymous

Excellent, thanks John. It was a routine that locks all the viewports when
opening every drawing. I usually put them on the same layer so it'll be easy to
unlock that layer.


John Uhden wrote:

> Paul:
>
> Might be (command) but also look for any (entmod)s. Actually, an automation
> error indicates you're using some kind of ActiveX property change function,
> so you might want to look for (vla-put...)s or (vlax-put...)s. It's a good
> practice to include locked layer checking in all your code.
>
> --
> John Uhden, Cadlantic/formerly CADvantage
> --> mailto:juhden@cadlantic.com
> --> http://www.cadlantic.com
> 2 Village Road
> Sea Girt, NJ 08750
> Tel. 732-974-1711
> FAX 732-528-1332
>
> "Paul Furman" wrote in message
> news:3BDF14BB.4CE72F60@edgehill.net...
> > Hi Robert,
> >
> > There is hardly anything that actually runs. This is just loading my suite
> of
> > various assorted lisp routines in acaddoc.lsp. It's a big file full of
> gunk.
> > The only layer related commands I have simply use the "command" function,
> > "layer method" sounds like something more than lisp. Is there a way to
> tell
> > what it is breaking on? In vlide, if I use the last break source, it says
> > ;CALLBACK-ENTRY which I don't understand. I suppose it must be some arx
> file
> > or something trying to write to some kind of library that's placed on a
> > particular layer somehow???
> >
> > "R. Robert Bell" wrote:
> >
> > > W/o the code, it's hard to tell, but I would assume that you are using a
> > > layer method that fails on locked layers.
> > >
> > > --
> > > R. Robert Bell, MCSE
> > > http://www.acadx.com
> > >
> > > "Paul Furman" wrote in message
> > > news:3BDEFDFC.4185057F@edgehill.net...
> > > | I'm getting this error while attempting to load my acaddoc.lsp:
> > > |
> > > | ; error: Automation Error. On locked layer
> > > |
> > > | There are indeed some locked layers, if I unlock all, everything is
> > > | fine. Unlocking the current layer, layer zero & defpoints doesn't
> help.
> > > | Running vlide in animated debug mode doesn't help identify what
> exactly
> > > | is causing this.
> > > |
> > > | Any ideas?
> > > |
> >

--
Paul Furman
George W. Girvin Associates Inc.
Landscape Architects
1623-B Fifth Avenue
San Rafael, CA 94901
(415) 459-3443
(fax) 459-7926

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost