.NET

.NET

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

how to determine whether the layer of a drawing is empty

132 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: 693
Registered: ‎03-21-2011
Message 2 of 2 (92 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

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.
Need installation help?

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