magh
magh

Reputation: 679

How to print DWG file from Java

How do I print a .dwg file from Java?

Is there is an API for accessing and passing the DWG AutoCAD file to the printer for printing?

Upvotes: 4

Views: 5021

Answers (2)

stacker
stacker

Reputation: 68942

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.

Upvotes: 2

Kaleb Pederson
Kaleb Pederson

Reputation: 46469

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.

Upvotes: 0

Related Questions