public static NXOpen.Features.Feature select_a_feature(string prompt) { Selection.SelectionType[] feats = { Selection.SelectionType.Features }; TaggedObject theTO; Point3d cursor; Selection.Response resp = UI.GetUI().SelectionManager.SelectTaggedObject(prompt, prompt, Selection.SelectionScope.WorkPart, false, feats, out theTO, out cursor); return (NXOpen.Features.Feature) theTO; }