API for Project Components¶
Part of the Object based program API.
- class ComponentApi¶
API to access projects
Returned by
-
CreateAnalysisPackageCall(name, packagePath, libraryNamespace=
None)¶ Returns the created analysis package call.
- Parameters:
- Returns:
Package call
- Return type:
- CreateConfigChange(name, tcfFile, tbcFile)¶
Returns the created config change.
If keeping the TCF or TBC is not intended, set it explicitly via
SetKeepTcf(False)orSetKeepTbc(False).- Parameters:
- Returns:
Config change
- Return type:
- CreateFolder(name)¶
Returns the created folder.
- Parameters:
- name : str¶
Name of the folder
- Returns:
Project Folder
- Return type:
-
CreatePackageCall(name, packagePath, libraryNamespace=
None)¶ Returns the created package call.
- Parameters:
- Returns:
Package call
- Return type:
- CreatePackageGenerator(name, generatorId)¶
Returns the created package generator.
- Parameters:
- Returns:
Package generator
- Return type:
-
CreateProjectCall(name, projectPath, libraryNamespace=
None)¶ Returns the created project call.
- Parameters:
- name : str¶
Name of the project call
- projectPath : str¶
Path to the project to be called. In contrast to the method CreatePackageCall(), this path must be relative to the parent project. Absolute paths are also allowed. If an absolute path is used that is inside a currently defined library workspace, the project call will be a reference into this workspace.
- libraryNamespace : str¶
Namespace of a library workspace (requires feature flag; projectPath must be relative)
- Returns:
Project call
- Return type:
- CreateProjectGenerator(name, generatorId)¶
Returns the created project generator.
- Parameters:
- Returns:
Project generator
- Return type:
-
CreateStimulationPackageCall(name, packagePath, libraryNamespace=
None)¶ Returns the created stimulation package call.
- Parameters:
- Returns:
Package call
- Return type:
-
CreateAnalysisPackageCall(name, packagePath, libraryNamespace=