ansys.scade.apitools.create.declaration.create_constant ======================================================= .. py:function:: ansys.scade.apitools.create.declaration.create_constant(owner: scade.model.suite.Package, name: str, type_: ansys.scade.apitools.create.type.TX, value: ansys.scade.apitools.create.expression.EX, path: Optional[pathlib.Path] = None, visibility: VK = VK.PUBLIC) -> scade.model.suite.Constant Create a constant. A constant has a name, type, and value. Parameters ---------- owner : suite.Package Owner of the constant, which is either the model itself or a package. name : str Name of the constant. type\_ : TX Definition of the type expressed as a type tree. value : EX Expression tree defining the value. path : Path | None, default: None Path of the file for storing the constant. This parameter is ignored if the owner is a package. When the path is ``None`` and owner is the model, theconstant is stored in the model's default file. visibility : VK Accessibility of the constant. Returns ------- suite.Constant