AboutScott Cook Expertise I`ve been using AutoCAD since 1987 and programming AutoLISP nearly as long. I can answer questions about programming AutoCAD (except ARX) and production enhancement techniques. I cannot answer questions about AutoCAD crashes or DWG corruption. AutoCAD PROGRAMMING (menus, lisp) related questions only!
Experience Since 1987. Author of Plot2000 software for for AutoCAD, http://www.plot2000.com.
PROGRAMMING QUESTIONS ONLY PLEASE. Questions that are NOT related to programming or AutoCAD customization (menus and lisp only please) are outside the scope of my volunteer services and will NOT BE ANSWERED.
Question Is there a way to get a listing of all the entities associated with a xref which are turned on and are lines.
Answer yes but it's a very complex operation. you have to iterate through the layer table to determine which layers are turned on, then iterate thru the entities in the block table for the xref in question, looking for the layers and entity types you are interested in. not for the faint of heart.
as far as how, look at the lisp function reference for tblsearch and tblnext, entget and entnext, and the DXF code reference.
You'll need to understand how the data is laid out in the block table to get to it, and that mirrors the dxf code reference guide.