By Joe Ye
Issue
We are trying to find elements in Revit based on the exported DWF via the GUID in the DWF export. I cannot find any elements using this, how can we find the elements using the GUID from the exported DWF ?
Solution
The element GUID in DWF is different from the same element’s GUID in Revit. So it is not possible to retrieve the element in Revit according to the GUID obtained from DWF file.
However, each element in the exported DWF file has the property Id. We can use this Id value to retrieve element in Revit.Here is the pseudo-code.
// the argument idFromDWF is obtained from dwf file.
ElementId id = new ElementId(idFromDWF);
Element elem = doc.get_Element(id);