READ.ME file for Polyhtch.mac. MACRO FEATURES: * What ME10 sorely lacks - hatching that uses patterns, not just straight lines. It allows you to fill an area of hatching with a pattern of shapes (e.g. concrete) rather than the standard straight lines. * A pop up menu system for warning messages and yes/no prompts. This is part of a larger system that pops up menus where the user picks on screen, moving them within the ME10 window if they overlap the edge. Included in this macro is only the bit required for the prompts for this macro. To define a new hatch pattern, just do a drawing in ME10, using lines. The macro only handles straight lines but curves can be approximated using these. NOTE. The more complicated the drawing, the longer the hatch macro will take to process. To use the macro, just type at the command prompt: ph_draw and then the name of the ME10 drawing that is to be used as hatching. There are 2 example hatch drawings supplied 'cc_logo1.drg' (CoCreate Americas User Group logo) 'ph_conc.drg' (concrete hatching) So to use these you would type at the command prompt: ph_draw 'cc_logo1.drg' or ph_draw 'ph_conc.drg' The macro does the following: 1. Prompts the user to define a polygon area to be hatched (you are asked to pick the first point, and a line is drawn to the next and so on until you close the polygon). 2. Initiates a subpart 'temp_hatch', loads the hatch drawing repeatedly into this subpart until it fills a rectangle over the polygon. 3. Smashes the hatch drawings into 'temp_hatch' 4. Splits all lines in 'temp_hatch' that cross the boundaries of the polygon 5. Deletes all lines that lie outside the polygon Problems: * Despite the macro splitting lines at the edges of the polygon, it still occasionally deletes those portions of lines left inside the polygon. * The macro has to do a lot of calculation and will get slow if your hatch drawing is over complicated or you try to hatch too large an area.