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++/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