| Author |
Message |
fogh
Guest
|
|
| Back to top |
|
 |
S. Badel
Guest
|
Posted:
Mon Nov 07, 2005 5:10 pm Post subject:
Re: Q: save/restore the selection filters of LSW |
|
|
| Quote: | I want to have the ability to save and restore the state of the
selection filter.This is necessary because there is no
geSelectFigPointNoFilter()
|
By "selection filter", do you mean which layers are selectable, as and wether
instances and pins are selectable - well actually what's in the lsw?
If yes, then that shouldn't be very hard to do with the following functions :
- leIsInstSelectable
- leSetInstSelectable
- leIsPinSelectable
- leSetPinSelectable
- leIsLayerSelectable
- leSetLayerSelectable
- leSetAllLayerSelectable
- leGetValidLayerList
If not, could you elaborate?
cheers,
Stéphane |
|
| Back to top |
|
 |
fogh
Guest
|
Posted:
Mon Nov 07, 2005 9:10 pm Post subject:
Re: Q: save/restore the selection filters of LSW |
|
|
S. Badel wrote:
| Quote: | I want to have the ability to save and restore the state of the
selection filter.This is necessary because there is no
geSelectFigPointNoFilter()
By "selection filter", do you mean which layers are selectable, as and
wether
instances and pins are selectable - well actually what's in the lsw?
yes. I mean that. I want to know wether they are selectable, visible, |
valid(for layers). I would rather, if I give another go at this
secundary buffer utility, that it is robust against any manipulation of
the layers and objects, and that it works well with mosaics too (damn
mosaics!).
| Quote: |
If yes, then that shouldn't be very hard to do with the following
functions :
- leIsInstSelectable
- leSetInstSelectable
- leIsPinSelectable
- leSetPinSelectable
- leIsLayerSelectable
- leSetLayerSelectable
- leSetAllLayerSelectable
- leGetValidLayerList
I found these in the manual, but I am still missing the object |
visibility, and the selectability for marker, row, prBdy, snapBdy
I also noticed that the edit->save / edit->load does not restore these
(so using a temporary file and the corresponding ^leHi.* is no
workaround ).
|
|
| Back to top |
|
 |
Trevor Bowen
Guest
|
Posted:
Mon Nov 07, 2005 9:10 pm Post subject:
Re: Q: save/restore the selection filters of LSW |
|
|
Argh... Should read:
The only one that I could *not* change *by* manipulating the
selectability/visibility is "instance". I could change visibility, but
not the selectability by manipulating the "instance" "drawing" LPP.
Trevor Bowen wrote:
| Quote: | I believe these objects map to simple LPP's:
instance -> "instance" "drawing"
pin -> all layers with purpose "pin"
marker -> "marker" "warning"/"error"
row -> "row" "drawing"
prBdy -> "prBoundary" "boundary" (but not "drawing", weird!)
snapBdy -> "snap" "boundary"
You can get/set the status by manipulating these LPP's directly in the LSW.
The only one that I could change my manipulating the
selectability/visiablity is "instance". I could change visability, but
not the selectability by manipulating the "instance" "drawing" LPP.
Coupling this with:
- leIsLayerSelectable
- leSetLayerSelectable
You should be in good shape!
*NOTE*: There may be an OA layer or even a special dfII tech prop
beyond what I could see in my simple dfII database, but this worked for me.
fogh wrote:
S. Badel wrote:
I want to have the ability to save and restore the state of the
selection filter.This is necessary because there is no
geSelectFigPointNoFilter()
By "selection filter", do you mean which layers are selectable, as
and wether
instances and pins are selectable - well actually what's in the lsw?
yes. I mean that. I want to know wether they are selectable, visible,
valid(for layers). I would rather, if I give another go at this
secundary buffer utility, that it is robust against any manipulation
of the layers and objects, and that it works well with mosaics too
(damn mosaics!).
If yes, then that shouldn't be very hard to do with the following
functions :
- leIsInstSelectable
- leSetInstSelectable
- leIsPinSelectable
- leSetPinSelectable
- leIsLayerSelectable
- leSetLayerSelectable
- leSetAllLayerSelectable
- leGetValidLayerList
I found these in the manual, but I am still missing the object
visibility, and the selectability for marker, row, prBdy, snapBdy
I also noticed that the edit->save / edit->load does not restore these
(so using a temporary file and the corresponding ^leHi.* is no
workaround ). |
|
|
| Back to top |
|
 |
