User's Guide > Models > Models > Model Descriptors
Model Descriptors
 
Methods and Properties Introduced:
CCpfcModelDescriptor.Create()
IpfcModelDescriptor_CreateFromFileName()
IpfcModelDescriptor.SetGenericName
IpfcModelDescriptor.SetInstanceName
IpfcModelDescriptor.SetType
IpfcModelDescriptor.SetDevice
IpfcModelDescriptor.SetPath
IpfcModel.GetFullName
Model descriptors are data objects used to describe a model file and its location in the system. The methods in the model descriptor enable you to set specific information that enables Creo Parametric to find the specific model you want.
The static utility method CCpfcModelDescriptor.Create() allows you to specify as data to be entered a model type, an instance name, and a generic name. The model descriptor constructs the full name of the model as a string, as follows:
String FullName = InstanceName+"<"+GenericName+">";
// As long as the
// generic name is
// not an empty
// string ("")
If you want to load a model that is not a family table instance, pass an empty string as the generic name argument so that the full name of the model is constructed correctly. If the model is a family table interface, you should specify both the instance and generic names.
* 
You are allowed to set other fields in the model descriptor object, but they may be ignored by some methods.
The static utility method IpfcModelDescriptor.CreateFromFileName() allows you to create a new model descriptor from a given a file name. The file name is a string in the form <name>.<extension>.
Was this helpful?