Hide Table of Contents
ICreateEllipticalArc2 Method (IModelDoc2)

Creates a partial ellipse given a center point, two points that specify the major and minor axis, and two points that define the elliptical start and end points.

.NET Syntax

Visual Basic (Declaration) 
Function ICreateEllipticalArc2( _
   ByVal CenterX As System.Double, _
   ByVal CenterY As System.Double, _
   ByVal CenterZ As System.Double, _
   ByVal MajorX As System.Double, _
   ByVal MajorY As System.Double, _
   ByVal MajorZ As System.Double, _
   ByVal MinorX As System.Double, _
   ByVal MinorY As System.Double, _
   ByVal MinorZ As System.Double, _
   ByVal StartX As System.Double, _
   ByVal StartY As System.Double, _
   ByVal StartZ As System.Double, _
   ByVal EndX As System.Double, _
   ByVal EndY As System.Double, _
   ByVal EndZ As System.Double _
) As SketchSegment
Visual Basic (Usage) 
Dim instance As IModelDoc2
Dim CenterX As System.Double
Dim CenterY As System.Double
Dim CenterZ As System.Double
Dim MajorX As System.Double
Dim MajorY As System.Double
Dim MajorZ As System.Double
Dim MinorX As System.Double
Dim MinorY As System.Double
Dim MinorZ As System.Double
Dim StartX As System.Double
Dim StartY As System.Double
Dim StartZ As System.Double
Dim EndX As System.Double
Dim EndY As System.Double
Dim EndZ As System.Double
Dim value As SketchSegment
 
value = instance.ICreateEllipticalArc2(CenterX, CenterY, CenterZ, MajorX, MajorY, MajorZ, MinorX, MinorY, MinorZ, StartX, StartY, StartZ, EndX, EndY, EndZ)
C# 
SketchSegment ICreateEllipticalArc2( 
   System.double CenterX,
   System.double CenterY,
   System.double CenterZ,
   System.double MajorX,
   System.double MajorY,
   System.double MajorZ,
   System.double MinorX,
   System.double MinorY,
   System.double MinorZ,
   System.double StartX,
   System.double StartY,
   System.double StartZ,
   System.double EndX,
   System.double EndY,
   System.double EndZ
)
C++/CLI 
SketchSegment^ ICreateEllipticalArc2( 
&   System.double CenterX,
&   System.double CenterY,
&   System.double CenterZ,
&   System.double MajorX,
&   System.double MajorY,
&   System.double MajorZ,
&   System.double MinorX,
&   System.double MinorY,
&   System.double MinorZ,
&   System.double StartX,
&   System.double StartY,
&   System.double StartZ,
&   System.double EndX,
&   System.double EndY,
&   System.double EndZ
) 

Parameters

CenterX

X coordinate for the ellipse center point

CenterY

Y coordinate for the ellipse center point

CenterZ

Z coordinate for the ellipse center point

MajorX

Y coordinate for a point on the ellipse and on the major axis

MajorY

Y coordinate for a point on the ellipse and on the major axis

MajorZ

Z coordinate for a point on the ellipse and on the major axis

MinorX

X coordinate for a point on the ellipse and on the minor axis

MinorY

Y coordinate for a point on the ellipse and on the minor axis

MinorZ

Z coordinate for a point on the ellipse and on the minor axis

StartX

X coordinate for counter clockwise elliptical arc start point

StartY

Y coordinate for counter clockwise elliptical arc start point

StartZ

Z coordinate for counter clockwise elliptical arc start point

EndX

X coordinate for counter clockwise elliptical arc end point

EndY

Y coordinate for counter clockwise elliptical arc end point

EndZ

Z coordinate for counter clockwise elliptical arc end point

Return Value

Newly created ellipse

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 IModelDoc2::GetActiveSketch2 or IModelDoc2::IGetActiveSketch2.

For COM applications, the object pointer returned from this method can be used to call any APIs on the ISketchSegment interface. The underlying ISketchArc object can be obtained using QueryInterface on the returned ISketchSegment object.

OLE applications can define a new ISketchSegment or ISketchArc object using the returned Dispatch pointer. Visual Basic applications interpret the pointer for you automatically, so you can use the returned object to call ISketchSegment or ISketchArc functions.

IModelDoc2::SetAddToDB and IModelDoc2::SetDisplayWhenAdded increase performance during entity creation by adding entities directly to the SOLIDWORKS database.

  • IModelDoc2::SetAddToDB 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 IModelDoc2::SetAddToDB(false), to restore SOLIDWORKS to its normal operating mode.
  • This method also works with IModelDoc2::SetDisplayWhenAdded. If you have called IModelDoc2::SetAddToDB(True), additional performance can be gained by calling IModelDoc2::SetDisplayWhenAdded(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 IModelDoc2::GraphicsRedraw2) to see the entities that you added. You should also restore the original display settings by calling IModelDoc2::SetDisplayWhenAdded(True).

To create a complete ellipse, use IModelDoc2::CreateEllipse2 or IModelDoc2::ICreateEllipse2.

 

See Also

Availability

SOLIDWORKS 2001Plus FCS, Revision Number 10.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:   ICreateEllipticalArc2 Method (IModelDoc2)
*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) 2018 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.