Hi Jason,
Perhaps a start with this:
Load "Sel_By_OD.lsp" ; run it and select ONE object for model (for you select polyline)
In dialog box, choice for "Données d'objets" the field "lot", for "Valeur du champ" keep the emptie field (if "lot" have not value: i make this for testing) and select "=" for logic operator.
Then routine grip all objects with corresponding at filter.
You can copy-paste in command line this code for put increment value in field "lot"
Code:
((lambda ( / js n ent)
(setq js (ssget "_I"))
(cond
(js
(repeat (setq n (sslength js))
(setq ent (ssname js (setq n (1- n))))
(ade_odsetfield ent "test_project" "lot" 0 (itoa (1+ n)))
)
)
)
))