Export imported dwg file as dxf while storing the blocks attributes

Export imported dwg file as dxf while storing the blocks attributes

MiguelGT17
Advocate Advocate
427 Views
2 Replies
Message 1 of 3

Export imported dwg file as dxf while storing the blocks attributes

MiguelGT17
Advocate
Advocate

Hi community,

we have dwg files imported in revit that has blocks with attributes

MiguelGT17_0-1674786080926.png

in order to read this information we thought it was convenient to read it from a dxf format so we are exported the 3D view as a dxf format. However, the file is not mapping the attributes for the insert objects (block references). 

 

Is there a way to get the dwg files imported in revit and export them in a dxf format (not the active view but the purely dwg file)? The reason is that we can read the attributes only if we use original dwg file in a dxf format

 

All the best

Accepted solutions (1)
428 Views
2 Replies
Replies (2)
Message 2 of 3

caroline.gitonga
Autodesk
Autodesk
Accepted solution

Hi @MiguelGT17,

From this thread https://forums.autodesk.com/t5/revit-api-forum/get-to-text-objects-within-imported-dwg/m-p/5344375#U...,
There seems to be no direct possible way to access text entities or attributes contained in an imported DWG which is not exploded.
Possible workaround would be:
Explode the DWG to create TextNote elements
Export the DWG to DXF and parse the resulting text file for the required data
Use the AutoCAD.NET API to read directly from the DWG

Kindly, give the above sort of a workaround a try and see if you could achieve your wish.

Carol Gitonga, Developer Advocacy and Support, ADN Open
Message 3 of 3

MiguelGT17
Advocate
Advocate

Thanks much for the clarifications. We'll request for the dwg or even a dxf format to parse the data.

 

All the best,

Miguel G.

0 Likes