poIResultMathCtrl AddResource

Adds an external resource file to the current model.

Syntax

rmath_handle AddResourceres_name file_path

Application

HyperView Tcl Modify

Description

This command adds an external resource file to the current model. An external resource file is typically an xml file which contains additional tables like: material yield, thickness table, etc. This command is generally used when you would like to access some of these external table values along with tables from the model/result file.

Inputs

res_name
The name for the resource (which must be unique).
file_path
The complete path of the file name.

Example

To create a selection set containing all nodes and make it visible in the graphics area:
hwi OpenStack
hwi GetSessionHandle session_handle
session_handle GetProjectHandle project_handle
project_handle GetPageHandle page_handle [project_handle GetActivePage]
page_handle GetWindowHandle window_handle [page_handle GetActiveWindow]
window_handle GetClientHandle client_handle

set mid [client_handle AddResultMathAnalysis “c:/samples/bumper/d3plot” “c:/samples/bumper/d3plot”]

client_handle GetModelHandle model_handle $mid
model_handle GetResultCtrlHandle result_handle
result_handle GetResultMathCtrlHandle rmath_handle

rmath_handle AddResource External c:/external_table.xml


hwi CloseStack

Errors

Returns a non-zero value if an error occurs.