Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using a HATCH in a DXF block to do a Polygon Fill

Status
Not open for further replies.

JimMont

Electrical
Joined
Feb 7, 2002
Messages
2
Location
US

OK, here's my problem.

I need to do a simple polygon "fill" in a DXF file. The only DXF object that I can find that will take a "fill" is a HATCH. I cannot seem to get the HATCH object to work in my DXF file. I am using closed Polylines with a set of vertex points. These polylines are all in a block structure. I substitute the HATCH command in the place of the Polyline since it has it's own set of vertex points. When I implement the HATCH command I get the following errors:

"Undefined group code 10 for object on line 10520.
Invalid or incomplete DXF input -- drawing discarded."

Group 10 is an obvious requirement of HATCH. this makes me think that perhaps there is a DXF-AC version mismatch.

any help would really be appreciated.

thanks in advance.

jimMont
 
you might try saving the file as dwg file, perform the hatch and, then use dxfout to recreate the dxf file.
Make sure when you perform the hatch that you are zoomed out enough to see the entire area you are hatching. Use pic points and, pic inside the boundry area, this should do the trick.
LOL
 
thanks.

I already tried this and cut-n-paste the hatch section from the DXFOUT DXF file to my DXF and I get the error I mentioned above. an error on the first Group 10 after the HATCH. which is strange to me - because a Group 10 is required in a HATCH object.

jm
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top