Hello Henry,
We appreciate you bringing this to our attention. We will need to update the online documentation to make this clearer.
When searching Strings we need to enclose the string portion with single quotes.
For the drawing name example:
(setq test (esri_featurelayer_select "STREETLIGHTS" "" (list (cons "ATTRIBUTEQUERY" "dwgname = 'Streetlight_Detail_CLEAN.dwg'"))))
For the block name example:
(setq test (esri_featurelayer_select "streetlights" "" (list (cons "ATTRIBUTEQUERY" "blockname = 'AR.121'"))))
The objectID works as is because this is number based. I have a field for a pole diameter and it works the same:
(setq myblock (esri_featurelayer_select "streetlights" "" (list (cons "ATTRIBUTEQUERY" "PoleDiameter = 50"))))
Thank you for using ArcGIS for AutoCAD!