VCAddEllipticalArcEntity


Version:

1.2

Description:

Adds an elliptical arc entity to the drawing database or to a symbol definition.

Declaration:

 

C/C++

extern "C" void WINAPI VCAddEllipticalArcEntity(short* iError, short iSymbolIndex, Point2D dpP0, Point2D dpP1, Point2D dpP2, Point2D dpP3, Point2D dpP4, Point2D dpP5, Point2D dpP6);
extern "C" void WINAPI VCAddEllipticalArcEntityBP(short* iError, short iSymbolIndex, Point2D* dpP0, Point2D* dpP1, Point2D* dpP2, Point2D* dpP3, Point2D* dpP4, Point2D* dpP5, Point2D* dpP6);

Delphi

procedure VCAddEllipticalArcEntityBP(var iError: Smallint; Smallint; var dpP0: Point2D; var dpP1: Point2D; var dpP2: Point2D; var dpP3 Point2D; var dpP4: Point2D; var dpP5: Point2D; var dpP6: Point2D); stdcall;

ActiveX/COM

Sub AddEllipticalArcEntity(ByVal iSymbolIndex As Integer, dpP0 As IVCPoint2D, dpP1 As IVCPoint2D, dpP2 As IVCPoint2D, dpP3 As IVCPoint2D, dpP4 As IVCPoint2D, dpP5 As IVCPoint2D, dpP6 As IVCPoint2D)

Parameters:

iSymbolIndex - index location for adding the entity.
-1 - NONDEFENTITY (Drawing)
-2 - HATCHFILLENTITY
> 0 - Use VCGetSymbolIndex to retrieve the symbol index for creating a symbol definition.
dpP0
- the Point2D structure containing the coordinates to place the first end point on the major axis on the ellipse.
dpP1
- the Point2D structure containing the coordinates to place the second end point on the major axis on the ellipse.
dpP2
- the Point2D structure containing the coordinates to place the second end point on the minor axis on the ellipse.
dpP3
- the Point2D structure containing the coordinates to place the second end point on the minor axis on the ellipse.
dpP4
- the Point2D structure containing the coordinates to place the starting point for the arc definition
dpP5
- the Point2D structure containing the coordinates to place the mid point for the arc definition.
dpP6
- the Point2D structure containing the coordinates to place the second end point for the arc definition

Notes:

Any entity added to the Visual CADD™ drawing database or to a symbol definition will take on the current properties for line type, color, layer, and width. These properties should be set before adding the entity or they may be changed after creation with the change commands. All point locations including those within a symbol definition are relative to the drawing origin Each entity added will be appended to the end of the database and take on the entity handle of one higher than the last entity in the drawing before the addition. To add entities to a symbol definition, the index of an existing symbol is retrieved with VCGetSymbolIndex while VCCreateSymbolDef creates an empty definition for a new symbol.

See Also:

VCAddEllipseEntity, VCAddArcEntity, VCGetSymbolIndex, VCCreateSymbolDef