Add a new block of the specified type on the specified node.
Syntax
Function eda_add_block(NodeName, TagName, BlkType)
Properties
The eda_add_block function syntax has these parts:
Part |
Description |
object |
An object expression that evaluates to an object in the Applies To list. |
NodeName |
String. The node name on which to add the block. |
TagName |
String. The name to identify the tag (maximum of 256 characters). |
BlkType |
Integer. The block type index. |
Return Value
Integer. FE_OK if data is valid
Remarks
Note that the type is passed as an integer. A type string such as “AI” can be converted to a type index by calling the eda_type_to_index function as listed below. The new tag will be initialized to the same default values that appear when a new tag is created with DatabaseManager. These values can be written using the various other functions mentioned here.