Skip to main content

Mechanical scripting interface 2025

`ISourceFile`

Last update: 16.07.2025

class Ansys.ACT.Interfaces.Common.ISourceFile

Bases: object

A file containing source code.

Overview

Methods

Name Description
Save Saves the modified content.

Properties

Name Description
Content Reads or writes the content of the file.
FilePath Represents the absolute path of the source file.

Property detail

property ISourceFile.Content : str | None

Reads or writes the content of the file.

property ISourceFile.FilePath : str | None

Represents the absolute path of the source file.

Method detail

ISourceFile.Save() → None

Saves the modified content.

Connect with Ansys