Complete the code to select the first feature in the Feature Manager design tree.
feature = design_tree.[1]()The method GetFirstFeature() retrieves the first feature in the Feature Manager design tree.
Complete the code to get the name of a feature object.
feature_name = feature.[1]The property Name returns the name of the feature object.
Fix the error in the code to correctly iterate through all features in the Feature Manager design tree.
feature = design_tree.GetFirstFeature() while feature != None: print(feature.Name) feature = feature.[1]()
The method GetNextFeature() returns the next feature in the design tree, allowing iteration.
Fill both blanks to create a dictionary of feature names and their types from the Feature Manager design tree.
features_dict = {feature.[1]: feature.[2]() for feature in features_list}Name gets the feature's name, and GetTypeName() gets the feature's type name.
Fill all three blanks to filter features by type and create a list of their names.
filtered_names = [feature.[1] for feature in features if feature.[2]() == [3]]
This code gets the names of features whose type is "Boss-Extrude".