Skip to main content
Hatches of AutoCAD are converted to polygons improperly,

 

 

I got 512 hatches and wanted to convert them to polygons (ESRI feature class).

 

 

 

 

 

 

 

 

 

They are converted successfully but some of the polygons that appear in the feature class are not in the original AutoCAD file! From where did these polygons come?

 

 

 

 

 

 

 

 

what might be the issue here?

 

 

The CAD file is stored in the link below

 

http://www.mediafire.com/download/d42gtb76zf9b14u/Halhul__hebron_01_Hatch.dwg

 

 

 

 

thank you

 

 

best

 

 

Jamal
Hi,

 

 

expose autocad entitiy type for hatches and filter those out before you write them to shapefile.

 

 

Areafiltering does not limit itself to hatches, you have to make it do so.

 

 

(looks like text boxes or something, withc can aslo be areas.

 

 

(havnt tested it i must admit, but looks like it.)

 

 

Gio
Is the linked file the outputfile or the inputfile?

 

 

Because the objects are actualy in this dwg u posted.

 

The only discernable data on these objets are autocad_color, autocad_entity_handle and autocad_hatch_pixel_size.

 

I guess u have to filter those out before u output it to a shapefile.

 

I suggest using the first 2 attributes (if just 1 is not unique)

 

 

Gio

 

 


Thank you very much Gio for the help.

 

 

The original input CAD file contains ONLY 521 hatches (it is attached on my previous post).

 

 

 

 

The hatches of AutoCAD are translated to polygons (Areas). The issue here is that some of the produced polygons are not originally on the CAD file.

 

 

 

 

 

Why the 521 hatches are not precisely converted to polygons as they are in the CAD file? From where did the polygons below come?

 

 

 

 

 

 

 

 


Hi Jamal,

 

 

I did download the file u linked, and the objects are in the autocad file.

 

I opend the file in AutocadMap3d and they are in layer theLanduse_UrbanMasterPlan_HatchType_Design_Compulsory

 

 

If u use data inspector on the autocad file u can see the obejcts, so they are in your atocad file.

 

 

I seem not able to expose them in Autocad...
Hi Jamal,

 

 

a way to remove those items in your autocad file.

 

 

if u use quickselect in properties tab, u can choose obejcts by color.

 

The offending objects have color 143.

 

U need to change the colors of the area u can see, to a temporary other color.

 

This leaves only the offending objects.

 

Now, if u selct by color again and delete the objects are gone.

 

I did and it works.

 

 

 

I could not remove them by purge. Aparently you can only remove those by scripting, unless you do the workaround i just explained.

 

 

 

 

Set the orangish to another color then reselct 143 and erase.

 

If you the check in inspector the squares are gone.

 

 

Gio
Thank you very much Gio for the prompt help.

 

 

 

Sorry but u couldn’t catch the offending objects. Visually, they are not appearing in the CAD file.

 

 

 

 

What do you mean by “U need to change the colors of the area u can see”? which area you mean? Could you please provide a screen shots that shows the offending objects?
U cannot see the objects in Autocad, because associations or something have been removed/destroyed.

 

U can use the FME data-inspector to open the dwg.

 

This shows the objects are in your dwg. You can see it has colornumber 143.

 

 

In Autocad you need to open the propertieswindow. Right upper corner is the quick-select button.

 

Use select by customcolor, you can enter colornumbers to select.

 

If u select color 143 u select some landuse objects as wel as the 6 invissible objects.

 

U want to keep the landuse objects with color 143. Isolate these objects and give them a temporary different color, but only the landuse objects. You can isolate them by using a filter; hatch and color 143.

 

If you do this correct, the 6 invissible objects are the only ones with color 143.

 

Use quick select to select color143 and then delete.

 

The objects will be gone form your autocad file.
If you dont wnt to fiddle in Autocad, then use fme:

 

 

If u want to remove them using FME, then as they are rectangles it is very easy.

 

Just do a boundingbox (they are horizontal so you don't even need an oriented boundingboxreplacer).

 

Use a spatialrelator to compare the boundingboxes, with the inputfeatures.

 

When thay are equal you have your offending object.
Oh, btw. In the screen i posted, the blue color is the selected 143. The 6 objects are invisible but they are selected. The visible blue objects need to get a temporary other color.

 

If you intent to solve it in autocad that is..

 

 

 

cheers!
Sorry but I couldn’t neither catch the offending objects on the AutoCAD nor I could delete them from the FME

 

 

 

Could you please attach a screenshot that shows the selection of the offending objects in the AutoCAD?

 

 

Could you please elaborate a bit more regarding how can I delete the offending objects from the FME?
You cannot see the objects in autocad. (the somehow lost their reference)

 

But you can select them by color. U cannot see the selection of the objects either.

 

You can see other objects with the same color selected. You want to keep the latter.

 

Thats why you need tho change the color of the objects you see.

 

 

Then you can select the invisible objects by color.

 

 

I'll make an fme example to select the rectangles tomorrow.

 

i also will try and make autocad example, if my work permits.

 

 

 

Greetings

 

Gio
Thanks GIO.

 

 

Then how can I delete these offending objects using the “FME Data Inspector” software?

 

 


Hi Jamal,

 

 

I puit this workspace on  Chatter

 

 


Very much appreciated Gio. This is quite helpful.

 

 

Best

 

 

Jamal

Reply