Select all lines in DWG layer

Hi, I wish to draw a subregion in a toposurface based on a number of complex lines on a dwg layer. Is it possible to use dynamo to select all lines on a DWG layer while in sketch mode?

Apologies I have very little experience of Dynamo

This may help you out some: Create Subregions from CAD file

Note you want to run this outside of a transaction so don’t start the subregion command.