MESH entity in dxf form

MESH entity in dxf form

spagmess
Contributor Contributor
867 Views
1 Reply
Message 1 of 2

MESH entity in dxf form

spagmess
Contributor
Contributor

Re-posting here from the general Autocad forum...

 

I'm having a hell of a time with the dxf format for a MESH entity. I'm probably making a stupid mistake...

 

I have no problem generating a valid Polyface Mesh dxf entity that imports nicely into Autocad, but the limits of that entity are annoying, so I've tried to create the same geometry using MESH entities. But the dxf file refuses to import. It usually gets tripped up after the 100. "AcDbSubDMesh" line.

 

The error is something like "Undefined group code 71 for object on line 12."

 

I've gone as far as to export a dxf file of a single mesh from Autocad, copy and paste the entity data directly into a new dxf file, and try to re-import, and it doesn't take.

 

The exact same dxf codes work fine when creating the mesh using ENTMAKE.

 

What am I missing? Is the 330 code not optional for this entity in a dxf file?

0 Likes
868 Views
1 Reply
Reply (1)
Message 2 of 2

john.uhden
Mentor
Mentor

@spagmess 

I don't know about meshes, but the 330 code is usually for the owner and it's an entity name, which is always temporary, unless it appears as a handle.  But then it is unlikely that a handle in one drawing will point to the same type of owner in another drawing.  You might try leaving it out.  OR figure out what the owner is in the current drawing.  If it's Modelspace then you can substitute the name or handle of Modelspace in the target drawing.

John F. Uhden

0 Likes