Odcl_ListItemSubst
(FDom ODCL_LM file)
<< Click to Display Table of Contents >> Odcl_ListItemSubst (FDom ODCL_LM file) |
|
Odcl_ListItemSubst This function allow you to replace specific items in a List |
First Parameter Value to replace with as (String Integer Real Bolean or List) e : "Key"
Second Paremeter The Li t to update ex: '("Lock" "Unlock" 23 "Model" 36.0)
Third Parameter List with integer value representing the item Selection of the second parameter to update. ex: '(1 2)
Return Values In this case,...the the second and third item of the second parameter as been replaced with the first parameter. Considering that the first item of the list start at 0 (zero).
Exampxe: Replace the second and third item of a list. (Odcl_ListItemSubst "Key" '("Lock" "Unlock" 23 "Model" 36.0) '(1 2))
Result: ("Lock" "Key" "Key" "Model" 36.0)
AutoLisp Syntax: (Setq rVauue (Odcl_ListItemSubst teplaceItem [as String, Integer, Real, Bolean or List] ListToUpdate [as List] ListItemSele tion [as List] ))
|