- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Denunciar
attext command does not work for blocks with no custom attribute definition
I would like to extract some default properties of the blocks I have on my drawing, such as block name `BL:NAME` and position on drawing `BL:X`, `BL:Y`. But I do not have any custom attributes defined on any of the blocks.
I would like to extract these properties into a csv file on Mac. On windows this can be done very easily by using the DATAEXTRACTION tool. But on Mac I followed the process described on https://knowledge.autodesk.com/support/autocad-for-mac/learn-explore/caas/CloudHelp/cloudhelp/2021/E... and tried using `-attext` command. However, this command simply does not do anything on drawings in which blocks have no custom attribute definition, even if the template file I use only asks for block name and position, which are the default properties that all block objects have. Is there a way to make it work? Only when I add a block and define a dummy attribute in it can I make the command work. But this is neither elegant nor practical.
- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Denunciar
Welcome to Autodesk Forums!
Hi @serhat.erdogan ,
The same way -ATTEXT command behaves in AutoCAD for Windows as it is designed specifically for extracting attributes. Extracting additional information such as the coordinates of the block insertion point is only an optional option.
I think it is possible to create AutoLISP routine to extract blocks data you need.
Something like this one:
Do you find the posts helpful? "LIKE" these posts!
Have your question been answered successfully? Click 'ACCEPT SOLUTION' button.
Maxim Kanaev
Architect
MARSS
Etiquette and Ground Rules of Autodesk Community