Text label extraction from DWG file

Text label extraction from DWG file

Anonymous
Not applicable
3,634 Views
4 Replies
Message 1 of 5

Text label extraction from DWG file

Anonymous
Not applicable

Hi everyone,

                      I want to extract all the text lables in the drawing avaliable as .dwg file using python and filter those text as per my wish and load to a .xls file.

 

0 Likes
Accepted solutions (1)
3,635 Views
4 Replies
Replies (4)
Message 2 of 5

Michiel.Valcke
Advisor
Advisor

Hi,

I think you can do what you want purely with AutoCAD functionality.

the commando _DATAEXTRACTION can do what you need and deliver it directly to an .xls file.

I hope this helps.

Message 3 of 5

Anonymous
Not applicable

Hi Michiel,

                  Thanks for replying , but data_extraction command will give only the entity tag name, but i actually want to extract the text labels in the diagram, not the entity name or number of blocks.

 

0 Likes
Message 4 of 5

Michiel.Valcke
Advisor
Advisor
Accepted solution

Hello,

Could you share an example .dwg? I'm not sure if I understood your original question correctly.

I thought that if you selected to extract the 'value' then you will get the actual contents of your labels. This should work for all kinds of text objects.

Message 5 of 5

Anonymous
Not applicable

Lemme check... i can't share .dwg file because it is confidential data. Let me try and get back to you later.

0 Likes