Represents a HyperX project within a database. More...
Public Member Functions | |
| __init__ (self, _api.Project project) | |
| types.TernaryStatus | AnalyzeZones (self, item1=None) |
| types.TernaryStatus | AnalyzeZones (self, tuple[int] zoneIds) |
| Analyze a list of zones by ID. | |
| types.TernaryStatus | AnalyzeZones (self, tuple[ZoneBase] zones=None) |
| Analyze a list of zones. | |
| Zone | CreateNonFeaZone (self, types.FamilyCategory category, str name=None) |
| Create a non-FEA zone by name and category. | |
| None | Dispose (self) |
| None | ExportCad (self, item1=None, item2=None) |
| None | ExportCad (self, str filePath) |
| Export all CAD for this project to a file. | |
| None | ExportCad (self, tuple[int] cadIds, str filePath) |
| Export CAD by Id. | |
| None | ExportFem (self, str destinationFolder) |
| bool | FullRunSolverAnalysis (self, str inputFile=None, str outputFile=None, set[int] zones=None, set[int] sectionCuts=None, set[int] panelSegments=None, int nThreads=None) |
| Run solver in analysis mode with the specified items targeted. | |
| bool | FullRunSolverSizing (self, str inputFile=None, str outputFile=None, set[int] zones=None, set[int] sectionCuts=None, set[int] panelSegments=None, int nThreads=None) |
| Run solver in sizing mode with the specified items targeted. | |
| str | GenerateSolverAnalysisInputFile (self, str inputFile=None, set[int] zones=None, set[int] sectionCuts=None, set[int] panelSegments=None) |
| Generate analysis input file for solver with the specified items targeted. | |
| str | GenerateSolverSizingInputFile (self, str inputFile=None, set[int] zones=None, set[int] sectionCuts=None, set[int] panelSegments=None) |
| Generate sizing input file for solver with the specified items targeted. | |
| list[str] | GetDashboardCompanies (self) |
| This method fetches an array of Dashboard company names that are available to the user who is currently logged in. | |
| list[str] | GetDashboardPrograms (self, str companyName) |
| This method fetches an array of Dashboard program names that are available to the user who is currently logged in. | |
| list[str] | GetDashboardTags (self, str companyName) |
| This method fetches an array of Dashboard tags that are available to the user who is currently logged in. | |
| set[int] | GetJointsWithoutResults (self, tuple[Joint] joints) |
| Given a list of joints, returns the ids of the joints that were passed in but did not have results. | |
| None | ImportCad (self, str filePath) |
| Import CAD from a file. | |
| str | ImportFeaResults (self, bool alwaysImport=False) |
| Manually import design loads. | |
| types.SimpleStatus | PackageProject (self, str destinationFilePath, bool includeFemInputFiles=True, bool includeFemOutputFiles=True, bool includeWorkingFolder=True, bool includeLoadFiles=True, bool includePluginPackages=False, bool removeAllOtherProjects=False, bool deleteUnusedPropertiesAndMaterials=False, bool mapFemFilesToRelativePaths=True, tuple[str] additionalFiles=None) |
| Create a .hxp project package from the ActiveProject. | |
| None | RegeneratePfem (self) |
| Regenerates and displays the preview FEM. | |
| None | ReturnToUnusedFem (self, tuple[int] zoneNumbers=None, tuple[int] jointIds=None) |
| Return zones to unused FEM or delete non-FEA zones. | |
| bool | RunSolver (self, str inputFile, str outputFile=None, int nThreads=None) |
| Run solver with pre-generated input file. | |
| None | SetFemFormat (self, types.ProjectModelFormat femFormat) |
| SetUnitsStatus | SetFemUnits (self, DbForceUnit femForceId, DbLengthUnit femLengthId, DbMassUnit femMassId, DbTemperatureUnit femTemperatureId) |
| types.SimpleStatus | SizeJoints (self, tuple[Joint] joints=None) |
| Size a list of joints. | |
| types.TernaryStatus | SizeZones (self, item1=None) |
| types.TernaryStatus | SizeZones (self, tuple[int] zoneIds) |
| Size a list of zones by ID. | |
| types.TernaryStatus | SizeZones (self, tuple[ZoneBase] zones=None) |
| Size a list of zones. | |
| Task | UnimportFemAsync (self) |
| types.SimpleStatus | Upload (self, str uploadSetName, str company, str program, tuple[str] tags, str notes, set[int] zoneIds, set[int] jointIds) |
| Does some checks to make sure the given parameters are valid, then uploads the given zones and joints to the Dashboard. | |
Protected Attributes | |
| _Entity = project | |
Static Protected Attributes | |
| _FemDataSet | |
| _HyperFea | |
Properties | |
| AnalysisProperties = property | |
| Analysis Properties for this project. | |
| Beams = property | |
| DesignLoads = property | |
| DesignProperties = property | |
| Design properties for this project. | |
| DiscreteFieldTables = property | |
| FemDataSet = property | |
| FemFormat = property | |
| HyperFea = property | |
| Id = property | |
| Joints = property | |
| LoadProperties = property | |
| Load Properties for this project. | |
| Name = property | |
| Panels = property | |
| PanelSegments = property | |
| Rundecks = property | |
| SectionCuts = property | |
| Sets = property | |
| Structures = property | |
| WorkingFolder = property | |
| Zones = property | |
Represents a HyperX project within a database.
| hyperx.api.Project.__init__ | ( | self, | |
| _api.Project | project ) |
| types.TernaryStatus hyperx.api.Project.AnalyzeZones | ( | self, | |
| item1 = None ) |
Analyze a list of zones. Marked as success if sizing completes normally or with warnings.
Analyze a list of zones by ID. Marked as success if sizing completes normally or with warnings.
| types.TernaryStatus hyperx.api.Project.AnalyzeZones | ( | self, | |
| tuple[int] | zoneIds ) |
Analyze a list of zones by ID.
Marked as success if sizing completes normally or with warnings.
| types.TernaryStatus hyperx.api.Project.AnalyzeZones | ( | self, | |
| tuple[ZoneBase] | zones = None ) |
Analyze a list of zones.
Marked as success if sizing completes normally or with warnings.
| Zone hyperx.api.Project.CreateNonFeaZone | ( | self, | |
| types.FamilyCategory | category, | ||
| str | name = None ) |
Create a non-FEA zone by name and category.
| None hyperx.api.Project.Dispose | ( | self | ) |
| None hyperx.api.Project.ExportCad | ( | self, | |
| item1 = None, | |||
| item2 = None ) |
Export all CAD for this project to a file.
Export CAD by Id.
| None hyperx.api.Project.ExportCad | ( | self, | |
| str | filePath ) |
Export all CAD for this project to a file.
| None hyperx.api.Project.ExportCad | ( | self, | |
| tuple[int] | cadIds, | ||
| str | filePath ) |
Export CAD by Id.
| None hyperx.api.Project.ExportFem | ( | self, | |
| str | destinationFolder ) |
| bool hyperx.api.Project.FullRunSolverAnalysis | ( | self, | |
| str | inputFile = None, | ||
| str | outputFile = None, | ||
| set[int] | zones = None, | ||
| set[int] | sectionCuts = None, | ||
| set[int] | panelSegments = None, | ||
| int | nThreads = None ) |
Run solver in analysis mode with the specified items targeted.
Generates input file, runs solver, reads output. Returns true on success.
| bool hyperx.api.Project.FullRunSolverSizing | ( | self, | |
| str | inputFile = None, | ||
| str | outputFile = None, | ||
| set[int] | zones = None, | ||
| set[int] | sectionCuts = None, | ||
| set[int] | panelSegments = None, | ||
| int | nThreads = None ) |
Run solver in sizing mode with the specified items targeted.
Generates input file, runs solver, reads output. Returns true on success.
| str hyperx.api.Project.GenerateSolverAnalysisInputFile | ( | self, | |
| str | inputFile = None, | ||
| set[int] | zones = None, | ||
| set[int] | sectionCuts = None, | ||
| set[int] | panelSegments = None ) |
Generate analysis input file for solver with the specified items targeted.
Returns filepath.
| str hyperx.api.Project.GenerateSolverSizingInputFile | ( | self, | |
| str | inputFile = None, | ||
| set[int] | zones = None, | ||
| set[int] | sectionCuts = None, | ||
| set[int] | panelSegments = None ) |
Generate sizing input file for solver with the specified items targeted.
Returns filepath.
| list[str] hyperx.api.Project.GetDashboardCompanies | ( | self | ) |
This method fetches an array of Dashboard company names that are available to the user who is currently logged in.
The URL and authentication token are taken from the last Dashboard login made through HyperX.
| list[str] hyperx.api.Project.GetDashboardPrograms | ( | self, | |
| str | companyName ) |
This method fetches an array of Dashboard program names that are available to the user who is currently logged in.
The URL and authentication token are taken from the last Dashboard login made through HyperX.
| list[str] hyperx.api.Project.GetDashboardTags | ( | self, | |
| str | companyName ) |
This method fetches an array of Dashboard tags that are available to the user who is currently logged in.
The URL and authentication token are taken from the last Dashboard login made through HyperX.
| set[int] hyperx.api.Project.GetJointsWithoutResults | ( | self, | |
| tuple[Joint] | joints ) |
Given a list of joints, returns the ids of the joints that were passed in but did not have results.
If the list of joints is not a subset of the joints passed into the previous joint sizing operation, a new sizing operation will be kicked off.
| None hyperx.api.Project.ImportCad | ( | self, | |
| str | filePath ) |
Import CAD from a file.
| str hyperx.api.Project.ImportFeaResults | ( | self, | |
| bool | alwaysImport = False ) |
Manually import design loads.
| alwaysImport | If true, loads are imported even if loads have already previously been imported. |
| InvalidOperationException | Throws on failure. |
| types.SimpleStatus hyperx.api.Project.PackageProject | ( | self, | |
| str | destinationFilePath, | ||
| bool | includeFemInputFiles = True, | ||
| bool | includeFemOutputFiles = True, | ||
| bool | includeWorkingFolder = True, | ||
| bool | includeLoadFiles = True, | ||
| bool | includePluginPackages = False, | ||
| bool | removeAllOtherProjects = False, | ||
| bool | deleteUnusedPropertiesAndMaterials = False, | ||
| bool | mapFemFilesToRelativePaths = True, | ||
| tuple[str] | additionalFiles = None ) |
Create a .hxp project package from the ActiveProject.
| None hyperx.api.Project.RegeneratePfem | ( | self | ) |
Regenerates and displays the preview FEM.
If running a script outside of the Script Runner, do not call this method
| None hyperx.api.Project.ReturnToUnusedFem | ( | self, | |
| tuple[int] | zoneNumbers = None, | ||
| tuple[int] | jointIds = None ) |
Return zones to unused FEM or delete non-FEA zones.
| InvalidOperationException | Throws if run sets exist in this project. |
| bool hyperx.api.Project.RunSolver | ( | self, | |
| str | inputFile, | ||
| str | outputFile = None, | ||
| int | nThreads = None ) |
Run solver with pre-generated input file.
Returns true on success.
| None hyperx.api.Project.SetFemFormat | ( | self, | |
| types.ProjectModelFormat | femFormat ) |
| SetUnitsStatus hyperx.api.Project.SetFemUnits | ( | self, | |
| DbForceUnit | femForceId, | ||
| DbLengthUnit | femLengthId, | ||
| DbMassUnit | femMassId, | ||
| DbTemperatureUnit | femTemperatureId ) |
| types.SimpleStatus hyperx.api.Project.SizeJoints | ( | self, | |
| tuple[Joint] | joints = None ) |
Size a list of joints.
| types.TernaryStatus hyperx.api.Project.SizeZones | ( | self, | |
| item1 = None ) |
Size a list of zones. Marked as success if sizing completes normally or with warnings.
| zones | The zones to be sized. |
| <br> | Size a list of zones by ID. Marked as success if sizing completes normally or with warnings. |
| types.TernaryStatus hyperx.api.Project.SizeZones | ( | self, | |
| tuple[int] | zoneIds ) |
Size a list of zones by ID.
Marked as success if sizing completes normally or with warnings.
| types.TernaryStatus hyperx.api.Project.SizeZones | ( | self, | |
| tuple[ZoneBase] | zones = None ) |
Size a list of zones.
Marked as success if sizing completes normally or with warnings.
| zones | The zones to be sized. |
| Task hyperx.api.Project.UnimportFemAsync | ( | self | ) |
| types.SimpleStatus hyperx.api.Project.Upload | ( | self, | |
| str | uploadSetName, | ||
| str | company, | ||
| str | program, | ||
| tuple[str] | tags, | ||
| str | notes, | ||
| set[int] | zoneIds, | ||
| set[int] | jointIds ) |
Does some checks to make sure the given parameters are valid, then uploads the given zones and joints to the Dashboard.
The URL and authentication token are taken from the last Dashboard login made through HyperX.
| uploadSetName | The name of the set of data uploaded to the Dashboard. |
| company | The name of the company to associate with the upload set. This company object must be made through the Dashboard UI. |
| program | The name of the program to associated with the upload set. A new program will be created if the program name does not already exist. |
| tags | The list of tags to be associated with the upload set. Any tags that do not exist will be created automatically on upload. |
| notes | The notes to be associated with the upload set. |
| zoneIds | The zone IDs to include in the upload set. |
| jointIds | The joint IDs to include in the upload set. |
|
protected |
|
staticprotected |
|
staticprotected |
|
static |
Analysis Properties for this project.
|
static |
|
static |
|
static |
Design properties for this project.
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
Load Properties for this project.
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |