ElementId.TryParse
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] the id will contain it upon return. If the parse fails, the id will be undefined.
If the string represents [!:Autodesk::Revit::DB::Element::InvalidElementId] the id will contain it upon return. If the parse fails, the id will be undefined.
public static bool TryParse(
string idStr,
out ElementId id
)
-
StringidStrThe string representation of the id to return.
-
idOut parameter set to the ElementId represented by the string.
Return Value
bool
true if the string was successfully parsed into an ElementId, false otherwise.
No comments yet. Start the discussion.
Loading…