Model.alignnode3#
- Model.alignnode3(end_node1, end_node2, collection)#
Aligns multiple nodes along the imaginary line between two other nodes.
- Parameters:
end_node1 (Entity) – The object describing the first end node.
end_node2 (Entity) – The object describing the second end node.
collection (Collection) – The collection of nodes to align.
Example#
Align nodes with IDs 100 - 110 between nodes with ID 200 and 300#import hm import hm.entities as ent model = hm.Model() nodes = hm.Collection(model,ent.Node,list(range(100-111))) model.alignnode3( end_node1=ent.Node(model,200), end_node2=ent.Node(model,300), collection=nodes )