padv.builtin.query.FindTopModels Class
Namespace: padv.builtin.query
Superclasses: padv.Query
Query for finding top models
Description
This class requires CI/CD Automation for Simulink Check.
The padv.builtin.query.FindTopModels
class provides a query that can return
the top models in your project. A top model is a model that is not referenced by other models
in the model hierarchy. You can automatically include or exclude certain models by using the
optional name-value arguments.
You can use this query in your process model to find top models for your tasks to iterate
over or use as inputs. To find the referenced models in your project, you can use padv.builtin.query.FindRefModels
instead.
The padv.builtin.query.FindTopModels
class is a handle
class.
Creation
Description
creates a query for finding the top models in your project.query
= padv.builtin.query.FindTopModels()
sets certain properties using one or more name-value arguments. For example to find top
models that include query
= padv.builtin.query.FindTopModels(Name=Value
)Control
in the full file path, you can create and
run the query
padv.builtin.query.FindTopModels(IncludePath="Control")
.
You can use this syntax to set property values for Name
,
IncludeLabel
, ExcludeLabel
,
IncludePath
, and ExcludePath
.
Note
If you use this query as an input query and specify non-empty values for
IncludeLabel
, ExcludeLabel
,
IncludePath
, or ExcludePath
, your task
results can unexpectedly become outdated. If you see this behavior, consider using a
different query, like padv.builtin.query.FindArtifacts
, instead. For more information and a list
of queries that are not impacted by this limitation, see Other Limitations.
The padv.builtin.query.FindTopModels
class also has other properties, but you cannot set
those properties during query creation.
Properties
Methods
Examples
Capabilities and Limitations
This table identifies functionality that is supported by the query.
Functionality | Supported? |
---|---|
Input query for task | Yes. See |
Iteration query for task | Yes. See IterationQuery. |