Trevor Bowen
Guest
|
Posted:
Mon Nov 07, 2005 9:10 pm Post subject:
Re: Q: save/restore the selection filters of LSW |
|
|
I believe these objects map to simple LPP's:
instance -> "instance" "drawing"
pin -> all layers with purpose "pin"
marker -> "marker" "warning"/"error"
row -> "row" "drawing"
prBdy -> "prBoundary" "boundary" (but not "drawing", weird!)
snapBdy -> "snap" "boundary"
You can get/set the status by manipulating these LPP's directly in the LSW.
The only one that I could change my manipulating the
selectability/visiablity is "instance". I could change visability, but
not the selectability by manipulating the "instance" "drawing" LPP.
Coupling this with:
- leIsLayerSelectable
- leSetLayerSelectable
You should be in good shape!
*NOTE*: There may be an OA layer or even a special dfII tech prop
beyond what I could see in my simple dfII database, but this worked for me.
fogh wrote:
| Quote: | S. Badel wrote:
I want to have the ability to save and restore the state of the
selection filter.This is necessary because there is no
geSelectFigPointNoFilter()
By "selection filter", do you mean which layers are selectable, as and
wether
instances and pins are selectable - well actually what's in the lsw?
yes. I mean that. I want to know wether they are selectable, visible,
valid(for layers). I would rather, if I give another go at this
secundary buffer utility, that it is robust against any manipulation of
the layers and objects, and that it works well with mosaics too (damn
mosaics!).
If yes, then that shouldn't be very hard to do with the following
functions :
- leIsInstSelectable
- leSetInstSelectable
- leIsPinSelectable
- leSetPinSelectable
- leIsLayerSelectable
- leSetLayerSelectable
- leSetAllLayerSelectable
- leGetValidLayerList
I found these in the manual, but I am still missing the object
visibility, and the selectability for marker, row, prBdy, snapBdy
I also noticed that the edit->save / edit->load does not restore these
(so using a temporary file and the corresponding ^leHi.* is no
workaround ). |
|
|
| Back to top |
|
 |
fogh
Guest
|
Posted:
Fri Nov 11, 2005 1:10 am Post subject:
Re: Q: save/restore the selection filters of LSW |
|
|
Trevor,
never mind. I got your point.
With your explanations it all seems more simple than at first sight. I
ll give it a go soon.
Trevor Bowen wrote:
| Quote: | Argh... Should read:
The only one that I could *not* change *by* manipulating the
selectability/visibility is "instance". I could change visibility, but
not the selectability by manipulating the "instance" "drawing" LPP.
Trevor Bowen wrote:
I believe these objects map to simple LPP's:
instance -> "instance" "drawing"
pin -> all layers with purpose "pin"
marker -> "marker" "warning"/"error"
row -> "row" "drawing"
prBdy -> "prBoundary" "boundary" (but not "drawing", weird!)
snapBdy -> "snap" "boundary"
You can get/set the status by manipulating these LPP's directly in the
LSW.
The only one that I could change my manipulating the
selectability/visiablity is "instance". I could change visability,
but not the selectability by manipulating the "instance" "drawing" LPP.
Coupling this with:
- leIsLayerSelectable
- leSetLayerSelectable
You should be in good shape!
*NOTE*: There may be an OA layer or even a special dfII tech prop
beyond what I could see in my simple dfII database, but this worked
for me.
fogh wrote:
S. Badel wrote:
I want to have the ability to save and restore the state of the
selection filter.This is necessary because there is no
geSelectFigPointNoFilter()
By "selection filter", do you mean which layers are selectable, as
and wether
instances and pins are selectable - well actually what's in the lsw?
yes. I mean that. I want to know wether they are selectable, visible,
valid(for layers). I would rather, if I give another go at this
secundary buffer utility, that it is robust against any manipulation
of the layers and objects, and that it works well with mosaics too
(damn mosaics!).
If yes, then that shouldn't be very hard to do with the following
functions :
- leIsInstSelectable
- leSetInstSelectable
- leIsPinSelectable
- leSetPinSelectable
- leIsLayerSelectable
- leSetLayerSelectable
- leSetAllLayerSelectable
- leGetValidLayerList
I found these in the manual, but I am still missing the object
visibility, and the selectability for marker, row, prBdy, snapBdy
I also noticed that the edit->save / edit->load does not restore
these (so using a temporary file and the corresponding ^leHi.* is no
workaround ). |
|
|
| Back to top |
|
 |
