Project
#
- class ansys.mechanical.stubs.v241.Ansys.ACT.Automation.Mechanical.Project#
Bases:
object
Defines a Project.
Overview#
Activate the current object. |
|
Creates a new child Comment. |
|
Creates a new child Image. |
|
For Mechanical opened independently, without Workbench. Archive a Mechanical project. |
|
Run the ClearGeneratedData action. |
|
Combines two text(.txt / .dmig / .inp / .dat) files. The secondary file will be appened to the primary file |
|
Copies all visible properties from this object to another. |
|
Creates a new parameter for a Property. |
|
Creates a copy of the current DataModelObject. |
|
Gets the list of children, filtered by type. |
|
Gets the parameter corresponding to the given property. |
|
Run the GroupAllSimilarChildren action. |
|
Run the GroupSimilarObjects action. |
|
For Mechanical opened independently, without Workbench. Start a new Mechanical project. |
|
For Mechanical opened independently, without Workbench. Open an existing Mechanical project. |
|
Get a property by its API name. |
|
Get a property by its unique name. |
|
Removes the parameter from the parameter set corresponding to the given property. |
|
For Mechanical opened independently, without Workbench. Save current Mechanical project. |
|
For Mechanical opened independently, without Workbench. Save current Mechanical project to given filePath. |
|
Specify the use of Celsius thermal units for metric unit systems. |
|
Specify the use of Kelvin thermal units for metric unit systems. |
|
For Mechanical opened independently, without Workbench. Unarchive a Mechanical project and open it. |
Gets or sets the Author. |
|
Gets the list of children. |
|
Gets the list of associated comments. |
|
Gets the CreationDate. |
|
Gets the CreationTime. |
|
Gets the current DataModelObject's category. |
|
Gets the Mechanical Project file path of current Mechanical session. |
|
Gets the FirstSaved. |
|
Gets the list of associated images. |
|
Gets the ImportedSource. |
|
Gets the ImportedVersion. |
|
Gets the internal object. For advanced usage only. |
|
Gets the LastSaved. |
|
Gets the Model. |
|
Gets the Model. |
|
Gets or sets the PreparedFor. |
|
Gets the ProductVersion. |
|
Gets the Project Directory |
|
Gets the list of properties for this object. |
|
Gets or sets the SaveProjectAfterSolution. |
|
Gets or sets the SaveProjectBeforeSolution. |
|
Gets or sets the Subject. |
|
Change the Unit System. |
|
Gets the path of the user files folder of current project. |
|
Gets the list of properties that are visible for this object. |
Property detail#
- property Project.Children: List[Ansys.Mechanical.DataModel.Interfaces.IDataModelObject] | None#
Gets the list of children.
- property Project.Comments: Iterable[Ansys.ACT.Automation.Mechanical.Comment] | None#
Gets the list of associated comments.
- property Project.DataModelObjectCategory: Ansys.Mechanical.DataModel.Enums.DataModelObjectCategory | None#
Gets the current DataModelObject's category.
- property Project.FilePath: str | None#
Gets the Mechanical Project file path of current Mechanical session.
- property Project.Images: Iterable[Ansys.ACT.Automation.Mechanical.Image] | None#
Gets the list of associated images.
- property Project.InternalObject: Ansys.Common.Interop.DSObjectsAuto.IDSProjectAuto | None#
Gets the internal object. For advanced usage only.
- property Project.Model: Ansys.ACT.Automation.Mechanical.Model | None#
Gets the Model.
- property Project.Models: Iterable[Ansys.ACT.Automation.Mechanical.Model] | None#
Gets the Model.
- property Project.Properties: tuple[Ansys.ACT.Automation.Mechanical.Property] | None#
Gets the list of properties for this object.
- property Project.SaveProjectBeforeSolution: bool | None#
Gets or sets the SaveProjectBeforeSolution.
- property Project.UnitSystem: Ansys.Mechanical.DataModel.Enums.UserUnitSystemType | None#
Change the Unit System.
Method detail#
- Project.AddComment() Ansys.ACT.Automation.Mechanical.Comment #
Creates a new child Comment.
- Project.AddImage(filePath: str) Ansys.ACT.Automation.Mechanical.Image #
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.
- Project.Archive(archivePath: str, overwrite: bool, settings: Ansys.ACT.Automation.Mechanical.ArchiveSettings) None #
For Mechanical opened independently, without Workbench. Archive a Mechanical project.
- Project.CombineTextFiles(PrimaryFileName: str, SecondaryFileName: str) None #
Combines two text(.txt / .dmig / .inp / .dat) files. The secondary file will be appened to the primary file
- Project.CopyTo(other: Ansys.ACT.Automation.Mechanical.DataModelObject) None #
Copies all visible properties from this object to another.
- Project.CreateParameter(propName: str) Ansys.ACT.Interfaces.Mechanical.IParameter #
Creates a new parameter for a Property.
- Project.Duplicate() Ansys.Mechanical.DataModel.Interfaces.IDataModelObject #
Creates a copy of the current DataModelObject.
- Project.GetChildren(recurses: bool, children: List[ChildrenType]) List[ChildrenType] #
Gets the list of children, filtered by type.
- Project.GetParameter(propName: str) Ansys.ACT.Interfaces.Mechanical.IParameter #
Gets the parameter corresponding to the given property.
- Project.GroupSimilarObjects() Ansys.ACT.Automation.Mechanical.TreeGroupingFolder #
Run the GroupSimilarObjects action.
- Project.New() None #
For Mechanical opened independently, without Workbench. Start a new Mechanical project.
- Project.Open(filePath: str) None #
For Mechanical opened independently, without Workbench. Open an existing Mechanical project.
Get a property by its API name.
If multiple properties have the same API Name, only the first property with that name will be returned.
- Project.PropertyByName(name: str) Ansys.ACT.Automation.Mechanical.Property #
Get a property by its unique name.
- Project.RemoveParameter(propName: str) None #
Removes the parameter from the parameter set corresponding to the given property.
- Project.Save() None #
For Mechanical opened independently, without Workbench. Save current Mechanical project.
- Project.SaveAs(filePath: str, overwrite: bool) None #
For Mechanical opened independently, without Workbench. Save current Mechanical project to given filePath.
- Project.SpecifyMetricTemperatureInCelsius() None #
Specify the use of Celsius thermal units for metric unit systems.
- Project.SpecifyMetricTemperatureInKelvin() None #
Specify the use of Kelvin thermal units for metric unit systems.
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.