Skip to main content
View as Markdown

IModelDatafile interface

The IModelDatafile interface represents the data file (external file) that is associated with a model. Each model can have multiple data files (different representations of the same model type).

public interface IModelDatafile

Namespace: SCH · Assembly: Altium.SDK.Interfaces

Remarks​

This interface is used within the IServerModel interface.

Methods​

MethodReturnsDescription
AddEntityvoidThis method adds a new entity for the datafile.
EntityCountintThis method returns the number of entities for the data file related to the model.
EntityNamestringThe method returns the indexed entityname for the datafile related to the model.
FullPathstringThis method fetches the full path of the data file part of the model.

AddEntity​

This method adds a new entity for the datafile.

void AddEntity(string argName);
ParameterTypePassing
argNamestringvalue

Returns: nothing (void)

EntityCount​

This method returns the number of entities for the data file related to the model.

int EntityCount();

Returns: int

See also: IModelDatafile.EntityName

EntityName​

The method returns the indexed entityname for the datafile related to the model.

string EntityName(int argnIndex);
ParameterTypePassing
argnIndexintvalue

Returns: string

This Entitynames property returns the indexed entity name for the datafile related to the model. This property is supported by the Entitynames method.

See also: IModelDatafile.EntityCount

FullPath​

This method fetches the full path of the data file part of the model.

string FullPath();

Returns: string

Returned by​

IModelEditor.CreateDatafile