fogh
Guest
|
Posted:
Sun Nov 13, 2005 1:10 am Post subject:
Re: Q: save/restore the selection filters of LSW |
|
|
Trevor,
the first draft does not work too well. Visibility toggles fine, but
selectability does not. Would you have an idea ?
Here is what I tried (sorry, bad indentation again):
procedure( CmLeGetLSWState(@optional (cv nil) )
let( (tf tl layerstate lswstate)
cv || ( cv=geGetEditCellView() )
tf=techGetTechFile(cv)
tl=tf->layers
layerstate=foreach(mapcar l tl list(l->valid l->selectable l->visible))
lswstate=cons(leIsInstSelectable(tf) layerstate)
);let
);proc
procedure( CmLeSetLSWState(l_lswstate @optional (cv nil) )
let( (tf tl layerstate)
cv || ( cv=geGetEditCellView() )
tf=techGetTechFile(cv)
tl=tf->layers
layerstate=cdr(l_lswstate)
foreach( (l s) tl layerstate
;info("%L\t\%L\t%L\n" l->name l->purpose s)
; l->valid=car(s)
; l->visible=caddr(s)
; l->selectable=cadr(s)
; leSetLayerSelectable(list(l->name l->purpose) cadr(s) )
;info("%L\t\%L\t%L\n" l->name l->purpose list(l->valid l->selectable
l->visible))
leSetLayerAttributes(tf cons(list(l->name l->purpose) s) )
)
leSetInstSelectable(car(l_lswstate))
);let
);proc
fogh wrote:
| Quote: | Trevor,
never mind. I got your point.
With your explanations it all seems more simple than at first sight. I
ll give it a go soon.
Trevor Bowen wrote:
Argh... Should read:
The only one that I could *not* change *by* manipulating the
selectability/visibility is "instance". I could change visibility,
but not the selectability by manipulating the "instance" "drawing" LPP.
Trevor Bowen wrote:
I believe these objects map to simple LPP's:
instance -> "instance" "drawing"
pin -> all layers with purpose "pin"
marker -> "marker" "warning"/"error"
row -> "row" "drawing"
prBdy -> "prBoundary" "boundary" (but not "drawing", weird!)
snapBdy -> "snap" "boundary"
You can get/set the status by manipulating these LPP's directly in
the LSW.
The only one that I could change my manipulating the
selectability/visiablity is "instance". I could change visability,
but not the selectability by manipulating the "instance" "drawing" LPP.
Coupling this with:
- leIsLayerSelectable
- leSetLayerSelectable
You should be in good shape!
*NOTE*: There may be an OA layer or even a special dfII tech prop
beyond what I could see in my simple dfII database, but this worked
for me.
fogh wrote:
S. Badel wrote:
I want to have the ability to save and restore the state of the
selection filter.This is necessary because there is no
geSelectFigPointNoFilter()
By "selection filter", do you mean which layers are selectable, as
and wether
instances and pins are selectable - well actually what's in the lsw?
yes. I mean that. I want to know wether they are selectable,
visible, valid(for layers). I would rather, if I give another go at
this secundary buffer utility, that it is robust against any
manipulation of the layers and objects, and that it works well with
mosaics too (damn mosaics!).
If yes, then that shouldn't be very hard to do with the following
functions :
- leIsInstSelectable
- leSetInstSelectable
- leIsPinSelectable
- leSetPinSelectable
- leIsLayerSelectable
- leSetLayerSelectable
- leSetAllLayerSelectable
- leGetValidLayerList
I found these in the manual, but I am still missing the object
visibility, and the selectability for marker, row, prBdy, snapBdy
I also noticed that the edit->save / edit->load does not restore
these (so using a temporary file and the corresponding ^leHi.* is no
workaround ). |
|
|
| Back to top |
|
 |
