Support Forum

Layer id, layer "short name", layer "long name". Personalize INFO


Hi,

I have some little questions:

1. In my script, the second field show the layer "short name", but in the first field only show the layer id. How to show the layer "short name" in the first field?

!--First Field
I_ROW "Layer"
I_INFIELD_3 "fn2d_layer_mod" , 20 , 20 , 20 , 20 , 5 , "" , 2 , 1 , 20 , 20 , 20 , 20 ,
"" , STR ( fn2d_layer , 1 , 0 ) , 0 ,
"" , STR ( fn2d_layer , 1 , 0 ) , 1
I_ROW_END

!--Second Field
I_ROW " "
IF fn2d_layer_mod = 1 THEN
I_INFIELD "fn2d_layer" , 20 , 20 , 20 , 20
ENDIF
I_ROW_END

2. Are there any way to show the layer "long name" in the dialog window?

3. How to personalize the INFO dialog window?

Thanks a lot!
Xavi

Xavier Coll • Architect, Project Manager I+D, BIM Manager, BIM Auditor
EiPM • http://www.eipm.es/en/

Anhänge (2)

Typ: image/jpeg
465-mal heruntergeladen
Größe: 115,08 KiB
Typ: application/octet-stream
1736-mal heruntergeladen
Größe: 5,68 KiB

Hi Xavi,

1.It is not possible to get the layer "short name" from the layer ID!
BTW, why so complicated? Why 2 controls?
One control do the job!
I_INFIELD "fn2d_layer" , 20 , 20 , 20 , 20

2.It is not possible to get the layer "long name" from the layer ID!

3. Personalize the INFO dialog
With:

I_PALETTE "EiPM TEST33" , 3 ,
`Version` , `1.0` ,
`Homepage` ,"link=http://www.google.de" ,
`All rights reserved.` , `pict=xavi`

you get (s. info_dlg.png).

Regards.
Jörg

Anhänge (2)

Typ: image/png
465-mal heruntergeladen
Größe: 32,24 KiB
Typ: application/octet-stream
1739-mal heruntergeladen
Größe: 9,16 KiB

Hi Jörg,

First, thanks for your fast answer :-)

Question 1: Well, it's true: the direct solution it's using only one control as you explained before :-) . But we have a little problem , because we use a very long list of layers, and when we run the script of smartpart with only one control layer, the smartpart runs very slow. The solution that I found is use this double layer control: then the smartpart runs faster.

Question 2: Oups!

Question 3: Perfect! Now I will try to personalize our INFO :-D

Thanks! Regards,
Xavi

Xavier Coll • Architect, Project Manager I+D, BIM Manager, BIM Auditor
EiPM • http://www.eipm.es/en/