IModelDatafileType interface
The IModelDatafileType interface represents the data file type for the specified model. Simulation Model has three model types and thus three data files, PCB LIB has one model type and one data file, PCB3DLib has one model type and one data file and SI has one model type and one data file.
public interface IModelDatafileType
Namespace: SCH · Assembly: Altium.SDK.Interfaces
Remarks
The IModelDatafileType interface is used by the IModelTypeManager
Example
Show the properties of every model data file type.
using SCH;
IModelTypeManager modelTypeMan = EDP.Utils.LoadModelTypeManager();
if (modelTypeMan == null)
return;
for (int i = 0; i < modelTypeMan.ModelDatafileTypeCount(); i++)
{
IModelDatafileType modelDatafileType = modelTypeMan.ModelDatafileTypeAt(i);
DXP.Utils.ShowMessage(
modelDatafileType.FileKind() + "\r" +
modelDatafileType.ExtensionFilter() + "\r" +
modelDatafileType.Description() + "\r" +
modelDatafileType.EntityType() + "\r" +
modelDatafileType.ModelType().Name() + "\r" +
modelDatafileType.SupportsParameters());
}
Methods
| Method | Returns | Description |
|---|---|---|
| Description | string | This method returns the description string for this IModelDatafiletype interface depending on the model's data file type. |
| EntityType | string | This method returns the Entity type string for this IModelDatafiletype interface depending on the model's data file type. |
| ExtensionFilter | string | This method returns the extension filter string for this IModelDatafiletype interface depending on the model's data file type. |
| FileKind | string | This method returns the FileKind string for this IModelDatafiletype interface depending on the model's data file type. |
| ModelType | IModelType | This method returns the ModelType string for this IModelDatafiletype interface depending on the model's data file type. |
| SupportsParameters | bool | This method returns the SupportsParameters Boolean value for this IModelDatafiletype interface depending on the model's data file type. |
Description
This method returns the description string for this IModelDatafiletype interface depending on the model's data file type. Since Altium Designer supports four models and six model types:
string Description();
Returns: string
See also: IModelTypeManager
EntityType
This method returns the Entity type string for this IModelDatafiletype interface depending on the model's data file type. Since Altium Designer supports four models and six model types:
string EntityType();
Returns: string
See also: IModelTypeManager
ExtensionFilter
This method returns the extension filter string for this IModelDatafiletype interface depending on the model's data file type. Since Altium Designer supports four models and six model types:
string ExtensionFilter();
Returns: string
See also: IModelTypeManager
FileKind
This method returns the FileKind string for this IModelDatafiletype interface depending on the model's data file type. Since Altium Designer supports four models and six model types:
string FileKind();
Returns: string
See also: IModelTypeManager
ModelType
This method returns the ModelType string for this IModelDatafiletype interface depending on the model's data file type. Since Altium Designer supports four models and six model types:
IModelType ModelType();
Returns: IModelType
Extension method of IModelDatafileTypeHelper (using SCH;).
See also: IModelTypeManager
SupportsParameters
This method returns the SupportsParameters Boolean value for this IModelDatafiletype interface depending on the model's data file type. Since Altium Designer supports four models and six model types:
bool SupportsParameters();
Returns: bool
See also: IModelTypeManager
Returned by
IModelTypeManager.ModelDatafileTypeAt, IModelTypeManager.ModelDatafileTypeFromKind