2020 Method
Changes 0
M

CableTray.Create

Description:
Creates a new instance of cable tray.
Remarks:
This method will regenerate the document.
public static CableTray Create(
	Document document,
	ElementId cabletrayType,
	XYZ startPoint,
	XYZ endPoint,
	ElementId levelId
)
  • document
    The document.
  • cabletrayType
    The cable tray type. This must be a cable tray type accepted by isValidCableTrayType(). If the input cable tray type is InvalidElementId, the default cable tray type from the document will be used.
  • startPoint
    The start point of the cable tray location line.
  • endPoint
    The end point of the cable tray location line.
  • levelId
    The element id of the level which this cable tray based. If the input level id is invalidElementId = -1, the nearest level will be used.
Return Value CableTray The newly created cable tray.