<Code Lib>
2026 Method
Changes 0
M

LightType.GetLightType

Description:
Creates a light type object from the given document and family type ID

public static LightType GetLightType(
	Document document,
	ElementId typeId
)

  • document
    The document the typeId is from
  • typeId
    The ID of the light family type
Return Value LightType The newly created LightType object

  • The ElementId is the argument that is being validated The ElementId is not valid because it is not for a light element.
  • A non-optional argument was null

Loading…