DCL Set Text Key From List Selection

DCL Set Text Key From List Selection

DGCSCAD
Collaborator Collaborator
242 Views
2 Replies
Message 1 of 3

DCL Set Text Key From List Selection

DGCSCAD
Collaborator
Collaborator

I'm looking for the syntax that will set a text key based on a selection from a list box.

 

I currently have the list setting a slide tile:

(slide "sld" (strcat path (nth (atoi (set_tile "lst" "0")) lst) ".sld"))
(action_tile "lst" "(slide \"sld\" (strcat path (nth (atoi $value) lst) \".sld\"))")

 

...and would like to add an action that sets a text key, something like:

(if (= (nth (atoi $value) lst) "DP16") (set_tile "dcl_customer" "Test"))

 

I feel like I'm close, but I'm getting a 'too may arguments' error.

AutoCad 2018 (full)
Win 11 Pro
0 Likes
Accepted solutions (1)
243 Views
2 Replies
Replies (2)
Message 2 of 3

komondormrex
Mentor
Mentor
Accepted solution

if it's within action_tile change quotes to \quotes. "->\"

0 Likes
Message 3 of 3

DGCSCAD
Collaborator
Collaborator

That was it. Thanks!

AutoCad 2018 (full)
Win 11 Pro
0 Likes