Skip to content

TclAction

TclAction

TclAction(command: str)

Bases: Action

Tcl action to execute raw custom Tcl scripts.

TclAction passes an arbitrary raw string command directly into the exported OpenSees Tcl script. Use this to incorporate custom user logic, procedure calls, or OpenSees features not natively modeled in Femora components.

Tcl form

<command>

Example
from femora.core.model import Model

model = Model()
action = model.actions.tcl(command="puts \"Hello from OpenSees!\"")

Create a TclAction.

Parameters:

Name Type Description Default
command str

The raw Tcl command string to execute.

required