VCAddSplineEntity


Version:

1.2

Description:

Add a spline entity to the drawing database without any points to allow data points to added later.

Declaration:

 

C/C++

extern "C" void WINAPI VCAddSplineEntity(short* iError, short iSymbolIndex);

Delphi

procedure VCAddSplineEntity(var iError: Smallint; iSymbolIndex: Smallint); stdcall;

ActiveX/COM

Sub AddSplineEntity(ByVal iSymbolIndex As Integer)

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.

Notes:

VCAddContinuousLineEntity, VCAddSplineEntity and VCAddContinuousBezierEntity allow for a variable number of points, up to 3748 (MAX_CONTINUOUS_POINTS), to be placed with the VCSetCurrentEntityPoint command instead of through a parameter. 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:

VCAddArcEntity, VCAddBezierEntity, VCGetSymbolIndex, VCCreateSymbolDef, VCAddContinuousBezierEntity