hiCreateLayerCyclicField

S

SS

Guest
Is there a function that would list all the layer purpose pairs in a a
given list ??

hiCreateLayerCyclicField creates it in a cyclic field. Any function
similar to this ?

thanks,
Sriram
 
I didn't realy under stand what you mean with
list all the layer purpose pairs in a given list?
But I think this could be what you want:

1. leGetValidLayerList( techGetTechFile( ddGetObj( t_techLib ) ) )

return value is a list of layer purpose pairs
'( ( "layer1" "drawing" ) ... )


2. setof(
layer
techGetTechFile( ddGetObj( t_techLib ) )~>layers
layer~>valid
)

return value is the a list of layer dbId's


The second method is more flexible.
It can be variated, you can use 'lps'
(layer purpose pairs) rather than 'layers'.
And also the the filter attribute of the layer can
be changed form 'valid' to 'changeLayer', 'selectable'
or 'dragEnable'.

Bernd

SS wrote:
Is there a function that would list all the layer purpose pairs in a a
given list ??

hiCreateLayerCyclicField creates it in a cyclic field. Any function
similar to this ?

thanks,
Sriram
 
I am sorry it should have been display all layer purpose pairs in a
given list(or valid_layers).
I want all layers to be displayed like the in LSW and not cyclic.

thanks,
Sriram

Bernd Fischer wrote:
I didn't realy under stand what you mean with
list all the layer purpose pairs in a given list?
But I think this could be what you want:

1. leGetValidLayerList( techGetTechFile( ddGetObj( t_techLib ) ) )

return value is a list of layer purpose pairs
'( ( "layer1" "drawing" ) ... )


2. setof(
layer
techGetTechFile( ddGetObj( t_techLib ) )~>layers
layer~>valid
)

return value is the a list of layer dbId's


The second method is more flexible.
It can be variated, you can use 'lps'
(layer purpose pairs) rather than 'layers'.
And also the the filter attribute of the layer can
be changed form 'valid' to 'changeLayer', 'selectable'
or 'dragEnable'.

Bernd

SS wrote:
Is there a function that would list all the layer purpose pairs in a a
given list ??

hiCreateLayerCyclicField creates it in a cyclic field. Any function
similar to this ?

thanks,
Sriram
 
Thanks Andrew,

Sriram
Andrew Beckett wrote:
On 11 Jan 2006 13:01:49 -0800, "SS" <ssriramiyer@gmail.com> wrote:

I am sorry it should have been display all layer purpose pairs in a
given list(or valid_layers).
I want all layers to be displayed like the in LSW and not cyclic.

thanks,
Sriram



I thought there was a function for getting the icon for a layer purpose pair,
but I couldn't find it (my memory must be failing me in my old age).

One approach you could take is to put a bunch of cyclic fields on the
form, each with a single layer choice. Bit of a hack, but might be good
enough...

Andrew.
 
On 11 Jan 2006 13:01:49 -0800, "SS" <ssriramiyer@gmail.com> wrote:

I am sorry it should have been display all layer purpose pairs in a
given list(or valid_layers).
I want all layers to be displayed like the in LSW and not cyclic.

thanks,
Sriram
I thought there was a function for getting the icon for a layer purpose pair,
but I couldn't find it (my memory must be failing me in my old age).

One approach you could take is to put a bunch of cyclic fields on the
form, each with a single layer choice. Bit of a hack, but might be good
enough...

Andrew.
 

Welcome to EDABoard.com

Sponsor

Back
Top