« CADopia - Creating Splines | Main | CADopia - Creating Single-Line Text »

Thursday, September 27, 2007

CADopia - Adding Hatching

Hatching fills a specified area with lines, crosshatching, or other hatch patterns.

The first step in hatching an area is to create the Hatch object. Once this is done, you specify the hatch boundaries.

Creating a Hatch Object

To create a hatch object, use the AddHatch method.

AddHatch method

Creates a new hatch object and adds it to the drawing.

Syntax

objectVariable = object.AddHatch(PatternType, PatternName)

Where:

     objectVariable is a Hatch object;

     object is one of the ModelSpace or PaperSpace collection objects or a Block object;

     PatternType is a Long integer representing one of the following HatchType constants:

0     PreDefinedHatchPattern

1     UserDefinedHatchPattern

2     CustomDefinedHatchPattern

     PatternName is a String representing the name of the hatch pattern to be used.

Comments

Verify your Comment

Previewing your Comment

This is only a preview. Your comment has not yet been posted.

Working...
Your comment could not be posted. Error type:
Your comment has been posted. Post another comment

The letters and numbers you entered did not match the image. Please try again.

As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.

Having trouble reading this image? View an alternate.

Working...

Post a comment