create_dataset#
- Mechanical.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:
- name
str
Name of the dataset (without a prefix for a project dataset).
- x
list
List of X-axis values for the dataset.
- y
list
List of Y-axis values for the dataset.
- z
list
,optional
List of Z-axis values for a 3D dataset only. The default is
None
.- v
list
,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_unit
str
,optional
Units for the X axis. The default is
""
.- y_unit
str
,optional
Units for the Y axis. The default is
""
.- z_unit
str
,optional
Units for the Z axis for a 3D dataset only. The default is
""
.- v_unit
str
,optional
Units for the V axis for a 3D dataset only. The default is
""
.- sortbool,
optional
Sort dataset. The default is
True
.
- name
- Returns:
ansys.aedt.core.application.variables.DataSet
Dataset object when the dataset is created,
False
otherwise.
References
>>> oProject.AddDataset >>> oDesign.AddDataset