Java - DXF Export - How to create layer
Posted: 19 May 2007, 00:32
How to create layers and associate it with components like lines, polylines, text etc? I'm trying this code:
DXFLayer dxfLayerArea = new DXFLayer("polyline");
dxfLayerArea.setColor(1);
dxfExport.setCurrentLayer(dxfLayerArea);
.
.
.
DXFData dxfDataArea = new DXFData();
dxfDataArea.Points.add(new DXFPoint(x1, y1, 0.0F));
dxfDataArea.Points.add(new DXFPoint(x2, y2, 0.0F));
.
.
.
dxfExport.addPolyline(dxfDataArea);
I want to create others layers and separate the components, for example, line, polyline and texts in diferent layers.
Is it possible? Thank a lot.
Huges,
Clбudio
DXFLayer dxfLayerArea = new DXFLayer("polyline");
dxfLayerArea.setColor(1);
dxfExport.setCurrentLayer(dxfLayerArea);
.
.
.
DXFData dxfDataArea = new DXFData();
dxfDataArea.Points.add(new DXFPoint(x1, y1, 0.0F));
dxfDataArea.Points.add(new DXFPoint(x2, y2, 0.0F));
.
.
.
dxfExport.addPolyline(dxfDataArea);
I want to create others layers and separate the components, for example, line, polyline and texts in diferent layers.
Is it possible? Thank a lot.
Huges,
Clбudio