Community
So I have written this function to prompt the user to select a face:
Public Function SelectSingleFace() As Face Dim selectedReference As Reference = _uidoc.Selection.PickObject(ObjectType.Face, "Select Face") Dim e As Element = _uidoc.Document.GetElement(selectedReference.ElementId) Return (TryCast(e.GetGeometryObjectFromReference(selectedReference), Face)) End Function
Which generally works ok, however the returned face does not compute references. ie.
SelectSingleFace.Reference = nothing
Is there a way to turn on computeReferences prior to calling PickObject?
Thanks,
Brett
No, not that I am aware of.
You can query the picked element for its geometry after the pick completes, and specify compute references in that call.
Cheers, Jeremy