2027 Method
Changes 7
M

TemperatureRating.GetTemperatureRatingIdByName

Description:
Gets the Conductor Temperature Rating id by given Conductor Temperature Rating name.
public static ElementId GetTemperatureRatingIdByName(
	Document document,
	string name
)
  • document
    The document.
  • String
    name
    The Conductor Temperature Rating name.
Return Value ElementId The Conductor Temperature Rating id.
  • document is not a project document. -or- name cannot include prohibited characters, such as "{, }, [, ], |, ;, less-than sign, greater-than sign, ?, `, ~". -or- name is an empty string.
  • A non-optional argument was null
  • The document is in failure mode: an operation has failed, and Revit requires the user to either cancel the operation or fix the problem (usually by deleting certain elements).