ReqDocument#

class ansys.scade.pyalmgw.documents.ReqDocument(owner: ReqProject, file: str = '', name: str = '')#

Bases: Container

Implements the Document complex type.

Persistence.

  • file maps to identifier.

    For example C:\Program Files\ANSYS Inc\examples\CruiseControl\CruiseControl.docx.

  • file.name maps to text.

    For example CruiseControl.docx.

Overview#

depth

Return the maximum depth of a section.

path

Return the path of the document.

Import detail#

from ansys.scade.pyalmgw.documents import ReqDocument

Property detail#

property ReqDocument.depth: int#

Return the maximum depth of a section.

property ReqDocument.path: pathlib.Path#

Return the path of the document.

Attribute detail#

ReqDocument.xml_tag = 'Document'#