fogh
Guest
|
Posted:
Sun Nov 13, 2005 1:10 am Post subject:
Re: Q: save/restore the selection filters of LSW |
|
|
All,
I had more sucess with the second go, but i would like some review anyway:
procedure( CmLeGetLSWState(@optional (cv nil) )
let( (tf tl layerstate lswstate)
cv || ( cv=geGetEditCellView() )
tf=techGetTechFile(cv)
tl=tf->layers
layerstate=foreach(mapcar l tl copy(list(
l->valid
leIsLayerSelectable(list(l->name l->purpose))||(not(l->valid) &&
l->selectable)
l->visible)) )
lswstate=cons(leIsInstSelectable(tf) layerstate)
);let
);proc
procedure( CmLeSetLSWState(l_lswstate @optional (cv nil) )
let( (tf tl layerstate)
cv || ( cv=geGetEditCellView() )
tf=techGetTechFile(cv)
tl=tf->layers
layerstate=cdr(l_lswstate)
leSetInstSelectable(car(l_lswstate))
foreach( (l s) tl layerstate
l->valid=car(s)
l->selectable=cadr(s) l->selectable=cadr(s)
leSetLayerSelectable(list(l->name l->purpose) cadr(s) )
l->visible=caddr(s)
l->visible))
)
);let
);proc
fogh wrote:
| Quote: | Trevor,
the first draft does not work too well. Visibility toggles fine, but
selectability does not. Would you have an idea ?
Here is what I tried (sorry, bad indentation again):
procedure( CmLeGetLSWState(@optional (cv nil) )
let( (tf tl layerstate lswstate)
cv || ( cv=geGetEditCellView() )
tf=techGetTechFile(cv)
tl=tf->layers
layerstate=foreach(mapcar l tl list(l->valid l->selectable l->visible))
lswstate=cons(leIsInstSelectable(tf) layerstate)
);let
);proc
procedure( CmLeSetLSWState(l_lswstate @optional (cv nil) )
let( (tf tl layerstate)
cv || ( cv=geGetEditCellView() )
tf=techGetTechFile(cv)
tl=tf->layers
layerstate=cdr(l_lswstate)
foreach( (l s) tl layerstate
;info("%L\t\%L\t%L\n" l->name l->purpose s)
; l->valid=car(s)
; l->visible=caddr(s)
; l->selectable=cadr(s)
; leSetLayerSelectable(list(l->name l->purpose) cadr(s) )
;info("%L\t\%L\t%L\n" l->name l->purpose list(l->valid l->selectable
l->visible))
leSetLayerAttributes(tf cons(list(l->name l->purpose) s) )
)
leSetInstSelectable(car(l_lswstate))
);let
);proc
fogh wrote:
Trevor,
never mind. I got your point.
With your explanations it all seems more simple than at first sight.
I ll give it a go soon.
Trevor Bowen wrote:
Argh... Should read:
The only one that I could *not* change *by* manipulating the
selectability/visibility is "instance". I could change visibility,
but not the selectability by manipulating the "instance" "drawing" LPP.
Trevor Bowen wrote:
I believe these objects map to simple LPP's:
instance -> "instance" "drawing"
pin -> all layers with purpose "pin"
marker -> "marker" "warning"/"error"
row -> "row" "drawing"
prBdy -> "prBoundary" "boundary" (but not "drawing", weird!)
snapBdy -> "snap" "boundary"
You can get/set the status by manipulating these LPP's directly in
the LSW.
The only one that I could change my manipulating the
selectability/visiablity is "instance". I could change visability,
but not the selectability by manipulating the "instance" "drawing" LPP.
Coupling this with:
- leIsLayerSelectable
- leSetLayerSelectable
You should be in good shape!
*NOTE*: There may be an OA layer or even a special dfII tech prop
beyond what I could see in my simple dfII database, but this worked
for me.
fogh wrote:
S. Badel wrote:
I want to have the ability to save and restore the state of the
selection filter.This is necessary because there is no
geSelectFigPointNoFilter()
By "selection filter", do you mean which layers are selectable, as
and wether
instances and pins are selectable - well actually what's in the lsw?
yes. I mean that. I want to know wether they are selectable,
visible, valid(for layers). I would rather, if I give another go at
this secundary buffer utility, that it is robust against any
manipulation of the layers and objects, and that it works well with
mosaics too (damn mosaics!).
If yes, then that shouldn't be very hard to do with the following
functions :
- leIsInstSelectable
- leSetInstSelectable
- leIsPinSelectable
- leSetPinSelectable
- leIsLayerSelectable
- leSetLayerSelectable
- leSetAllLayerSelectable
- leGetValidLayerList
I found these in the manual, but I am still missing the object
visibility, and the selectability for marker, row, prBdy, snapBdy
I also noticed that the edit->save / edit->load does not restore
these (so using a temporary file and the corresponding ^leHi.* is
no workaround ). |
|
|
| Back to top |
|
 |
|
|
|
|