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)

This method is enabled for Creo Direct.

Creates a class in the model's external data.
xboolIsValid ()

This method is enabled for Creo Direct.

Returns true if this object is still valid for this model, false if access has been terminated
pfcExternalDataClasses_ptrListClasses ()

This method is enabled for Creo Direct.

Lists all of the external data classes for the model
voidLoadAll ()

This method is enabled for Creo Direct.

Loads all of the model's external data into memory.
voidReleaseDataBuffer (pfcExternalData_ptr data)

This method is enabled for Creo Direct.

Frees the memory allocated for data buffer.


Methods Inherited from Class pfcChild:

GetDBParent, GetOId



Method Detail

pfcExternalDataClasses_ptrListClasses ()

This method is enabled for Creo Direct.


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)

This method is enabled for Creo Direct.


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 ()

This method is enabled for Creo Direct.


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 ()

This method is enabled for Creo Direct.


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)

This method is enabled for Creo Direct.


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