Skip to main content

Mechanical scripting interface

ExternalDataFileCollection

Last update: 14.01.2025

class Ansys.Mechanical.ExternalData.ExternalDataFileCollection

Bases: object

T:Ansys.Mechanical.ExternalData.ExternalDataFileCollection is a class that provides foundational behavior for holding external data files.

Overview

Methods

Name Description
Add
Clear
Contains
CopyTo CopyTo method.
GetEnumerator
IndexOf
Insert
Remove
RemoveAt

Properties

Name Description
Count Gets the number of external data files.
Item Item property.
SaveFilesWithProject Gets or sets the flag controlling if the external data files will be copied to the project directory.

Property detail

property ExternalDataFileCollection.Count : int | None

Gets the number of external data files.

property ExternalDataFileCollection.Item : Ansys.Mechanical.ExternalData.ExternalDataFile | None

Item property.

property ExternalDataFileCollection.SaveFilesWithProject : bool | None

Gets or sets the flag controlling if the external data files will be copied to the project directory. If this flag is set to False, the external data files will directly reference the file path. The default is False.

Method detail

ExternalDataFileCollection.Add(item: Ansys.Mechanical.ExternalData.ExternalDataFile)

ExternalDataFileCollection.Clear()

ExternalDataFileCollection.Contains(item: Ansys.Mechanical.ExternalData.ExternalDataFile)

ExternalDataFileCollection.CopyTo(array: Ansys.Mechanical.ExternalData.ExternalDataFile, arrayIndex: int)

CopyTo method.

ExternalDataFileCollection.GetEnumerator()

ExternalDataFileCollection.IndexOf(item: Ansys.Mechanical.ExternalData.ExternalDataFile)

ExternalDataFileCollection.Insert(index: int, item: Ansys.Mechanical.ExternalData.ExternalDataFile)

ExternalDataFileCollection.Remove(item: Ansys.Mechanical.ExternalData.ExternalDataFile)

ExternalDataFileCollection.RemoveAt(index: int)