SMAFeaSimuliaExtensions (no NLS) Methods

Methods for simulation point and table access.

This page discusses:

SMAPoint.GetPointCoord()

Return the requested coordinate from the point.

Signature

SMAPoint.GetPointCoord(iPointIndex : Integer, iCoord : Integer) : LENGTH

Arguments

NameInput/OutputRequired?TypeComment
iPointIndexInYesInteger-
iCoordInYesInteger-

ReturnType

LENGTH

Example

let pointCoordinate (LENGTH)
let pointAccess (SMAPoint)

set pointAccess = ‘Abstractions\Rigid Body.1\Rigid Body Reference Point’
pointCoordinate = pointAccess.GetPointCoord(1,1)

SMATable.GetTableValue()

Return the requested value at the row, column of the table.

Signature

SMATable.GetTableValue(iRowIndex : Integer, iColumnIndex : Integer) : Real

Arguments

NameInput/OutputRequired?TypeComment
iRowIndexInYesInteger Index of row in table. Index starts at 0.
iColumnIndexInYesInteger Index of column in table. Index starts at 0.

ReturnType

Real

Example

let tableValue (Real)
let table (SMATable)

set table = 'Structural Analysis Case.1\Simulation Resource Set.1\Tabular Amplitude.1\Tabular Amplitude Table'
tableValue = table.GetTableValue(1,1)

SMATable.SetTableValue()

Assign the specified value at the row, column of the table.

Signature

SMATable.SetTableValue(iRowIndex : Integer, iColumnIndex : Integer, iValue : Real) : Boolean

Arguments

NameInput/OutputRequired?TypeComment
iRowIndexInYesInteger Index of row in table. Index starts at 0.
iColumnIndexInYesInteger Index of column in table. Index starts at 0.
iValueInYesReal Value to be stored in table.

ReturnType

Boolean

Example

let status (Boolean)
let table (SMATable)

set table = 'Structural Analysis Case.1\Simulation Resource Set.1\Tabular Amplitude.1\Tabular Amplitude Table'
status = table.SetTableValue(1, 1, 2.5)