tags:

views:

202

answers:

2

How to print .dwg file from java. there is any api for accessing and passing to the printer for print the autocad file dwg.

A: 

You'll to find an API that allows you to read an AutoCAD dwg file. I haven't seen any Java ones, but you might be able to start from the .NET one following:

http://code.google.com/p/tf-net/wiki/DwgReaderWriter

Once you've found an API, then it might be as simple as printing whatever you render.

Kaleb Pederson
+1  A: 

Dwglib is a Java library for accesing DWG files. It is essentially a port from the Pythoncad DWG reading classes by Art Haas. jdwglib manages complex DWG objects allowing users to employ these objects directly in their applications.

stacker