Library | File

Class pfcExternalDataAccess

# include <pfcExternal.h>

class pfcExternalDataAccess
 : public virtual pfcChild
{
    xaideclare(pfcExternalDataAccess)
    ...
};



Description

Object that represents a conduit to the external data stored in the Creo Parametric file.

To make the external data available for the next session of Creo Parametric save the model.
Manual References:
External Data: Accessing External Data



Method Summary

pfcExternalDataClass_ptrCreateClass (xrstring Name)
Creates a class in the model's external data.
xboolIsValid ()
Returns true if this object is still valid for this model, false if access has been terminated
pfcExternalDataClasses_ptrListClasses ()
Lists all of the external data classes for the model
voidLoadAll ()
Loads all of the model's external data into memory.
voidReleaseDataBuffer (pfcExternalData_ptr data)
Frees the memory allocated for data buffer.


Methods Inherited from Class pfcChild:

GetDBParent, GetOId



Method Detail

pfcExternalDataClasses_ptrListClasses ()

Lists all of the external data classes for the model

Exceptions thrown (but not limited to):

pfcXExternalDataTKError - The function failed.

pfcXExternalDataInvalidObject - The specified model is invalid.

pfcXBadExternalData - Data access object is no longer valid


Manual References:
External Data: Retrieving External Data, External Data: Retrieving External Data
Returns:
Sequence of class objects.



pfcExternalDataClass_ptrCreateClass (xrstring Name)

Creates a class in the model's external data.

Exceptions thrown (but not limited to):

pfcXExternalDataTKError - The function failed.

pfcXExternalDataInvalidObject - The specified model or class name is invalid.

pfcXExternalDataClassOrSlotExists - The specified class name already exists.

pfcXExternalDataNamesTooLong - The specified class name exceeds the length 32.

pfcXBadExternalData - Data access object is no longer valid


Manual References:
External Data: Storing External Data, External Data: Storing External Data
Parameters:
Name
Name for the class. This must be unique, and typically reflects the name and/or purpose ofthe application.
Returns:
Object representing the new external data class.



voidLoadAll ()

Loads all of the model's external data into memory.

Using this method can improve the performance of reading the model data.

Exceptions thrown (but not limited to):

pfcXExternalDataTKError - The function failed.

pfcXExternalDataInvalidObject - The specified model is invalid.

pfcXBadExternalData - Data access object is no longer valid


Manual References:
External Data: Retrieving External Data, External Data: Retrieving External Data
Returns:



xboolIsValid ()

Returns true if this object is still valid for this model, false if access has been terminated
Manual References:
External Data: Accessing External Data
Returns:
The status



voidReleaseDataBuffer (pfcExternalData_ptr data)

Frees the memory allocated for data buffer.
Parameters:
data
Returns: