*SetCurve() - User Defined

Sets the values associated with a user defined curve. Applies to 3D curves only.

Syntax

*SetCurve(crv_name, USER, `expr`)
*Set(crv_name.use_local_dll, TRUE|FALSE) 
*Set(crv_name.local_dll,"[path]/filename")

Arguments

crv_name
The variable name of the user defined curve.
Data type: varname
USER
Specifies that the curve is defined with a user subroutine.
expr
A solver expression enclosed in backquotes to specify arguments for the user subroutine.  
Data type: string
crv_name.use_local_dll
The property of the curve used to hold the boolean value.
TRUE|FALSE
Set to TRUE if a local user DLL will be used and overrides the machine's DLL.
Data type: boolean
crv_name.local_dll
The property of the curve used to hold the path and filename of the local DLL.
"[path]/filename"
The path and filename of the local DLL that contains the user subroutine.
Data type: string

Example

*BeginMDL(model, "The Model")
 *Curve(crv_11, "Curve 11", 3D, CARTESIAN, NOWRITE, CURVE_POINTS, CLOSED)
 *SetCurve(crv_11, USER, `USER( 300, 1, 2)`)
 *Set(crv_11.use_local_dll, TRUE)
 *Set(crv_11.local_dll, "My local curve dll")
*EndMDL()

Context

*BeginMdl()

*DefineAnalysis()

*DefineSystem()

Comments

For this type of curve, a user subroutine must be written, compiled, and linked into a user DLL.