ansys.scade.apitools.create.declaration.create_package#
- ansys.scade.apitools.create.declaration.create_package(owner: scade.model.suite.Package, name: str, path: pathlib.Path | None = None, visibility: VK = VK.PUBLIC) scade.model.suite.Package #
Create a package.
A package has a name and is either stored in a separate file or in its owner’s file, if the owner is not the model.
Parameters#
- ownersuite.Package
Owner of the package, which is either the model itself or a package.
- namestr
Name of the package.
- pathPath | None, default: None
Path of the file for storing the package. This parameter is optional if the package’s owner is a package. When the path is
None
and the owner is the model, the package is stored in the model’s default file.- visibilityVK, default: PUBLIC
Accessibility of the package, which is either public or private.
Returns#
suite.Package