get_part_ids#

ModelQuery.get_part_ids(scope)#

Gets ids of all parts matching the scope.

Parameters:

scope (ScopeDefinition) – Scope definition for filtering parts.

Return type:

Iterable[int]

Returns:

Returns part ids of the given scope.

Notes

This is a beta API. The behavior and implementation may change in future.

Examples

>>> part_ids = model_query.get_part_ids(scope)