I have a question my code is not working and no idea where the problem is.
I sais; ‘BrepFace’ object has no attribute ‘Object’.
EDIT: I want to use GetObjectEx because I need the selection point. So, I need to extract the Guid in the Tuple and assign it to the .Object().Id,
obj_ref = rs.GetObjectEx ("Surface to move", rs.filter.surface, preselect=False, select=False, objects=None) obj_ref = obj_ref obj_ref = rs.coercesurface(obj_ref) print obj_ref parent_id = obj_ref.Object().Id surface_index = obj_ref.GeometryComponentIndex.Index if rs.IsObjectInGroup (obj_ref) == True: groupName = rs.ObjectGroups (obj_ref) surface_index = 0 surface_ids = rs.ExtractSurface(parent_id, surface_index,True)