mdlIObject GetLinkedSystemList

Gets the list of the systems which are linked to particular system. Linked systems can be either DATA or DEFINITION linked.

Syntax

mdlIObject_handle GetLinkedSystemList type

Application

MotionView Tcl Query

Description

This command obtains the list of all the systems which are linked based on the type specified. If the type is DATA, then a list of systems which are linked by data will be returned. If the type is DEFINITION, then a list of systems which are linked by definition will be returned.

Inputs

type
The type can be either DATA or DEFINITION.

Example

To obtain the list of all the systems which are linked based on the type specified:
hwi OpenStack
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 new_handle System sys_0 "\"SYSTEM 0\"" def_sys_1
myModelName AddSystemFromDefInMemory sys_handle sys_1 "\"SYSTEM 0\"" def_sys_1
sys_handle GetLinkedSystemList DEFINITION #It will return MODEL.sys_0
sys_handle ReleaseHandle
new_handle ReleaseHandle
myModelName ReleaseHandle
myClientName ReleaseHandle
myWindowName ReleaseHandle
myPageName ReleaseHandle
myProjectName ReleaseHandle
mySessionName ReleaseHandle
hwi CloseStack

Errors

Returns the candidate list if successful.