HELP CREATING NEW GROUP FILTER

HELP CREATING NEW GROUP FILTER

kkntd123
Participant Participant
302 Views
4 Replies
Message 1 of 5

HELP CREATING NEW GROUP FILTER

kkntd123
Participant
Participant

I want to create a new group filter, called "BD", and store the following layers, I'm new to this and I couldn't create that filter, nor put the layers below, help :(, I leave my code for the layers that I want add new group filter called "BD"

 

(defun c:BDCAP()
(command "_-layer" "_m" " - BD PRE LOSA MACIZA" "_C" "red" "" "_l" "continuous" "" "_LW" "0.40" "" "" "")

(command "_-layer" "_m" " - BD PRE LOSA ALIGERADA 17" "_C" "magenta" "" "_l" "continuous" "" "_LW" "0.40" "" "" "")

(command "_-layer" "_m" " - BD PRE LOSA ALIGERADA 17 - 2 SENT" "_C" "221" "" "_l" "continuous" "" "_LW" "0.40" "" "" "")

(command "_-layer" "_m" " - BD PRE LOSA ALIGERADA 20" "_C" "blue" "" "_l" "continuous" "" "_LW" "0.40" "" "" "")

(command "_-layer" "_m" " - BD PRE LOSA ALIGERADA 20 - 2 SENT" "_C" "150" "" "_l" "continuous" "" "_LW" "0.40" "" "" "")

;(command "_-layer" "_m" " - BD PRE LOSA ALIGERADA 25 " "_C" "green" "" "_l" "continuous" "" "_LW" "0.40" "" "" "")

(command "_-layer" "_m" " - BD PRE LOSA ALIGERADA 25 - 2 SENT" "_C" "88" "" "_l" "continuous" "" "_LW" "0.40" "" "" "")

(command "_-layer" "_m" " - BD PRE LOSA ALIGERADA 30" "_C" "9" "" "_l" "continuous" "" "_LW" "0.40" "" "" "")

(command "_-layer" "_m" " - BD PRE LOSA ALIGERADA 30 - 2 SENT" "_C" "8" "" "_l" "continuous" "" "_LW" "0.40" "" "" "")

(command "_-layer" "_m" " - BD PRE LOSA MACIZA 15" "_C" "31" "" "_l" "continuous" "" "_LW" "0.40" "" "" "")

(command "_-layer" "_m" " - BD PRE LOSA MACIZA 12" "_C" "51" "" "_l" "continuous" "" "_LW" "0.40" "" "" "")

(command "_-layer" "_m" "-BD MARCO " "_C" "WHITE" "" "_l" "continuous" "" "_LW" "0.15" "" "" "")


)

0 Likes
303 Views
4 Replies
Replies (4)
Message 2 of 5

Sea-Haven
Mentor
Mentor

You have 3 "" "" "" at end only need 2 "" "")

You can just run -layer till end if you want no need to stop and start change "" "" "") to "") remove (command "-layer"

 

For me I would use a list and a loop to make layers the list ((" - BD PRE LOSA MACIZA" 1  "continuous" 0.40)(next layer.

 

(foreach lay laylst
(command "_-layer" "_m" (nth 0 lay) "_C" (nth 1 lay) "" "_l" (nth 2 lay) "" "_LW" (nth 3 lay) "" "")
)

 

0 Likes
Message 3 of 5

ВeekeeCZ
Consultant
Consultant

List all your layers. 

 

(command "_.-layer" "_filter" "_new" "_group" "All" " - BD PRE LOSA MACIZA, - BD PRE LOSA ALIGERADA 17, - BD PRE LOSA ALIGERADA 17 - 2 SENT" "BD" "")

0 Likes
Message 4 of 5

kkntd123
Participant
Participant
Command:
Error: malformed list on input

😞
0 Likes
Message 5 of 5

kkntd123
Participant
Participant
i was wirking using "" "" "" and no problem, i changed but i couldt have solution 😞
0 Likes