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=1) |
| 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) |
| str | CompilationDate (self) |
| Date that this version of the API was compiled. | |
| 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. | |
| list[HyperXpertPoint] | CreateHyperXpertPoints (self, set[RunSetSpecifier] runSetSpecifiers, types.DoePlotMode plotMode, types.DoePointType pointType, bool generateVariabilityForLinked, bool filterNonGeometry) |
| Create HyperXpert points based on specific run sets. | |
| 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. | |
| dict[int, list[RunSet]] | GetRunSetsByProject (self) |
| Gets a dictionary mapping ProjectId to a List of RunSets. | |
| types.SimpleStatus | ImportMaterialsFromExcel (self, str filePath, bool deletePlies=False, bool updateMaterialsInUseInOtherProjects=False) |
| Import materials from an Excel spreadsheet. | |
| 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. | |
| None | PauseUpdates (self) |
| Pause the sending of updates as items are created.Once resumed, all updates will be processed. | |
| None | ResumeUpdates (self) |
| Resume the sending of updates.Any paused updates will be processed. | |
| 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. | |
| str | Version (self) |
| Get the current HyperX version number. | |
Protected Attributes | |
| _Entity = application._Entity | |
Static Protected Attributes | |
| _PackageManager | |
| _UnitSystem | |
Properties | |
| ActiveProject = property | |
| The currently active project. | |
| AnalysisProperties = property | |
| Analysis Properties for this database. | |
| BackdoorSettings = property | |
| DatabasePath = property | |
| DesignProperties = property | |
| Design Properties for this database. | |
| FailureModeCategories = property | |
| FailureModes = property | |
| Foams = property | |
| Contains all foam materials. | |
| Honeycombs = property | |
| Contains all honeycomb materials. | |
| Isotropics = property | |
| Contains all isotropic materials. | |
| LaminateFamilies = property | |
| Contains all laminate families. | |
| Laminates = property | |
| Contains all laminate materials. | |
| LoadProperties = property | |
| Load Properties for this database. | |
| Orthotropics = property | |
| Contains all orthotropic materials. | |
| PackageManager = property | |
| Packages = property | |
| ProjectInfos = property | |
| Contains all projects. | |
| UiRunnerMode = property | |
| True while the API is being used through the HyperX UI. | |
| UnitSystem = property | |
| UserName = 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 = 1 ) |
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 ) |
| str hyperx.api.Application.CompilationDate | ( | self | ) |
Date that this version of the API was compiled.
| 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. |
| list[HyperXpertPoint] hyperx.api.Application.CreateHyperXpertPoints | ( | self, | |
| set[RunSetSpecifier] | runSetSpecifiers, | ||
| types.DoePlotMode | plotMode, | ||
| types.DoePointType | pointType, | ||
| bool | generateVariabilityForLinked, | ||
| bool | filterNonGeometry ) |
Create HyperXpert points based on specific run sets.
| 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.
| dict[int, list[RunSet]] hyperx.api.Application.GetRunSetsByProject | ( | self | ) |
Gets a dictionary mapping ProjectId to a List of RunSets.
| types.SimpleStatus hyperx.api.Application.ImportMaterialsFromExcel | ( | self, | |
| str | filePath, | ||
| bool | deletePlies = False, | ||
| bool | updateMaterialsInUseInOtherProjects = False ) |
Import materials from an Excel spreadsheet.
Returns true on successful import.
| deletePlies | Determines whether to update laminate or laminate families with changes that will delete plies in structures. |
| updateMaterialsInUseInOtherProjects | Determines whether to update materials in use by projects outside the active project. |
| 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. |
| None hyperx.api.Application.PauseUpdates | ( | self | ) |
Pause the sending of updates as items are created.Once resumed, all updates will be processed.
| None hyperx.api.Application.ResumeUpdates | ( | self | ) |
Resume the sending of updates.Any paused updates will be processed.
| 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.
The destination folder should be empty.
| str hyperx.api.Application.Version | ( | self | ) |
Get the current HyperX version number.
|
protected |
|
staticprotected |
|
staticprotected |
|
static |
The currently active project.
Only one project is ever active at a time.
|
static |
Analysis Properties for this database.
|
static |
|
static |
|
static |
Design Properties for this database.
|
static |
|
static |
|
static |
Contains all foam materials.
|
static |
Contains all honeycomb materials.
|
static |
Contains all isotropic materials.
|
static |
Contains all laminate families.
|
static |
Contains all laminate materials.
|
static |
Load Properties for this database.
|
static |
Contains all orthotropic materials.
|
static |
|
static |
|
static |
Contains all projects.
|
static |
True while the API is being used through the HyperX UI.
Otherwise false.
|
static |
|
static |