mdlIObject AddSystemFromNewInlinedDef
Adds a new definition type entity.
Syntax
mdlIObject_handle AddSystemFromNewInlinedDefnew_handle, keyword, varname, label, def_name
Application
MotionView Tcl Modify
Description
This command adds a new definition type entity using the ‘varname’, ‘label’, and ‘def_name’ arguments.
Inputs
- new_handle
- The handle of the newly created system.
- Keyword
- The type of definition (System, Template, Dataset, Graphic, or Analysis).
- varname
- The variable name for the system to be created.
- label
- The label for the new system.
- def_name
- The definition name of the new system.
Example
hwi GetSessionHandle mySessionName
mySessionName GetProjectHandle myProjectName
set activePageNum [myProjectName GetActivePage]
myProjectName GetPageHandle myPageName $activePageNum
set activeWinNum [myPageName GetActiveWindow]
myPageName GetWindowHandle myWindowName $activeWinNum
myWindowName GetClientHandle myClientName
myClientName GetModelHandle myModelName
myModelName AddSystemFromNewInlinedDef tmpl_handle Analysis tmpl_0 "\"TEMPLATE 0\"" def_tmpl_0
myModelName AddSystemFromNewInlinedDef sys_handle System sys_0 "\"SYSTEM 0\"" def_sys_0
tmpl_handle ReleaseHandle
sys_handle ReleaseHandle
myModelName ReleaseHandle
myClientName ReleaseHandle
myWindowName ReleaseHandle
myPageName ReleaseHandle
myProjectName ReleaseHandle
mySessionName ReleaseHandle
Errors
Returns the handle of the newly created system if successful. If there is an error, an error code will be returned.