Version: |
1.2 |
Description: |
Makes a copy of the specified entity using the entity's points and the current settings. |
Declaration: |
|
C/C++ |
extern "C" void WINAPI VCDuplicate(short* iError, ENTITYHANDLE lH); |
Delphi |
Declare Sub VCDuplicate Lib "VCMAIN32.DLL" ( iError As Smallint, ByVal lH As Long) |
ActiveX/COM |
Sub Duplicate(ByVal lH As Long) |
Parameters: |
IH - the handle of the entity to be duplicated. |
Notes: |
Normally when changing or editing entities in Visual CADD™ it would be necessary to first query for each of the coordinates of the entity and then reintroduce the entity into the database with those coordinates using the VCAdd...Entity functions. VCDuplicate does this by copying the specified entity with all its data points while still adopting all the current applicable settings. In comparison, VCDuplicateWithTransform allows for scaling, translation, and rotation of the copied entity without the need for other mathematical routines. |
See Also: |
VCAddArcEntity, VCAddTextEntity, VCAddBezierEntity, VCAddCircleEntity, VCAddLineEntity, VCAddEllipseEntity, VCDuplicateWithTransform, VCDuplicateToWorld |