Public Member Functions | |
| __init__ (self, _api.Application application) | |
| bool | CheckDatabaseIsUpToDate (self, str databasePath) |
| Returns true if the database version matches the version of this scripting API. | |
| None | CloseDatabase (self, int delay=0) |
| Close the currently open database if one exists. | |
| types.SimpleStatus | CompareDatabases (self, str outputPath, str originalDatabasePath, str modifiedDatabasePath, str originalProject=None, str modifiedProject=None, bool compareAssignableProperties=True, bool compareMaterialsFastenersAndRivets=True, bool compareProjectSetup=False) |
| ProjectInfo | CopyProject (self, int projectId, str newName=None, bool copyDesignProperties=True, bool copyAnalysisProperties=True, bool copyLoadProperties=True, bool copyWorkingFolder=True) |
| Copy a project. | |
| None | CreateDatabaseFromTemplate (self, str templateName, str newPath) |
| Create a new database. | |
| ProjectInfo | CreateProject (self, str projectName=None) |
| Create a Project. | |
| ProjectDeletionStatus | DeleteProject (self, str projectName) |
| None | Dispose (self) |
| Dispose of the application. | |
| dict[int, AnalysisDefinition] | GetAnalyses (self) |
| Get all Analysis Definitions in the database. | |
| None | Login (self, str userName, str password="") |
| Login to the Scripting API with a specified username and password. | |
| str | Migrate (self, str databasePath) |
| Migrate the database to the latest version. | |
| None | OpenDatabase (self, str databasePath) |
| Open a database to manipulate with the API. | |
| Project | SelectProject (self, str projectName) |
| Select the active project. | |
| types.SimpleStatus | UnpackageProject (self, str sourcePackagePath, str destinationFolder=None, bool includeFemInputOutputFiles=True, bool includeWorkingFolder=True, bool includeLoadFiles=True, bool includeAdditionalFiles=True) |
| Unpackage the source .hxp package into the destination folder. | |
Protected Attributes | |
| _Entity = application._Entity | |
Properties | |
| ActiveProject = property | |
| Represents a HyperX project within a database. | |
| AnalysisProperties = property | |
| CompilationDate = property | |
| DatabasePath = property | |
| DesignProperties = property | |
| FailureModeCategories = property | |
| FailureModes = property | |
| Foams = property | |
| Contains a set of all foam materials in a database. | |
| Honeycombs = property | |
| Contains a set of all honeycomb materials in a database. | |
| Isotropics = property | |
| Contains a set of all isotropic materials in a database. | |
| LaminateFamilies = property | |
| Laminates = property | |
| LoadProperties = property | |
| Orthotropics = property | |
| Contains a set of all orthotropic materials in a database. | |
| Packages = property | |
| ProjectInfos = property | |
| Contains a set of all projects in a database. | |
| UiRunnerMode = property | |
| UnitSystem = property | |
| Unit system specified when starting a scripting Application. | |
| UserName = property | |
| Version = property | |
| hyperx.api.Application.__init__ | ( | self, | |
| _api.Application | application ) |
| bool hyperx.api.Application.CheckDatabaseIsUpToDate | ( | self, | |
| str | databasePath ) |
Returns true if the database version matches the version of this scripting API.
Otherwise returns false.
| None hyperx.api.Application.CloseDatabase | ( | self, | |
| int | delay = 0 ) |
Close the currently open database if one exists.
| delay | Delay closing the connection for this many seconds. |
| types.SimpleStatus hyperx.api.Application.CompareDatabases | ( | self, | |
| str | outputPath, | ||
| str | originalDatabasePath, | ||
| str | modifiedDatabasePath, | ||
| str | originalProject = None, | ||
| str | modifiedProject = None, | ||
| bool | compareAssignableProperties = True, | ||
| bool | compareMaterialsFastenersAndRivets = True, | ||
| bool | compareProjectSetup = False ) |
| ProjectInfo hyperx.api.Application.CopyProject | ( | self, | |
| int | projectId, | ||
| str | newName = None, | ||
| bool | copyDesignProperties = True, | ||
| bool | copyAnalysisProperties = True, | ||
| bool | copyLoadProperties = True, | ||
| bool | copyWorkingFolder = True ) |
Copy a project.
| projectId | Id of the project to copy |
| newName | Name for the new project |
| copyDesignProperties | Flag indicating whether design properties should be copied in the new project |
| copyAnalysisProperties | Flag indicating whether analysis properties should be copied in the new project |
| copyLoadProperties | Flag indicating whether load properties should be copied in the new project |
| copyWorkingFolder | Flag indicating whether working folder should be copied |
| None hyperx.api.Application.CreateDatabaseFromTemplate | ( | self, | |
| str | templateName, | ||
| str | newPath ) |
Create a new database.
| templateName | The name of the template to base this database on. |
| newPath | The path to the new database. |
| ProjectInfo hyperx.api.Application.CreateProject | ( | self, | |
| str | projectName = None ) |
Create a Project.
| ProjectDeletionStatus hyperx.api.Application.DeleteProject | ( | self, | |
| str | projectName ) |
| None hyperx.api.Application.Dispose | ( | self | ) |
Dispose of the application.
Should be explicitly called after the application is no longer needed unless the application is wrapped with a using clause.
| dict[int, AnalysisDefinition] hyperx.api.Application.GetAnalyses | ( | self | ) |
Get all Analysis Definitions in the database.
| None hyperx.api.Application.Login | ( | self, | |
| str | userName, | ||
| str | password = "" ) |
Login to the Scripting API with a specified username and password.
| userName | Username to login with. |
| password | Password to log in with |
| str hyperx.api.Application.Migrate | ( | self, | |
| str | databasePath ) |
Migrate the database to the latest version.
| None hyperx.api.Application.OpenDatabase | ( | self, | |
| str | databasePath ) |
Open a database to manipulate with the API.
| databasePath | File path to the DB. |
| Project hyperx.api.Application.SelectProject | ( | self, | |
| str | projectName ) |
Select the active project.
Activating a project will deactivate the current project (if present).
| types.SimpleStatus hyperx.api.Application.UnpackageProject | ( | self, | |
| str | sourcePackagePath, | ||
| str | destinationFolder = None, | ||
| bool | includeFemInputOutputFiles = True, | ||
| bool | includeWorkingFolder = True, | ||
| bool | includeLoadFiles = True, | ||
| bool | includeAdditionalFiles = True ) |
Unpackage the source .hxp package into the destination folder.
Note, the destination folder should be empty.
|
protected |
|
static |
Represents a HyperX project within a database.
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
Contains a set of all foam materials in a database.
|
static |
Contains a set of all honeycomb materials in a database.
|
static |
Contains a set of all isotropic materials in a database.
|
static |
|
static |
|
static |
|
static |
Contains a set of all orthotropic materials in a database.
|
static |
|
static |
Contains a set of all projects in a database.
|
static |
|
static |
Unit system specified when starting a scripting Application.
|
static |
|
static |