Autocad DXF File Viewer

14 views
Skip to first unread message

rsksmiles

unread,
Nov 21, 2011, 4:20:42 AM11/21/11
to Piccolo2D Developers
Hello all,

I am in the process of developing an application to view and
eventually edit autocad DXF files.

A first version has been posted on my web site and is available for
download along with a sample dxf file.

http://nofrillsjava.com/dr/?q=node/5

Any comments gratefully received.

Keep up the good work. Piccolo2D is a pleasure to develop with!

Robert

Michael Heuer

unread,
Nov 21, 2011, 11:27:07 AM11/21/11
to piccol...@googlegroups.com
Robert wrote:

Cool app, thanks for the note. Let us know if you would like a link
on the Piccolo2D applications page

http://piccolo2d.org/applications/index.html

For exporting to PDF, I assume you are using iText's PdfGraphics2D mechanism?

Document document = new Document(new Rectangle(150, 150));
PdfWriter writer = PdfWriter.getInstance(document, new
FileOutputStream(filename));
document.open();
PdfContentByte pdfCanvas = writer.getDirectContent();
Graphics2D g2 = pdfCanvas.createGraphics(150, 150);
PCanvas pCanvas = ...;
pCanvas.paint(g2);


I have an outstanding todo item regarding exporting that I need to get
around to soon

http://code.google.com/p/piccolo2d/issues/detail?id=223

michael

Robert Kovacs

unread,
Nov 21, 2011, 1:28:23 PM11/21/11
to piccol...@googlegroups.com
First off, thanks for your comments.

I originally wrote this app using jogl, but it was just too low level and when I prototyped it in piccolo2d, I just fell in love with the api. The ease of which I could export to PDF was a real winner for me. I addition is exported as scalable vector graphics which makes it zoomable in acrobat.

So in other words - yes I am using the code as you have described.

Yes please for the link on the applications page.

I take it the "I have an outstanding todo" is an invitation to help out?


Robert Kovacs

unread,
Nov 22, 2011, 5:20:39 AM11/22/11
to piccol...@googlegroups.com
Hi Michael

attached is a thumbnail to use on the applications page.

Many thanks

Robert
DxfViewerThumbnail.jpg
Reply all
Reply to author
Forward
0 new messages