Callout (hwx.inspire)#

class Callout(location, resultTypes, solverType='OPTISTRUCT_SOLVER', name=None)#

Bases: Named

Display analysis results at a point on a part or section plane.

Only visible in contexts like Structure -> Analysis Explorer when the user clicks a button to display them.

Attribute Table#

Name

Type

location

Location

resultTypes

List

Method Table#

Name

Description

getValidResultTypes ()

Get All the Valid Result type names.

Example

from hwx import inspire
from hwx.inspire import gui
from hwx.inspire.demo import openDemoFile

from hwx.common import settings
solverSetting = "Inspire/Run Options/Run Options/Analysis solver"
if settings.getSetting(solverSetting) == "SimSolid":
  Analysis = inspire.SimSolidAnalysis
else:
  Analysis = inspire.OptiStructAnalysis

model = openDemoFile('ThreeBlocks.stmod')
with gui.waitCursor(message="Solving..."):
  analysis = Analysis()

callout1 = inspire.Callout(
  location    = (0.06331, 0.02411, 0.04500),
  resultTypes = ["Displacement", "Factor of Safety", "Tension/Compression"]
)
print("Callout created:", model.getChildren(type=inspire.Callout))

# Show results in Analysis Explorer dialog
analysis.importResults()
print("Run showCallouts to see the callouts.")
property location#

The callout location.

property resultTypes#

ResultType for Callout