Project#
- class ansys.mechanical.stubs.v261.Ansys.ACT.Automation.Mechanical.Project(internalObject: Any)#
Bases:
objectDefines a Project.
Overview#
DetermineStandaloneAppletModeFromArchive method. |
Activate the current object. |
|
Creates a new child Comment. |
|
Creates a new child Image. |
|
Add a material from a file to the project. |
|
For Mechanical opened independently, without Workbench. Archive a Mechanical project. |
|
BackupExists method. |
|
BackupRemove method. |
|
BackupRestore method. |
|
BackupSaveAsCopy method. |
|
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. |
|
CreateObjRef method. |
|
Creates a new parameter for a Property. |
|
Creates a copy of the current DataModelObject. |
|
Equals method. |
|
Exports the data relevant to the Assembly Manager |
|
ForceUnlock method. |
|
Property name bound to dispId. |
|
GetAllProperties method. |
|
GetCanonicalProjectPath method. |
|
Gets the list of children, filtered by type. |
|
GetDetailsView method. |
|
Enum name bound to value |
|
GetHashCode method. |
|
GetIconFile method. |
|
GetLifetimeService method. |
|
GetObjectData method. |
|
Gets the parameter corresponding to the given property. |
|
GetPath method. |
|
GetPropertyName method. |
|
GetPropertyValue method. |
|
GetType method. |
|
GetVisibleProperties method. |
|
GetVisiblePropertyNames method. |
|
Run the GroupAllSimilarChildren action. |
|
Run the GroupSimilarObjects action. |
|
InitializeLifetimeService method. |
|
IsPropertyEditable method. |
|
IsPropertyVisible method. |
|
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. |
|
PropertyById method. |
|
Get a property by its unique name. |
|
Removes dupliate bodies from the tree. |
|
Removes the parameter from the parameter set corresponding to the given property. |
|
For Mechanical opened independently, without Workbench. Resets the cached file path data for opening an archived project file. |
|
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. |
|
ToString method. |
|
For Mechanical opened independently, without Workbench. Unarchive a Mechanical project and open it. |
|
Runs a full state engine validation of the tree |
AttachedRefs property. |
|
Gets or sets the Author. |
|
Gets the list of children. |
|
ClsId property. |
|
Gets the list of associated comments. |
|
Gets the CreationDate. |
|
Gets the CreationTime. |
|
Gets the current DataModelObject's category. |
|
EngineeringDataLibrary property. |
|
Gets the Mechanical Project file path of current Mechanical session. |
|
Gets the FirstSaved. |
|
GroupingFolder property. |
|
IconName property. |
|
Gets the list of associated images. |
|
Gets the ImportedSource. |
|
Gets the ImportedVersion. |
|
Gets the internal object. For advanced usage only. |
|
For Mechanical opened independently, without Workbench. Returns True when working in an opened archive project, otherwise, returns False. |
|
Gets the LastSaved. |
|
Gets the Model. |
|
Gets the Model. |
|
Name property. |
|
ObjectId property. |
|
ObjectState property. |
|
ObjectTags property. |
|
For Mechanical opened independently, without Workbench. Returns the original archive file path opened in current session. |
|
Parent property. |
|
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. |
|
State property. |
|
Sets the State Engine Mode which controls validation |
|
Gets or sets the Subject. |
|
For Mechanical opened independently, without Workbench. Returns the unarchived project file path of the current session. |
|
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.GroupingFolder: Ansys.Mechanical.DataModel.Interfaces.IDataModelObject | None#
GroupingFolder property.
- 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.IsArchive: bool | None#
For Mechanical opened independently, without Workbench. Returns True when working in an opened archive project, otherwise, returns False.
- 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.ObjectState: Ansys.Mechanical.DataModel.Enums.ObjectState | None#
ObjectState property.
- property Project.ObjectTags: Iterable[Ansys.Mechanical.DataModel.Interfaces.IObjectTag] | None#
ObjectTags property.
- property Project.OriginalArchiveFile: str | None#
For Mechanical opened independently, without Workbench. Returns the original archive file path opened in current session.
- property Project.Parent: Ansys.Mechanical.DataModel.Interfaces.IDataModelObject | None#
Parent property.
- 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.StateEngineMode: Ansys.Mechanical.DataModel.Enums.StateEngineMode | None#
Sets the State Engine Mode which controls validation
- property Project.UnarchivedProjectFile: str | None#
For Mechanical opened independently, without Workbench. Returns the unarchived project file path of the current session.
- 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.
- classmethod Project.DetermineStandaloneAppletModeFromArchive(archiveFile: str) None#
DetermineStandaloneAppletModeFromArchive method.
- Project.Duplicate() Ansys.Mechanical.DataModel.Interfaces.IDataModelObject#
Creates a copy of the current DataModelObject.
- Project.Equals(other: Ansys.Mechanical.DataModel.Interfaces.IDataModelObject) bool#
Equals method.
- Project.ExportAssemblyManagerData(destinationDir: str, exportFormat: Ansys.Mechanical.DataModel.Enums.AssemblyManagerExportFormat, exportSettings: Ansys.ACT.Automation.Mechanical.AssemblyManagerExportSettings) None#
Exports the data relevant to the Assembly Manager
- Project.GetAllProperties() List[Ansys.ACT.Automation.Mechanical.AutomationPropertyWrapper]#
GetAllProperties method.
- Project.GetChildren(recurses: bool, children: List[ChildrenType]) List[ChildrenType]#
Gets the list of children, filtered by type.
- Project.GetDetailsView() Ansys.ACT.Automation.Mechanical.DetailsViewData#
GetDetailsView method.
- Project.GetIconFile() System.Byte#
GetIconFile method.
- Project.GetLifetimeService() Any#
GetLifetimeService method.
- Project.GetObjectData(info: System.Runtime.Serialization.SerializationInfo, context: System.Runtime.Serialization.StreamingContext) None#
GetObjectData method.
- Project.GetParameter(propName: str) Ansys.ACT.Interfaces.Mechanical.IParameter#
Gets the parameter corresponding to the given property.
- Project.GetVisibleProperties() List[System.Reflection.PropertyInfo]#
GetVisibleProperties method.
- Project.GroupSimilarObjects() Ansys.ACT.Automation.Mechanical.TreeGroupingFolder#
Run the GroupSimilarObjects action.
- Project.InitializeLifetimeService() Any#
InitializeLifetimeService method.
- 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.ResetArchiveData() None#
For Mechanical opened independently, without Workbench. Resets the cached file path data for opening an archived project file.
- 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.