<pre xml:space=“preserve”><span class=“keyword”>I’m trying to create a roof on python, there is this function on Revit API for it:
public</span> FootPrintRoof <span class=“identifier”>NewFootPrintRoof</span>(
CurveArray <span class=“parameter”>footPrint</span>,
Level <span class=“parameter”>level</span>,
RoofType <span class=“parameter”>roofType</span>,
<span class=“keyword”>out</span> ModelCurveArray <span class=“parameter”>footPrintToModelCurvesMapping</span>
)
i use it on my python script: footprintRoof = doc.Create.NewFootPrintRoof(footprint, levelId, roof, footPrintToModelCurveMapping)
But i get this error:
<pre xml:space=“preserve”>Warning: IronPythonEvaluator.EvaluateIronPythonScript operation failed.
Traceback (most recent call last):
File “<string>”, line 95, in <module>
File “<string>”, line 83, in createRoof
TypeError: expected StrongBox[ModelCurveArray], got ModelCurveArray
The problem is that i need to pass a reference parameter ( Using prefix out on C# for example ) but i cant find a way to pass it on python, there is a solution for this?