I'm trying to create the roof as shown in below image using the revit api. Selected roof is placed at Offset From Roof Base at 10' 1" and Adjacent roof is placed at 9'1".
But using the revit api I'm getting this as output.
Please let us know how we can create above roof using revit api
We are using only the model lines from revit document as shown below
What exact existing elements and detailed steps are you using to create that roof manually in the end user interface? You will probably need to use the same starting point to create the roof programmatically as well. In general, the Revit API just wraps the manual UI functionality.
Creating the roof with the existing elements and their slope settings should be pretty straightforward using the
NewFootPrintRoof
method. Look at the sample code snippet in the documentation: