PDA

View Full Version : Add HATCH to for entities made up of POLYLINE



dhiraj.motghare
2010-02-10, 11:59 AM
Hi all,

We have a problem statement to highlight a room (occupied by an employee) on the floor plan made up in AutoCAD drawing (.DWG).
We have to do it in a web application which is developed in J2EE (Java, Servlets and JSPs)

To highlight the room, we are doing the following process:

1) Converting the .DWG file to .DXF file (with third party tool -> exe)
2) Parsing the file for the room definition (Written in Java Code)
3) Modifying the DXF file with HATCHING code (Adding new layer, adding HATCH with coordinates scanned from the room) (Written in Java)
4) Converting the modified file to .DWF format to display that with a DWF viewer embedded in a web page. (with third party tool -> exe)

The process is working fine with rooms made up of LWPOLYLINE, but it is not working with rooms made up of POLYLINE and VERTEX Entities. We have tried various approaches to HATCH the location, but the DXF file simply not showing it up.

We have also verified that the layer on which the HATCH is being added should be ON. The layer is on but the HATCH is still not visible.

Can someone help us in identifying the step by step process of adding a HATCH for rooms made up of POLYLINE and VERTEX entities?

Question 2: Is there a way to conver POLYLINE Entities to LWPOLYLINE entities? IF so we can convert all the POLYLINES entities to LWPOLYLINE so that the code should work.

You can mail me on dhiraj.motgahre@gmail.com for any other details needed.

Any type of help/guidance is highly appreciated and will be of great help to us.

Thanks in advance.
Dhiraj