Hide Table of Contents
CreatePolygon Method (ISketchManager)

Creates a polygon in the active sketch.

.NET Syntax

Visual Basic (Declaration) 
Function CreatePolygon( _
   ByVal XC As Double, _
   ByVal YC As Double, _
   ByVal Zc As Double, _
   ByVal Xp As Double, _
   ByVal Yp As Double, _
   ByVal Zp As Double, _
   ByVal Sides As Integer, _
   ByVal Inscribed As Boolean _
) As Object
Visual Basic (Usage) 
Dim instance As ISketchManager
Dim XC As Double
Dim YC As Double
Dim Zc As Double
Dim Xp As Double
Dim Yp As Double
Dim Zp As Double
Dim Sides As Integer
Dim Inscribed As Boolean
Dim value As Object
value = instance.CreatePolygon(XC, YC, Zc, Xp, Yp, Zp, Sides, Inscribed)
object CreatePolygon( 
   double XC,
   double YC,
   double Zc,
   double Xp,
   double Yp,
   double Zp,
   int Sides,
   bool Inscribed
Object^ CreatePolygon( 
&   double XC,
&   double YC,
&   double Zc,
&   double Xp,
&   double Yp,
&   double Zp,
&   int Sides,
&   bool Inscribed


X coordinate for the center
Y coordinate for the center
Z coordinate for the center
X coordinate for the first vertex
Y coordinate for the first vertex
Z coordinate for the first vertex
Number of sides for the polygon
True to show an inscribed construction circle, false to show a circumscribed construction circle

Return Value

Sketch segment for the polygon

See Also


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

Subject:   Feedback on Help Topics
Page:   CreatePolygon Method (ISketchManager)
*   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:


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

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.