def GetEmAll(select=False, include_lights=False, include_grips=False, include_references=False):
selection_settings = Rhino.DocObjects.ObjectEnumeratorSettings()
selection_settings.IncludeLights = include_lights
selection_settings.IncludeGrips = include_grips
selection_settings.NormalObjects = True
selection_settings.LockedObjects = True
selection_settings.HiddenObjects = True
selection_settings.ReferenceObjects = include_references
Rhino.DocObjects.ObjectEnumeratorSettings.ObjectTypeFilter = Rhino.Geometry.Curve
e = sc.doc.Objects.GetObjectList(selection_settings)
return e
Never mind I found the solution.
Thank you all for the help.
solution:
selection_settings.ObjectTypeFilter = Rhino.DocObjects.ObjectType.Curve
1 Like
yw and np
1 Like