API Documentation > Classes > Class pfcExternalDataAccess
Class 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.
Direct Parent Classes:
User Guide References:
Method Summary
CreateClass (string Name)
Creates a class in the model's external data.
boolean
Returns true if this object is still valid for this model, false if access has been terminated
Lists all of the external data classes for the model
void
Loads all of the model's external data into memory.
void
Frees the memory allocated for data buffer.
Method Detail
CreateClass
(string 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
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.
User Guide References:
boolean
IsValid
()
Returns true if this object is still valid for this model, false if access has been terminated
Returns:
The status
User Guide References:
ListClasses
()
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
Returns:
Sequence of class objects.
User Guide References:
void
LoadAll
()
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
void
ReleaseDataBuffer
Frees the memory allocated for data buffer.
Parameters:
data
Was this helpful?