// @pymethod |PyIObjectCollection|AddFromArray|Adds a number of objects contained in an <o PyIObjectArray> collection PyObject *PyIObjectCollection::AddFromArray(PyObject *self, PyObject *args) { IObjectCollection *pIOC = GetI(self); if ( pIOC == NULL ) return NULL; IObjectArray *Source; PyObject *obSource; // @pyparm <o PyIObjectArray>|Source||Objects to be added to the collection if ( !PyArg_ParseTuple(args, "O:AddFromArray", &obSource)) return NULL; if (!PyCom_InterfaceFromPyObject(obSource, IID_IObjectArray, (void **)&Source, FALSE)) return NULL; HRESULT hr; PY_INTERFACE_PRECALL; hr = pIOC->AddFromArray(Source); Source->Release(); PY_INTERFACE_POSTCALL; if ( FAILED(hr) ) return PyCom_BuildPyException(hr, pIOC, IID_IObjectCollection ); Py_INCREF(Py_None); return Py_None; }