In a script I created a custom layer: "layer 106 Marker;";
Drew some objects in it.
Used the command: "layer -106 ??;" to delete with the contents.
Layer does not disappear.
Eagle 6.2.0
Robert
In a script I created a custom layer: "layer 106 Marker;";
Drew some objects in it.
Used the command: "layer -106 ??;" to delete with the contents.
Layer does not disappear.
Eagle 6.2.0
Robert
On 09/11/2012 06:33, Warren Brayshaw wrote:
Robert wrote:
>> In a script I created a custom layer: "layer 106 Marker;";
>> Drew some objects in it.
>> Used the command: "layer -106 ??;" to delete with the contents.
>> Layer does not disappear.
>>
>> Eagle 6.2.0
>>
>> Robert
You cannot delete a layer that is not empty,
The ?? simply suppresses the error message you get when you attempt to
delete a layer that is not empty. This is useful in scripts.
to delete the layer, enter into the command line:
display none 106;
group all;
delete (>0 0);
display last;
layer -106;
HTH
Warren
>
Thanks Warren, I found that workaround. I did read the on-line help:
-
LAYER -103;
deletes the layer number 103. Layers to be deleted must be empty. If
this is not the case, the program generates the error message
"layer is not empty: #"
where "#" represents the layer number. If you want to avoid any error
messages in a layer delete operation you can use the '??' option. This
may be useful in scripts that try to delete certain layers, but don't
consider it an error if any of these layers is not empty or not present
at all.
-
The last phrase suggested (to me) that I could delete this way a
non-empty layer...
Robert
Robert wrote:
In a script I created a custom layer: "layer 106 Marker;";
Drew some objects in it.
Used the command: "layer -106 ??;" to delete with the contents.
Layer does not disappear.
Eagle 6.2.0
Robert
You cannot delete a layer that is not empty,
The ?? simply suppresses the error message you get when you attempt to
delete a layer that is not empty. This is useful in scripts.
to delete the layer, enter into the command line:
display none 106;
group all;
delete (>0 0);
display last;
layer -106;
HTH
Warren
--
Viewed / responded via the newsgroup at
news.cadsoft.de