Project

Defines a Project.

Declaration Syntax

public class Project : DataModelObject, IFolderDataModelObject

Table 316: Members

Property

Author

Gets or sets the Author.

Property

Children

Gets the list of children.

Property

Comments

Gets the list of associated comments.

Property

CreationDate

Gets the CreationDate.

Property

CreationTime

Gets the CreationTime.

Property

DataModelObjectCategory

Gets the current DataModelObject's category.

Property

FilePath

Gets the Mechanical Project file path of current Mechanical session.

Property

FirstSaved

Gets the FirstSaved.

Property

Images

Gets the list of associated images.

Property

ImportedSource

Gets the ImportedSource.

Property

ImportedVersion

Gets the ImportedVersion.

Property

InternalObject

Gets the internal object. For advanced usage only.

Property

LastSaved

Gets the LastSaved.

Property

Model

Gets the Model.

Property

Models ***OBSOLETE*** Use 'Model' property instead.

Gets the Model.

Property

PreparedFor

Gets or sets the PreparedFor.

Property

ProductVersion

Gets the ProductVersion.

Property

ProjectDirectory

Gets the Project Directory

Property

SaveProjectAfterSolution

Gets or sets the SaveProjectAfterSolution.

Property

SaveProjectBeforeSolution

Gets or sets the SaveProjectBeforeSolution.

Property

Subject

Gets or sets the Subject.

Property

UnitSystem

Change the Unit System.

Property

UserFiles

Gets the path of the user files folder of current project.

Method

AddComment()

Creates a new child Comment.

Method

AddImage(string)

Creates a new child Image. If a filePath is provided, the image will be loaded from that file, if not, the image will be a screen capture of the Geometry window.

Method

Archive(string, bool, ArchiveSettings)

For Mechanical opened independently, without Workbench. Archive a Mechanical project.

Method

ClearGeneratedData()

Run the ClearGeneratedData action.

Method

CombineTextFiles(string, string)

Combines two text(.txt / .dmig / .inp / .dat) files. The secondary file will be appened to the primary file

Method

GetChildren<ChildrenType>(bool, IList<ChildrenType>)

Gets the list of children, filtered by type.

Method

GetChildren(DataModelObjectCategory, bool, IList<IDataModelObject>)

Gets the list of children, filtered by type.

Method

New()

For Mechanical opened independently, without Workbench. Start a new Mechanical project.

Method

Open(string)

For Mechanical opened independently, without Workbench. Open an existing Mechanical project.

Method

Save()

For Mechanical opened independently, without Workbench. Save current Mechanical project.

Method

SaveAs(string, bool)

For Mechanical opened independently, without Workbench. Save current Mechanical project to given filePath.

Method

SpecifyMetricTemperatureInCelsius()

Specify the use of Celsius thermal units for metric unit systems.

Method

SpecifyMetricTemperatureInKelvin()

Specify the use of Kelvin thermal units for metric unit systems.

Method

Unarchive(string, string, bool)

For Mechanical opened independently, without Workbench. Unarchive a Mechanical project and open it. If projectPath is provided, the project will be unarchived to this given projectPath. If projectPath is not provided or is null or empty, the project will be unarchived to a temporary folder. Returns a path to the unarchived project database file.