AutoCAD 2010/2011/2012

AutoCAD 2010/2011/2012

Posts: 4
Registered: ‎07-30-2012
Message 1 of 1 (172 Views)

DataExtrac​tion issue when extracting user block attribute data.

172 Views, 0 Replies
10-01-2012 11:23 AM

Hello, I've already posted this question to:

Visual LISP, AutoLISP and General Customization 


but so far I've received no reply, so I am posting here since this involves base AutoCAD 2011 functionality:




My company is finally getting around to upgrading to AutoCAD 2011 (from 2005). We use custom VB code to extract data from specific attributed blocks from dwgs. I started investigating using the DataExtraction API for .NET and I seem to have found a limitation to the API as well as the dataextraction built in AutoCAD functionality.

Here is the issue:

If I create an mleader style with "Mleader type' 'Content' type as  'Block' and select the 'Source block' as the attributed block I was to embed in the mleader, then the dataextraction command can successfully extract the attribute data I am looking for.

If however I do not create a new mleader style and use the default 'Standard' mleader style (which has its 'Mleader type' 'Content' type as 'Mtext'  - the default) is the current one in the dwg. Then if I type in at the command line 'mleader' and change the content type to 'Block'  and provide the attributed block name here, the dataextraction command does not find these blocks. It appears if you override the Mleader style value at the command line the dataextraction API does not recognize this mleader as having an embedded attributed block.

This is a serious problem since there is no way to prevent a user from manually setting the Content type and creating an mleader that looks and behaves exactly like all other mleaders that have not overridden the mleader style. There is a real danger of missing extraction of some data.

Has anyone out there notice this and more importantly, have a solution or point me to the error of my ways?


I've already attached a dwg and a dxe file here: 


but I believe they are not necessary to reproduce the issue if the steps above are followed.




Stephen Schneider


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.