Hi @3dwannab
It's simply a property story filtered into the selections.
We have the expressions:
'((0. "LWPOLYLINE") (67. 0) (8. "TS_wall"))
in the code.
Which filters the "LWPOLYLINE" objects located in the "Model" space and in the "TS_wall" layer
In your drawing you do not have the "TS_wall" layer, so no selection.
What to do?
Either create the layer in the drawing and change the layer objects...The code will work.
Either modify the filter in the code for your drawing (twice in the code)
'((0. "LWPOLYLINE") (67. 0) (8. "0"))
And more risky (risk of selection on all layers), delete the layer name property.
'((0 . "LWPOLYLINE") (67 . 0))