cableTray Type ID


#1

Hi All

This is Creat CableTray method from Revit API
<pre xml:space=“preserve”><span class=“identifier”>Create</span>( Document <span class=“parameter”>document</span>,
ElementId <span class=“parameter”>cabletrayType</span>,
XYZ <span class=“parameter”>startPoint</span>,
XYZ <span class=“parameter”>endPoint</span>,
ElementId <span class=“parameter”>levelId</span>
)
How I can put a Fixed value to the ElementId <span class=“parameter”>cabletrayType,but without draw CableTray in Revit and Extract the type id from it .</span>