public bool ImportData( Project pProject, string strFileName, string strScheme, string strAdditionalParameter, bool bSkipHeader, PlanningSegment pSegmentPlanning, bool bIgnoreErrors, bool bOverwrite, bool bUpdateOnly )
public: bool ImportData( Project^ pProject, String^ strFileName, String^ strScheme, String^ strAdditionalParameter, bool bSkipHeader, PlanningSegment^ pSegmentPlanning, bool bIgnoreErrors, bool bOverwrite, bool bUpdateOnly )
Parameters
- pProject
- Project to which file will be imported. Can't be
null
. - strFileName
- Full file name of source file. Can't be
null
orempty
. - strScheme
- Name of the scheme that defines the assignment of the external data fields to the EPLAN properties. Can't be
null
orempty
. - strAdditionalParameter
- Additional parameter used by import routine.
- bSkipHeader
- If
true
then column names from the data table are output in theExternal field
Used only for import from excel file. - pSegmentPlanning
- Object below which the imported data are to be inserted. If
null
then data are inserted under project. - bIgnoreErrors
- If
true
the import will not be aborted because of errors and messages that occur. - bOverwrite
- If
true
then existing planning objects will be overwritten with the data from the planning objects of the same name from the import file. Iffalse
then existing planning objects remain unchanged. - bUpdateOnly
- If
true
then only data of existing structure segments and planning objects will be updated.
Return Value
Returns
true
if import is successful.