MATLAB Answers

0

how to convert the data in cell array to .dxf file .

Asked by jahanzaib ahmad on 30 Apr 2019
Latest activity Commented on by Adam Danz
on 1 May 2019
i have multiple polygons in cell array ( varriable attached and figure) .how these polygons can be converted into .dxf file for further use in autocad ?

  1 Comment

Sign in to comment.

1 Answer

Answer by jahanzaib ahmad on 1 May 2019
 Accepted Answer

FID = dxf_open('polygons.dxf');
FID = dxf_set(FID,'Color',[0 1 1]);
for i=1:length(BB)
a=BB{i};
X=a(:,1);
Y=a(:,2);
Z=zeros(length(X),1);
dxf_polyline(FID,X,Y,Z);
end
dxf_close(FID);

  1 Comment

i did it ..just by putting it in loop ..

Sign in to comment.