AddInfo Data Member Function

Configures the <NodeSelector> object to form relationships with from the <Node> in which the <NodeSelector> is resident, and one or more <Node> objects in the same document ( or different documents ). For example, the expression 'DataIn.attributes.position' refers to three separate <Node> objects. 'DataIn' refers to an <InterfaceBlockNode>, 'attributes' refers to a <StructInstanceNode>, and 'position' refers to a <Float32VectorNode>. These <Node> objects may be in one or more documents, and this function configures the <NodeSelector> object to refer to these <Node> objects in order to form an expression. This function uses three container object parameters, a <List> object, an <Int32Array> object, and a <StrList> object. This function will not perform any work if the number of items in the container objects are not equal, or if the <Node> object parameter is not resident in a document ( via Model.AddNode() ) that has been saved at least once.

Prototype

int32 AddInfo( Node p_oNodeInModel, NodeBuffer p_lNodes, StrList p_slCodeObjectNames, Int32Array p_aiArraySizes )

Parameters

Parameter Type Parameter Name Documentation
<Node>p_oNodeInModelA <Node> in the document. The document must have been saved at least once ( so that it has a valid filename ) and the <Node> must have been added to the document.
<NodeBuffer>p_lNodesA <List> object containing the <Node> objects forming the expression that the <NodeSelector> should track. The number of items in the <List> must match the number of items in the <Int32Array> and <StrList> container object parameters.
<StrList>p_slCodeObjectNamesA <StrList> containing name information about the <Node> objects that form the expression. The <StrList> could contain the names of the <Node> objects, or it could contain <VariableNode> values and block names. The number of items in the <StrList> must match the number of items in the <List> and <Int32Array> container object parameters.
<Int32Array>p_aiArraySizesAn <Int32Array> containing the array sizes for the <Node> objects that form the expression, where 0 indicates the object is not an array, -1 indicates the object is an implicitly sized array, and a positive <int32> indicates the size of the array. The number of items in the <Int32Array> must match the number of items in the <List> and <StrList> container object parameters.

Examples

Copy Text To Clipboard

None published. Please look for an example in the Scenome Scripting Language code base.