RVTDocs.com
Namespace: Autodesk.Revit.DB Class: ElementId

ElementId.Parse

Method
Description:
Parse the string representation of the id into a corresponding ElementId.
Remarks:
If the string represents [!:Autodesk::Revit::DB::Element::InvalidElementId] it will be returned.
Syntax
public static ElementId Parse(
	string idStr
)
Parameters
Parameter Type Description
idStr String The string representation of the id to return.
Return Value
Type Description
ElementId ElementId string represented.
Exceptions
Exception Condition
InvalidOperationException Thrown when the string cannot be parsed into an ElementId.