Skip to main content
Solved

Writing Extended Entity data to DWG

  • February 23, 2021
  • 5 replies
  • 324 views

dbaldacchino1
Enthusiast
Forum|alt.badge.img+14

I am trying to write extended data attached to AutoCAD entities such as lines (DWG file format) and am not finding examples on how to do this. I'm not finding the documentation particularly helpful in this regard. Does anyone know how to do this? See image below, thanks.ExtendedEntityData

Best answer by andreaatsafe

Hi @dbaldacchino1​ ,

Assuming you're using the "Extended Entity Data" mode of the ACAD or RealDWG format, can you try using the command line prompt "XDLIST" and select and object, and expand the command prompt to see you extended entity data?

My understanding for extended entity data is this information is not easily visible for users in AutoCAD and is typically revealed with plugins in Autodesk - or by using the "XDLIST" command.

The information written as extended entity data, will not show up in the properties panel.

 

You may also want to consider using the AutoCAD Map 3D Object Data writer to write attributes as object data on entities, depending on if this works for you.

 

-Andrea

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

5 replies

drc43
Contributor
Forum|alt.badge.img+11
  • Contributor
  • 83 replies
  • February 23, 2021

I am not sure this is possible due to the constraints in AutoCAD. I think this is stored on AutoCAD tag attributes which is possible on blocks, but not on lines or areas. I have done this on a number of workspaces using points/blocks, but I was never able to get this to work for other geometry types. If anyone, can explain how, I'd be interested to hear as well.


dbaldacchino1
Enthusiast
Forum|alt.badge.img+14
  • Author
  • Enthusiast
  • 136 replies
  • February 23, 2021

I am not sure this is possible due to the constraints in AutoCAD. I think this is stored on AutoCAD tag attributes which is possible on blocks, but not on lines or areas. I have done this on a number of workspaces using points/blocks, but I was never able to get this to work for other geometry types. If anyone, can explain how, I'd be interested to hear as well.

It should be possible as far as I know: https://www.cadalyst.com/cad/autocad/extend-autocad-entity-data-4772#:~:text=This%20is%20based%20on%20the,and%20it%20is%20your%20data.


dbaldacchino1
Enthusiast
Forum|alt.badge.img+14
  • Author
  • Enthusiast
  • 136 replies
  • February 26, 2021

Does anyone know anything about this? There is a specific setting in the writer but not much in terms of documentation about what needs to happen in the data structure to actually make it happen.


andreaatsafe
Safer
Forum|alt.badge.img+14
  • Safer
  • 450 replies
  • Best Answer
  • March 4, 2021

Hi @dbaldacchino1​ ,

Assuming you're using the "Extended Entity Data" mode of the ACAD or RealDWG format, can you try using the command line prompt "XDLIST" and select and object, and expand the command prompt to see you extended entity data?

My understanding for extended entity data is this information is not easily visible for users in AutoCAD and is typically revealed with plugins in Autodesk - or by using the "XDLIST" command.

The information written as extended entity data, will not show up in the properties panel.

 

You may also want to consider using the AutoCAD Map 3D Object Data writer to write attributes as object data on entities, depending on if this works for you.

 

-Andrea


dbaldacchino1
Enthusiast
Forum|alt.badge.img+14
  • Author
  • Enthusiast
  • 136 replies
  • March 5, 2021

Hi @dbaldacchino1​ ,

Assuming you're using the "Extended Entity Data" mode of the ACAD or RealDWG format, can you try using the command line prompt "XDLIST" and select and object, and expand the command prompt to see you extended entity data?

My understanding for extended entity data is this information is not easily visible for users in AutoCAD and is typically revealed with plugins in Autodesk - or by using the "XDLIST" command.

The information written as extended entity data, will not show up in the properties panel.

 

You may also want to consider using the AutoCAD Map 3D Object Data writer to write attributes as object data on entities, depending on if this works for you.

 

-Andrea

Thanks @andreaatsafe​ , I do see the data with the XDLIST command, so thanks fort that tip. I was hoping this would show in the Extended Data tab of the Properties dialog but it doesn't, so you are correct (unfortunately!).

 

Looking at the AutoCad Map 3D writer, it doesn't seem to have an option for Extended Entity Data so I'm not sure this will be any more useful than the Autodesk AutoCAD RealDWG DWG/DXF writer, which seems to be more stable than the Autodesk AutoCAD DWG/DXF writer (had issues with the latter). At least for what I am currently doing. Thanks again.