Java - DXF Export - How to create layer

This forum is for general questions, comments and discussions on the CADSoftTools products.

Moderators: SDS, support, admin

Post Reply
cmargulhano
Posts: 1
Joined: 19 May 2007, 00:25
Location: Brazil

Java - DXF Export - How to create layer

Post by cmargulhano » 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

support
Posts: 3253
Joined: 30 Mar 2005, 11:36
Contact:

Post by support » 29 May 2007, 18:17

Dear Claudio,

We have sent you an e-mail on March, 22th. But there is no answer till now.

Can you please answer the following questions:
<ul><li>How do you use our library?</li>
<li>How old is DXF Export Java that you use (date of ZIP file)?</li>
<li>How do you use *.class files in your project? Can you give us an example?</li>
<li>Can you please send us your ready to compile project with our library for we could examine it?</li></ul>
Thank you,
Sergey.

Please post questions to the forum or write to support@cadsofttools.com

Post Reply