Get FULL Face GUID

Get FULL Face GUID

Jaime_Alonso
Enthusiast Enthusiast
445 Views
2 Replies
Message 1 of 3

Get FULL Face GUID

Jaime_Alonso
Enthusiast
Enthusiast

I have been trying to get the full GUID of a selected surface from a pickobject selection. By full, I mean similar to the following; 

 

b3195d1c-3720-465c-bfba-a81d6748d14a-00047630:10:SURFACE

 

I select the faces successfully via;

 

faces = uidoc.Selection.PickObjects(ObjectType.Face, selFilter, "Select Multiple Faces");

 

but then unable to get the guid with that format even though I tried;

 

face.ElementId.ToString()

face.ElementId.GetType().GUID.ToString()

and others

 

Any help would be much appreciated

Thanks

 

 

0 Likes
Accepted solutions (1)
446 Views
2 Replies
Replies (2)
Message 2 of 3

RPTHOMAS108
Mentor
Mentor
Accepted solution

Selection.PickObjects returns a list of Reference.

 

Reference has the member Reference.ConvertToStableRepresentation(Document).

Message 3 of 3

Jaime_Alonso
Enthusiast
Enthusiast

Thank you very much! That worked perfectly 🙂

0 Likes