Model.curvemodifypointcords#

Model.curvemodifypointcords(curve_id, point_number, xstring, xvalue, ystring, yvalue)#

Modifies the x or y coordinate of an existing point on a curve.

Parameters:
  • curve_id (unsigned int) – The ID of the queried curve.

  • point_number (int) – The point number on the curve to be modified. Point numbering starts with 1.

  • xstring (hwString) – The string identifiers to modify the x coordinate of the point. Valid value is -x.

  • xvalue (double) – The value to be modified of the x coordinate of the point.

  • ystring (hwString) – The string identifiers to modify the y coordinate of the point. Valid value is -y.

  • yvalue (double) – The value to be modified of the y coordinate of the point.

Example#

Modify the x coordinate of the second point to 5.0#
import hm
import hm.entities as ent

model = hm.Model()

model.curvemodifypointcords(curve_id=1, point_number=2, xstring="-x", xvalue=5.0, ystring="",yvalue=0.0)
Modify the y coordinate of the second point to 100.0#
import hm
import hm.entities as ent

model = hm.Model()

model.curvemodifypointcords(curve_id=1, point_number=2, xstring="", xvalue=0, ystring="-y",yvalue=100.0)
Modify the y coordinate of the second point to 100.0#
import hm
import hm.entities as ent

model = hm.Model()

model.curvemodifypointcords(curve_id=1, point_number=2, xstring="", xvalue=0, ystring="-y",yvalue=100.0)
Modify the second point x coordinate to 5.0 and y co - ordinate to 100.0#
import hm
import hm.entities as ent

model = hm.Model()

model.curvemodifypointcords(curve_id=1, point_number=2, xstring="-x", xvalue=5.0, ystring="-y",yvalue=100.0)

Note

Either -x xvalue or -y yvalue, or both can be specified.

If only x coordinate needs to be modified, specify -x xvalue.

If only y coordinate needs to be modified, specify -y yvalue.

If both x and y coordinates need to be modified, specify -x xvalue -y yvalue.