get_volumes_of_label_name_pattern#
- Part.get_volumes_of_label_name_pattern(label_name_pattern, name_pattern_params)#
Gets ids of volumes with label matching the given name pattern.
- Parameters:
label_name_pattern (
str) – Name pattern to be matched with label.name_pattern_params (
NamePatternParams) – Name pattern parameters used to match label name pattern.
- Return type:
- Returns:
Returns ids of volumes with label matching the name pattern or an empty list for a topology part.
Notes
This is a beta API. The behavior and implementation may change in future.
Examples
>>> name_pattern_params = prime.NamePatternParams(model = model) >>> volumes = part.get_volumes_of_label_name_pattern("body*", name_pattern_params)