Model.CE_ConnectorSetVectorById#
- Model.CE_ConnectorSetVectorById(ce_id, type, i, j, k, vector, node1, node2)#
Sets the projection vector for a connector specified by ID.
- Parameters:
ce_id (unsigned int) – The connector entity ID.
type (unsigned int) –
The method used to set the vector:
0 - Use
i,j, andkvalues (see arguments below). These should be specified as the next 3 arguments to this function.1- Requires a vector id (see
vectorbelow) from which the vectori,j, andkwill be taken internally. Thei,j, andksyntax arguments can be set as 0.0.2 - Requires the two node id’s (
node1andnode2below) as the last two arguments to this function. These node ID’s will be required to create a vector, and assigned to thece_id. The rest of the above arguments can be set as 0.0. These two nodes should not be coincident.i (double) – 1st of 3 float numbers defining a vector. Only applies when
type=0.j (double) – 2nd of 3 float numbers defining a vector. Only applies when
type=0.k (double) – 3rd of 3 float numbers defining a vector. Only applies when
type=0.vector (Entity) – HyperMesh vector entity ID. Only applies when
type=1.node1 (Entity) – 1st node ID to define a vector in HyperMesh. Only applies when
type=2.node2 (Entity) – 2nd node ID to define a vector in HyperMesh. Only applies when
type=2.
Example#
Set a projection vector for connector with ID 1 using vector with ID 3#import hm import hm.entities as ent model = hm.Model() model.CE_ConnectorSetVectorById( ce_id=1, type=1, i=0.0, j=0.0, k=0.0, vector=ent.Vector(model, 3), node1=None, node2=None, )
Note
The connector’s projection vector will be used during the realization process.