.. highlightlang:: us .. _auto_setdatasetstyle: auto_SetDatasetStyle ==================== .. index:: auto_SetDatasetStyle .. us.tag auto_SetDatasetStyle NOTREADYENGLISH :ref:`auto_SetDatasetStyle` sets the dataset style for the next dataset to be created with the :ref:`auto_LoadDataset` function. .. function:: bool = auto_SetDatasetStyle(ssDiagram, nIndex) bool = auto_SetDatasetStyle(ssDiagram, ssStyleName) .. us.return **Return Value** *bool* is TRUE (1), when the style is set and otherwise, FALSE (0). .. us.params **Parameters** .. uparam:: ssDiagram *ssDiagram* is the name of the diagram into which the next dataset should be imported. .. uparam:: nIndex *nIndex* is the name of the style. It is case sensitive. .. uparam:: ssStyleName *ssStyleName* is the name of the style. The name is case sensitive. .. us.example **Example** :: auto_SetDatasetStyle("Torque", 3) auto_LoadDataset("Torque", "RPM", "Torque"); .. seealso:: :ref:`overview-automation`, :ref:`auto_LoadStyleFile`, :ref:`auto_LoadTemplate`, :ref:`auto_xy_SetStyle` :sub:`id-1939463`