create_dataset#

Q3d.create_dataset(name, x, y, z=None, v=None, is_project_dataset=True, x_unit='', y_unit='', z_unit='', v_unit='', sort=True)[source]#

Create a dataset.

Parameters:
namestr

Name of the dataset (without a prefix for a project dataset).

xlist

List of X-axis values for the dataset.

ylist

List of Y-axis values for the dataset.

zlist, optional

List of Z-axis values for a 3D dataset only. The default is None.

vlist, optional

List of V-axis values for a 3D dataset only. The default is None.

is_project_datasetbool, optional

Whether it is a project data set. The default is True.

x_unitstr, optional

Units for the X axis. The default is "".

y_unitstr, optional

Units for the Y axis. The default is "".

z_unitstr, optional

Units for the Z axis for a 3D dataset only. The default is "".

v_unitstr, optional

Units for the V axis for a 3D dataset only. The default is "".

sortbool, optional

Sort dataset. The default is True.

Returns:
ansys.aedt.core.application.variables.DataSet

Dataset object when the dataset is created, False otherwise.

References

>>> oProject.AddDataset
>>> oDesign.AddDataset