Category Curve and surface collection, Object ProCrvcollection

Function ProCrvcollectionCopy


Description
Copies a curve collection.
Synopsis
#include <ProCrvcollection.h>
ProErrorProCrvcollectionCopy(
ProCollection source
/* (In)
Curve collection If the type is PRO_COLLECTION_LEGACY, the input legacy curve collection will be copied into a standard style curve collection of type PRO_COLLECTION_CRVCOLL. If the type is PRO_COLLECTION_CRVCOLL, the output will be an identical copy of the input.
*/
ProCollection* target
/* (Out)
The copy of the curve collection. This will be a newly allocated collection that should be freed by ProCollectionFree().
*/
)
Returns
PRO_TK_NO_ERRORThe function succeeded.
PRO_TK_BAD_INPUTSOne or more arguments was invalid.
PRO_TK_OUT_OF_MEMORYMemory allocation failure.
PRO_TK_INVALID_TYPEThe collection contains instructions for surfaces.
See Also
ProCollectionFree

Manual References:

  1. User Interface: Curve and Surface Collection: Creation and Modification of Curve Collections
  2. User Interface: Curve and Surface Collection: Creation and Modification of Curve Collections

Sample Code References:

  1. pt_userguide ( UgIntcollectionDraftCreate.c )
  2. pt_userguide ( UgOADraftCreate.c )