2021 Method
Changes 0
M

Reference.ParseFromStableRepresentation

Description:
Converts a stable String representation of a reference to a Reference object.
Remarks:
Use ConvertToStableRepresentation(Document) to obtain the representation. The Reference will have only the following information set: You will also be able to pass the reference to Document.GetElement(reference) and Element.GetGeometryObjectFromReference(reference) to obtain the element and geometry object referred to.
public static Reference ParseFromStableRepresentation(
	Document document,
	string representation
)
Return Value Reference
public Reference ParseReference(Document doc, String str)
{
    Reference reference = Reference.ParseFromStableRepresentation(doc, str);
    if (null == reference)
    {
        TaskDialog.Show("ParseReference", "Reference is Null.");
    }
    return reference;
}