Hide Table of Contents
CreateRegionHatch Method (ISketchManager)

Creates an area hatch/fill region hatch using a closed sketch profile.

.NET Syntax

Visual Basic (Declaration) 
Function CreateRegionHatch( _
   ByVal X As Double, _
   ByVal Y As Double, _
   ByVal Z As Double, _
   ByVal Angle As Double, _
   ByVal Scale As Double, _
   ByVal Color As Integer, _
   ByVal Hatchname As String, _
   ByVal Layername As String _
) As SketchHatch
Visual Basic (Usage) 
Dim instance As ISketchManager
Dim X As Double
Dim Y As Double
Dim Z As Double
Dim Angle As Double
Dim Scale As Double
Dim Color As Integer
Dim Hatchname As String
Dim Layername As String
Dim value As SketchHatch
 
value = instance.CreateRegionHatch(X, Y, Z, Angle, Scale, Color, Hatchname, Layername)
C# 
SketchHatch CreateRegionHatch( 
   double X,
   double Y,
   double Z,
   double Angle,
   double Scale,
   int Color,
   string Hatchname,
   string Layername
)
C++/CLI 
SketchHatch^ CreateRegionHatch( 
&   double X,
&   double Y,
&   double Z,
&   double Angle,
&   double Scale,
&   int Color,
&   String^ Hatchname,
&   String^ Layername
) 

Parameters

X
X coordinate anywhere within the closed sketch profile
Y
Y coordinate anywhere within the closed sketch profile
Z
Z coordinate anywhere within the closed sketch profile
Angle
Angle of the hatch if the hatch is not solid
Scale
Scale factor for the hatch if the hatch is not solid
Color
COLORREF value describing the color used for the hatch
Hatchname
Type or name of the hatch from the Sldwks.ptn file
Layername
Layer name for the hatch if a drawing document

Return Value

Sketch hatch

Remarks

This method creates a single area hatch/fill region hatch.. All three point coordinates are important. This point is compared to all sketch contours to determine one unique external sketch region that contains the point.
 

See Also

Availability

SolidWorks 2008 FCS, Revision Number 16.0


Provide feedback on this topic

SOLIDWORKS welcomes your feedback concerning the presentation, accuracy, and thoroughness of the documentation. Use the form below to send your comments and suggestions about this topic directly to our documentation team. The documentation team cannot answer technical support questions. Click here for information about technical support.

* Required

 
*Email:  
Subject:   Feedback on Help Topics
Page:   CreateRegionHatch Method (ISketchManager)
*Comment:  
*   I acknowledge I have read and I hereby accept the privacy policy under which my Personal Data will be used by Dassault Systèmes

Print Topic

Select the scope of content to print:



x

We have detected you are using a browser version older than Internet Explorer 7. For optimized display, we suggest upgrading your browser to Internet Explorer 7 or newer.

 Never show this message again
x

Web Help Content Version: API Help (English only) 2012 SP05

To disable Web help from within SOLIDWORKS and use local help instead, click Help > Use SOLIDWORKS Web Help.

To report problems encountered with the Web help interface and search, contact your local support representative. To provide feedback on individual help topics, use the “Feedback on this topic” link on the individual topic page.