<Code Lib>
2026 Method
Changes 0
M

LightType.GetLightTypeFromInstance

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

public static LightType GetLightTypeFromInstance(
	Document document,
	ElementId instanceId
)

  • document
    The document the instanceId is from
  • instanceId
    The ID of the light fixture instance
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…