Hide Table of Contents
CreateArc Method (ISketchManager)

Creates an arc based on a center point, a start point, an end point, and a direction.

.NET Syntax

Visual Basic (Declaration) 
Function CreateArc( _
   ByVal XC As System.Double, _
   ByVal YC As System.Double, _
   ByVal Zc As System.Double, _
   ByVal X1 As System.Double, _
   ByVal Y1 As System.Double, _
   ByVal Z1 As System.Double, _
   ByVal X2 As System.Double, _
   ByVal Y2 As System.Double, _
   ByVal Z2 As System.Double, _
   ByVal Direction As System.Short _
) As SketchSegment
Visual Basic (Usage) 
Dim instance As ISketchManager
Dim XC As System.Double
Dim YC As System.Double
Dim Zc As System.Double
Dim X1 As System.Double
Dim Y1 As System.Double
Dim Z1 As System.Double
Dim X2 As System.Double
Dim Y2 As System.Double
Dim Z2 As System.Double
Dim Direction As System.Short
Dim value As SketchSegment
 
value = instance.CreateArc(XC, YC, Zc, X1, Y1, Z1, X2, Y2, Z2, Direction)
C# 
SketchSegment CreateArc( 
   System.double XC,
   System.double YC,
   System.double Zc,
   System.double X1,
   System.double Y1,
   System.double Z1,
   System.double X2,
   System.double Y2,
   System.double Z2,
   System.short Direction
)
C++/CLI 
SketchSegment^ CreateArc( 
&   System.double XC,
&   System.double YC,
&   System.double Zc,
&   System.double X1,
&   System.double Y1,
&   System.double Z1,
&   System.double X2,
&   System.double Y2,
&   System.double Z2,
&   System.short Direction
) 

Parameters

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

Z coordinate of the circle center point in meters

X1
X coordinate of the start point of the arc in meters
Y1
coordinate of the start point of the arc in meters
Z1
Z coordinate of the start point of the arc in meters
X2

X coordinate of the end point of the arc in meters

Y2

Y coordinate of the end point of the arc in meters

Z2
coordinate of the end point of the arc in meters
Direction
  • +1 : Go from the start point to the end point in a counter-clockwise direction

  • -1 : Go from the start point to the end point in a clockwise direction

  • Return Value

    ISketchArc

    Example

    Remarks

    This method creates a partial arc 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 increases the performance of this API. When you are done creating entities, it is important to call 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 that you added. You should also restore the original display settings by calling ISketchManager::DisplayWhenAdded(True).

     

    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:   CreateArc 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) 2016 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.