Hide Table of Contents
CreateConic Method (ISketchManager)

Creates a conic curve in the active sketch.

.NET Syntax

Visual Basic (Declaration) 
Function CreateConic( _
   ByVal XFocus As System.Double, _
   ByVal YFocus As System.Double, _
   ByVal ZFocus As System.Double, _
   ByVal XApex As System.Double, _
   ByVal YApex As System.Double, _
   ByVal ZApex 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 _
) As SketchSegment
Visual Basic (Usage) 
Dim instance As ISketchManager
Dim XFocus As System.Double
Dim YFocus As System.Double
Dim ZFocus As System.Double
Dim XApex As System.Double
Dim YApex As System.Double
Dim ZApex 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 value As SketchSegment
 
value = instance.CreateConic(XFocus, YFocus, ZFocus, XApex, YApex, ZApex, X1, Y1, Z1, X2, Y2, Z2)
C# 
SketchSegment CreateConic( 
   System.double XFocus,
   System.double YFocus,
   System.double ZFocus,
   System.double XApex,
   System.double YApex,
   System.double ZApex,
   System.double X1,
   System.double Y1,
   System.double Z1,
   System.double X2,
   System.double Y2,
   System.double Z2
)
C++/CLI 
SketchSegment^ CreateConic( 
&   System.double XFocus,
&   System.double YFocus,
&   System.double ZFocus,
&   System.double XApex,
&   System.double YApex,
&   System.double ZApex,
&   System.double X1,
&   System.double Y1,
&   System.double Z1,
&   System.double X2,
&   System.double Y2,
&   System.double Z2
) 

Parameters

XFocus
X coordinate for the focus of the curve
YFocus
Y coordinate for the focus of the curve
ZFocus
Z coordinate for the focus of the curve
XApex
X coordinate for the apex of the curve
YApex
Y coordinate for the apex of the curve
ZApex
Z coordinate for the apex of the curve
X1
X coordinate for the start point of the curve
Y1
Y coordinate for the start point of the curve
Z1
Z coordinate for the start point of the curve
X2
X coordinate for the end point of the curve
Y2
Y coordinate for the end point of the curve
Z2
Z coordinate for the end point of the curve

Return Value

Sketch segment for the conic curve

Example

Remarks

This method creates a conic curve (circle, ellipse, parabola, or hyperbola) 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 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 you added. You should also restore the original display settings by calling ISketchManager::DisplayWhenAdded(True).

 

See Also

Availability

SolidWorks 2013 FCS, Revision Number 21.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:   CreateConic 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.