Model.CE_ConnectorSetVectorByMark#

Model.CE_ConnectorSetVectorByMark(collection, type, i, j, k, vector, node1, node2)#

Sets projection vector for connectors specified by collection.

Parameters:
  • collection (Collection) – The collection containing the input connector entities.

  • type (unsigned int) –

    The method to set the vector:

    0 - use i (see next argument).

    1 - use j (see next argument).

    2 - use k (see next argument).

  • i (double) – 1st of 3 float number defining a vector.

  • j (double) – 2nd of 3 float number defining a vector.

  • k (double) – 3rd of 3 float number defining a vector.

  • vector (Entity) – HyperMesh Vector entity ID.

  • node1 (Entity) – 1st node ID to define a vector in HyperMesh.

  • node2 (Entity) – 2nd node ID to define a vector in HyperMesh.

Example#

Set a projection vector for connector with IDs 1, 2, 3 using vector with ID 3#
import hm
import hm.entities as ent

model = hm.Model()

model.CE_ConnectorSetVectorByMark(
    collection=hm.Collection(model, ent.Connector, [1, 2, 3]),
    type=1,
    i=0.0,
    j=0.0,
    k=0.0,
    vector=ent.Vector(model, 3),
    node1=None,
    node2=None,
)

Note

Projection vector for a connector will be used during realization process.