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