TinkeCell API  1.0.0
C/Python/Octave/Ruby API
Functions
Connections

change appearance of connection arcs More...

Functions

BEGIN_C_DECLS TCAPIEXPORT tc_items tc_getConnectedNodesWithRole (long connection, const char *role)
 get the parts with a specific role in the given connection, such as reactant
TCAPIEXPORT tc_items tc_getConnectionsWithRole (long part, const char *role)
 get connections where the given parts has a specific role, such as reactant
TCAPIEXPORT long tc_insertConnection (tc_items parts, const char *name, const char *family)
 connect a set of parts. The role of each part is automatically determined by its type. Give the connection name and family. returns the inserted connection
TCAPIEXPORT tc_items tc_getConnectedNodes (long connection)
 get the connected parts for a connection
TCAPIEXPORT tc_items tc_getConnections (long part)
 get connections for a part

Detailed Description

change appearance of connection arcs


Function Documentation

TCAPIEXPORT tc_items tc_getConnectedNodes ( long  connection)

get the connected parts for a connection

Parameters:
intaddress of a connection, e.g. obtained using tc_find
Returns:
tc_items all nodes connection by the given connection
BEGIN_C_DECLS TCAPIEXPORT tc_items tc_getConnectedNodesWithRole ( long  connection,
const char *  role 
)

get the parts with a specific role in the given connection, such as reactant

Parameters:
intaddress of a connection, e.g. obtained using tc_find
stringa role, e.g. Reactant
Returns:
tc_items all nodes in the given connection with the given role
TCAPIEXPORT tc_items tc_getConnections ( long  part)

get connections for a part

Parameters:
intaddress of a node, e.g. obtained using tc_find
Returns:
tc_items all connections linked to the given node
TCAPIEXPORT tc_items tc_getConnectionsWithRole ( long  part,
const char *  role 
)

get connections where the given parts has a specific role, such as reactant

Parameters:
intaddress of a node, e.g. obtained using tc_find
stringa role, such as reactant
Returns:
tc_items connections linked to the given node with the given role
TCAPIEXPORT long tc_insertConnection ( tc_items  parts,
const char *  name,
const char *  family 
)

connect a set of parts. The role of each part is automatically determined by its type. Give the connection name and family. returns the inserted connection

Parameters:
tc_itemsnodes to be connected
stringname of new connection
stringtype of the new connection, i.e. one of the connection types in the catalog
 All Data Structures