add_point#

DataSet.add_point(x: float, y: float, z: float = None, v: float = None) bool#

Add a point to the dataset.

Parameters:
xfloat

X coordinate of the point.

yfloat

Y coordinate of the point.

zfloat, optional

The default is None.

vfloat, optional

The default is None.

Returns:
bool

True when successful, False when failed.

References

>>> oProject.EditDataset
>>> oDesign.EditDataset

Examples

>>> from ansys.aedt.core import Hfss
>>> hfss = Hfss()
>>> dataset = hfss.create_dataset1d_project("MyCurve", [0, 1], [1, 2])
>>> dataset.add_point(2, 3)