# Files ```{eval-rst} .. py:function:: changeWorkingDir(NewDir) :nocontentsentry: Change the working directory of current document | Alias: workingDir :param Path NewDir: New directory. ``` ```{eval-rst} .. py:function:: closeDocument() :nocontentsentry: Close: Close the active model ``` ```{eval-rst} .. py:function:: copyEntities(entity) :nocontentsentry: Copy: Make a copy of the entity :param [Entity] entity: Entity/Entities to apply the command :rtype: Return a list of duplicated entities generated ``` ```{eval-rst} .. py:function:: deleteEntities(entity) :nocontentsentry: Delete: Delete the entity :param [Entity] entity: Entity/Entities to apply the command ``` ```{eval-rst} .. py:function:: EntitiesReport(ContainerType) :nocontentsentry: Creates an entities report object | Constraints: User interface :param str ContainerType: Container type. ``` ```{eval-rst} .. py:function:: exportAll(FilePath) :nocontentsentry: Export geometry...: Exports all the geometry to an external file :param Path FilePath: FileName: File name (igs, iges, stp, step, x_t or dxf extensions). ``` ```{eval-rst} .. py:function:: exportAll(FilePath, Override) :nocontentsentry: Export geometry...: Exports all the geometry to an external file :param Path FilePath: FileName: File name (igs, iges, stp, step, x_t or dxf extensions). :param bool Override: Set to true to override the file if it exists, without warning. ``` ```{eval-rst} .. py:function:: exportSelect(entity, FilePath) :nocontentsentry: Export selected...: Exports the selected geometry to an external file :param [Entity] entity: Entity/Entities to apply the command :param Path FilePath: FileName: File name (igs, iges, stp, step, x_t or dxf extensions). ``` ```{eval-rst} .. py:function:: exportSelect(entity, FilePath, Override) :nocontentsentry: Export selected...: Exports the selected geometry to an external file :param [Entity] entity: Entity/Entities to apply the command :param Path FilePath: FileName: File name (igs, iges, stp, step, x_t or dxf extensions). :param bool Override: Set to true to override the file if it exists, without warning. ``` ```{eval-rst} .. py:function:: GetScriptReport() :nocontentsentry: Obtains the script report in use | Constraints: User interface ``` ```{eval-rst} .. py:function:: ImageReport(ImgPath) :nocontentsentry: Creates an image report object | Constraints: User interface :param str ImgPath: Path to the image file to add. ``` ```{eval-rst} .. py:function:: importFromDoc(FilePath, KCoordSystemsContainer, GeometryContainer, MaterialsContainer, SectionsContainer, StructuralElementsContainer, ModelUtilsContainer, ContactsContainer, LoadGroupsContainer, BCGroupsContainer, InitialConditionGroupsContainer) :nocontentsentry: Import model...: Import an existing model | Constraints: User interface :param Path FilePath: File to import. :param bool KCoordSystemsContainer: Coordinate systems. :param bool GeometryContainer: Geometry. :param bool MaterialsContainer: Materials. :param bool SectionsContainer: Sections. :param bool StructuralElementsContainer: Structural elements. :param bool ModelUtilsContainer: Model utils. :param bool ContactsContainer: Contacts. :param bool LoadGroupsContainer: Load groups. :param bool BCGroupsContainer: Boundary conditions. :param bool InitialConditionGroupsContainer: Initial Conditions. ``` ```{eval-rst} .. py:function:: importGeom(FilePath) :nocontentsentry: Import geometry...: Imports the geometry from an external file :param Path FilePath: FileName: File name (igs, iges, stp, step, x_t or dxf extensions). ``` ```{eval-rst} .. py:function:: newDocument(Dimension, Time, Discipline) :nocontentsentry: New: Create a new model | Alias: newDoc :param Enumerate: { Dim2D, Dim3D } Dimension: Dimension. :param Enumerate: { Static, Transient, Modal, Harmonic, Buckling } Time: Time analysis. :param Enumerate: { Structural, Seepage, Thermal, AirportPavement } Discipline: Kind of discipline. ``` ```{eval-rst} .. py:function:: openDocument(Path) :nocontentsentry: Open...: Open an existing model :param Path Path: Path to the document (xcf or cf extension). ``` ```{eval-rst} .. py:function:: PageBreakReport() :nocontentsentry: Creates a page break report object | Constraints: User interface ``` ```{eval-rst} .. py:function:: ResultsReport() :nocontentsentry: Creates an results report object | Constraints: User interface ``` ```{eval-rst} .. py:function:: saveDocument() :nocontentsentry: Save: Save the active model | Alias: save ``` ```{eval-rst} .. py:function:: saveDocumentAs(Path) :nocontentsentry: Save as...: Save the active model with a new name | Alias: saveAs :param Path Path: Path to the document (xcf or cf extension). ``` ```{eval-rst} .. py:function:: saveDocumentAs(Path, Override) :nocontentsentry: Save as...: Save the active model with a new name | Alias: saveAs :param Path Path: Path to the document (xcf or cf extension). :param bool Override: Set to true to override the file if it exists, without warning. ```