DesignAssessment class

This class is the parent class of all Design Assessment API objects that can be called from the python scripts. It is a global variable that can be accessed from anywhere in your script.

Table 95:  Members

Name Type Description
Helper Helper class See Helper class description for available properties and methods
Units string

Returns the solver units defined by the user in the analysis settings, represented as a string:

MKS: i.e. Metric (m, Kg, N, s, V, A)

UMKS: i.e. Metric (µm, Kg, µN, s, mV, mA)

CGS: i.e. Metric (cm, g, dyne, s, V, A)

NMM: i.e. Metric (mm, Kg, N, s, mV, mA)

LBFT: i.e. US Customary (ft, lbm, lbf, s, V, A)

LBIN: i.e. US Customary (in, lbm, lbf, s, V, A)

MeshData MeshData class See MeshData class description for available properties and methods
AttributeGroups() AttributeGroup[] class Array of AttributeGroup objects
AttributeGroups(string TreeName) AttributeGroup[] class Array of AttributeGroup objects with the given TreeName filtered from the available AttributeGroups
AttributeGroups(string Type, string SubType) AttributeGroup[] class Array of AttributeGroup objects with the given Type and SubType filtered from the available AttributeGroups
SolutionSelections() SolutionSelection[] class Array of SolutionSelection class objects
DAResults() DAResult[] classArray of DAResult objects
DAResults(string TreeName) DAResult[] class Array of DAResult objects with the given TreeName filtered from the available DAResults
DAResults(string Type, string SubType) DAResult[] class Array of DAResult objects with the given Type and SubType filtered from the available DAResults
AttributeGroupCount intA count of the number of AttributeGroup objects
SolutionSelectionCount intA count of the number of SolutionSelection objects
DAResultCountintA count of the number of DAResult objects
ProjectTitlestringThe title of the project
OutputDeprecatedWarnings(bool ShowWarnings)void

Sets the verbosity of the warnings related to deprecated properties/methods:

False – for no output

True – for full output for each call

Warnings are presented as text output to the solve or evaluate debug logs.

By default only a summary is shown; the user can then decide to add this function to their script to display them all, or display none.



Release 18.2 - © ANSYS, Inc. All rights reserved.