.. highlightlang:: us .. index:: LayerAddDataset .. _layeradddataset: LayerAddDataset =============== .. us.tag LayerAddDataset ENGLISH LayerSet :ref:`LayerAddDataset` adds datasets to the given diagram. .. function:: bool = LayerAddDataset(hLayer, hvData) bool = LayerAddDataset(hLayer, hvData, bTail) .. us.return **Return Value** If the function succeeds, the return value is TRUE (1); otherwise it is FALSE (0). .. us.params **Parameters** .. uparam:: hLayer Identifies the layer. .. uparam:: hvData *hvData* is a vector with dataset handles. .. uparam:: bTail If *bTail* is TRUE (1) the dataset is added to the end of the list. If *bTail* is FALSE (0) the dataset is inserted at the beginning of the list. Default value is TRUE (1). .. seealso:: :ref:`overview-diagrams`, :ref:`LayerCreate`, :ref:`XYCreate`, :ref:`XYZCreate`, :ref:`LayerAddObjects` :sub:`id-2084055`