Home/ Reference/ Curve & Node

node.PositionX / node.PositionY

One node's coordinates, read/write. Values are in document coordinates and follow doc.Unit. Moving points in bulk and fixing symmetry both depend on this.

Signature

node.PositionX / node.PositionY

Notes

One node's coordinates, read/write. Values are in document coordinates and follow doc.Unit. Moving points in bulk and fixing symmetry both depend on this.

Python example (runnable)

Requires pywin32. The example assumes app / doc / page / layer are already connected. See Connection & Init
Python
shape = app.ActiveSelectionRange(1)
shape.ConvertToCurves()                             # make sure it is a curve

nodes = shape.Curve.Nodes
for i in range(1, nodes.Count + 1):
    nd = nodes.Item(i)
    print("#", i, " nodes: ", nd.PositionX, nd.PositionY)

About this section: Curve & Node

Curve & Node — subpaths and nodes.

Other entries in this section