Hide Table of Contents
CreateCircle Method (ISketchManager)

Creates a circle based on a center point and a point on the circle.

.NET Syntax

Visual Basic (Declaration) 
Function CreateCircle( _
   ByVal XC As Double, _
   ByVal YC As Double, _
   ByVal Zc As Double, _
   ByVal Xp As Double, _
   ByVal Yp As Double, _
   ByVal Zp As Double _
) As SketchSegment
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 value As SketchSegment
 
value = instance.CreateCircle(XC, YC, Zc, Xp, Yp, Zp)
C# 
SketchSegment CreateCircle( 
   double XC,
   double YC,
   double Zc,
   double Xp,
   double Yp,
   double Zp
)
C++/CLI 
SketchSegment^ CreateCircle( 
&   double XC,
&   double YC,
&   double Zc,
&   double Xp,
&   double Yp,
&   double Zp
) 

Parameters

XC
X coordinate of the circle center point, in meters
YC

Y coordinate of the circle center point, in meters

Zc
Z coordinate of the circle center point, in meters
Xp
X coordinate of the point on the circle, in meters
Yp
Y coordinate of the point on the circle, in meters
Zp
Z coordinate of the point on the circle, in meters

Return Value

Sketch segment for the circle

Example

Remarks

This method creates a full circle in the active 2D sketch. If a sketch is not active, then a new sketch is created. You can check for an active sketch using ISketchManager::ActiveSketch.

 

ISketchManager::AddToDB and ISketchManager::DisplayWhenAdded increase performance during entity creation by adding entities directly to the SolidWorks database.

 

ISketchManager::AddToDB also avoids some of the peculiarities involved with creating entities via the user interface, such as inferencing, automatic relations, and snapping to the grid. Adding entities directly to the database also significantly increases the performance of this method. When you are done creating entities, it is important to ISketchManager::AddToDB(False), to restore SolidWorks to its normal operating mode.

 

This method also works with ISketchManager::DisplayWhenAdded. If you have called ISketchManager::AddToDB(True), additional performance can be gained by calling ISketchManager::DisplayWhenAdded(False) to disable immediate display of entities as they are added to the database. When you are done creating all of your sketch entities, you must redraw your document window (see IModelView::GraphicsRedraw or IModelView::IGraphicsRedraw) to see the entities you added. You should also restore the original display settings by calling ISketchManager::DisplayWhenAdded(True).

 

To create a circle using a center point and radius, see ISketchManager::CreateCircleByRadius. To create a partial arc, see ISketchManager::CreateArc.

 

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:   CreateCircle 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) 2010 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.