Version: |
2.0 |
Description: |
Makes a copy of the specified entity into a drawing world using the entity's points and settings. |
Declaration: |
|
C/C++ |
extern "C" void WINAPI VCDuplicateToWorld(short* iError, ENTITYHANDLE hE, WORLDHANDLE TargetWorld); |
Delphi |
procedure VCDuplicateToWorld(var iError: Smallint; hE: Longint; TargetWorld: |
ActiveX/COM |
Sub DuplicateToWorld(ByVal hE As Long, ByVal TargetWorld As Long) |
Parameters: |
hE - handle for the entity
to duplicate |
Notes: |
Normally when duplicating entities into a drawing world 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 drawing world with those coordinates using the VCAdd...Entity functions. VCDuplicateToWorld does this by copying the specified entity to a drawing world with all its data points and settings. In comparison, VCDuplicate does this by copying the specified entity into the current drawing with all its data points while adopting all the current applicable settings. |
See Also: |