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

how to determine whether the layer of a drawing is empty

135 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: 715
Registered: ‎03-21-2011
Message 2 of 2 (95 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
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.