Hide Table of Contents
CreatePolygon Method (ISketchManager)

Creates a polygon in the active sketch.

.NET Syntax

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

Parameters

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

Return Value

Array of sketch segments in the polygon

Example

 

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) 2013 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.