.NET

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

how to determine whether the layer of a drawing is empty

137 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: 737
Registered: ‎03-21-2011
Message 2 of 2 (97 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

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Are You Going To Be @ AU 2014? Feel free to drop by our AU topic post and share your plans, plug a class that you're teaching, or simply check out who else from the community might be in attendance. Ohh and don't forgot to stop by the Autodesk Help | Learn | Collaborate booths in the Exhibit Hall and meet our community team if you get a chance!