Document

Python code in CivilFEM allows running several commands that affect documents:

  • newDocument: create a new document from Dimension, Time and Discipline. For example to create a 2D, Static, Structural model:

    • Dimension: Dim2D, Dim3D.

    • Time: Static, Transient, Modal, Harmonic, Buckling.

    • Discipline: Structural, Seepage, Thermal.

newDocument("Dim2D","Static","Structural")
  • openDocument: open an existing document from the path.

openDocument(".\example.cf")
  • closeDocument: close an existing document. No arguments.

closeDocument()
  • saveDocumentAs: save a new document.

saveDocumentAs(".\new example.cf")

If you already have an existing file named this way in the same directory, CivilFEM by default will ask if you want to overwrite the file. If you want to overwrite it and avoid the stop of script running, proceed as follows:

saveDocumentAs(".\new example.cf", True)

That will directly overwrite the file without asking.

  • saveDocument: save an existing document. No arguments.

saveDocument()

Note

For additional information look for the commands in the API, that can be search from the search box.