I have exported a DXF file from Mathematica and I am trying to import it in AutoCAD.
The file that has been exported is output of a command like the following
g = Graph[vl, edges,
VertexCoordinates -> {v_ :> ({x[v], y[v]} /. solution)},
EdgeWeight -> ew, VertexLabels -> Placed["Name", Center],
EdgeLabels -> {e_ :> Placed["EdgeWeight", .3]}, VertexSize -> .7,
VertexStyle -> Red]
More details can be found in my previous post here
The following graph was exported from Mathematica using the command : Export["file.dxf", Show[Graph3D[g]]]
The file obtained after export is shared here.
But when I try to open the file in AutoCAD, the drawing window in AutoCAD shuts.
Could someone look into this?
If this doesn't work, can I export in other formats?
EDIT: The solution suggested below doesn't work when the output is obtained as a result of the following command
g3d = Graph3D[vl, edges,
VertexCoordinates -> {v_ :> ({x[v], y[v], z[v]} /. solution3d)},
EdgeWeight -> ew, VertexLabels -> Placed["Name", Center],
EdgeLabels -> {e_ :> Placed["EdgeWeight", .5]}, VertexSize -> .3,
VertexStyle -> Red, ImageSize -> Large]
I think the problem here is solution3d already as x,y,z coordinates in it. When I export the output to dxf using
Export["file.dxf", Show[Graph3D[g3d]]]
the exported dxf can't be imported in AutoCAD.