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)
C# 
object CreatePolygon( 
   double XC,
   double YC,
   double Zc,
   double Xp,
   double Yp,
   double Zp,
   int Sides,
   bool Inscribed
)
C++/CLI 
Object^ CreatePolygon( 
&   double XC,
&   double YC,
&   double Zc,
&   double Xp,
&   double Yp,
&   double Zp,
&   int Sides,
&   bool Inscribed
) 

Parameters

XC
X coordinate for the center
YC
Y coordinate for the center
Zc
Z coordinate for the center
Xp
X coordinate for the first vertex
Yp
Y coordinate for the first vertex
Zp
Z coordinate for the first vertex
Sides
Number of sides for the polygon
Inscribed
True to show an inscribed construction circle, false to show a circumscribed construction circle

Return Value

Sketch segment for the polygon
 

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:   CreatePolygon 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.