New Member
Posts: 1
Registered: ‎11-03-2013
Message 1 of 2 (138 Views)

how to determine whether the layer of a drawing is empty

138 Views, 1 Replies
11-06-2013 04:39 AM

Hi All,


I want to check for the emptiness of  a drawing file. whether the model space or layout is empty. is there any way to find it out. if possible please reply as soon as possible.





ADN Support Specialist
Posts: 749
Registered: ‎03-21-2011
Message 2 of 2 (98 Views)

Re: how to determine whether the layer of a drawing is empty

11-08-2013 04:29 AM in reply to: Jinosh

Hi Jinosh,


Model space and layouts are BlockTable records. You can get an enumerator to it and it is then simple to know if it is empty.


If you are new to AutoCAD programming, the snoop tool like ArxDbg should be helpful in understanding the AutoCAD database layout. 



Developer Technical Services
Autodesk Developer Network

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.