ElementId.Parse
Method
Description:
Parse the string representation of the id into a corresponding ElementId.
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.
If the string represents [!:Autodesk::Revit::DB::Element::InvalidElementId] it will be returned.
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. |