Eplan Platform API
EPLAN API / API Reference / Actions / subprojects
In This Topic
    subprojects
    In This Topic
    Action class to export and import subprojects.
    

    Parameter Description

    TYPE

    Type of task to be performed: 
    FILEOFF:        Export Subproject action. STORE:  Import Subproject action.
    

    PROJECTNAME

    Project name with full path (optional).
    If not entered, the selected project is used when the action is called from GUI (like from a script or ribbon bar). 
    If called from the windows command line, PROJECTNAME must be set. Project has to be opened in exclusive mode.
    After calling this method source project object becomes invalid (in FILEOFF type).
    

    DESTINATIONPATH

    Target directory (optional). Default value is $(MD_PROJECTS). Only used by FILEOFF type.
    

    SPNR

    Subproject number.
    

    EXTENDONLY

    Extend subproject only (optional). Default value is false. Only used by FILEOFF type.
    

    SUBPROJECTDIR

    Directory where subproject is placed (optional). Default value is taken from alias. Only used by STORE type.
    

    Example
    Export subproject.
    
    subprojects /TYPE:FILEOFF /PROJECTNAME:C:\Projects\EPLAN\ESS_Sample_Project.elk /SPNR:1
    
    Import subproject.
    
    subprojects /TYPE:STORE /PROJECTNAME:C:\Projects\EPLAN\ESS_Sample_Project.elk /SPNR:1 /SUBPROJECTDIR:C:\Projects\Subprojects