Message 1 of 2
computeReferences?
Not applicable
11-17-2013
02:22 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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 FunctionWhich 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