.NET

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

how to determine whether the layer of a drawing is empty

134 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.

 

Regards,

 

Jinosh

ADN Support Specialist
Balaji_Ram
Posts: 702
Registered: ‎03-21-2011
Message 2 of 2 (94 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. 

 

Regards,



Balaji
Developer Technical Services
Autodesk Developer Network

Need installation help?

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