<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: LevelOffset not working for Arc extrusion Roof in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/leveloffset-not-working-for-arc-extrusion-roof/m-p/7681949#M53404</link>
    <description>&lt;P&gt;You are creating geometry and then in the same transaction make a change to it. In the past such a workflow caused problems, that could be solved by separating the creation and modification into 2 transactions. I would suggest you do the same, and see if that resolves your problem.&lt;/P&gt;</description>
    <pubDate>Thu, 11 Jan 2018 12:09:20 GMT</pubDate>
    <dc:creator>FAIR59</dc:creator>
    <dc:date>2018-01-11T12:09:20Z</dc:date>
    <item>
      <title>LevelOffset not working for Arc extrusion Roof</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/leveloffset-not-working-for-arc-extrusion-roof/m-p/7674709#M53402</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I've encountered a strange result and I'd like to know if it's my fault or if there's an error somewhere or a known issue.&lt;/P&gt;&lt;P&gt;I'm trying to create a new ExtrusionRoof with an arc profile and then change&amp;nbsp;the Level Offset parameter to a different value.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I use the ROOF_CONSTRAINT_OFFSET_PARAM BuiltInParameter to find that parameter and then set it.&lt;/P&gt;&lt;P&gt;Unexpectedly Revit set the parameter to my value, but the roof doesn't shift. So there's a discrepancy between the parameter value and the effective position of the roof.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to manually change the value, but the roof doesn't shift...&amp;nbsp;it&amp;nbsp;seems like&amp;nbsp;it has a constraint&amp;nbsp;that I can't figure out.&amp;nbsp;&amp;nbsp;I&amp;nbsp;tested methods like Arc.&lt;SPAN&gt;Create&lt;/SPAN&gt;(plane,radius,startAngle,endAngle) and Arc.&lt;SPAN&gt;Create&lt;/SPAN&gt;(XYZ,XYZ,XYZ) to create the arc profile for the &lt;SPAN&gt;NewExtrusionRoof&lt;/SPAN&gt; but nothing changes. Here's a snippet of my code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;double myOffset=1.5;&lt;BR /&gt;CurveArray curArr=new CurveArray();&lt;BR /&gt;Arc arc = Arc.Create(arc_end0, arc_end1, arc_pointOnCurve);&lt;BR /&gt;//Arc arc=Arc.Create(plane,radius,startAngle,endAngle);&lt;BR /&gt;curArr.Append(arc);&lt;BR /&gt;using (Transaction t=new Transaction(curDoc,"Create ExtRoof"))&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp; t.Start();&lt;BR /&gt;  ExtrusionRoof extrusionRoof = curDoc.Create.NewExtrusionRoof(curArr, rp, level, roofType, extrusionStart, extrusionEnd);&lt;BR /&gt;&amp;nbsp; Parameter offset = extrusionRoof.get_Parameter(BuiltInParameter.ROOF_CONSTRAINT_OFFSET_PARAM);&lt;BR /&gt;&amp;nbsp; offset.Set(myOffset);&lt;BR /&gt;&amp;nbsp; t.Commit();&lt;BR /&gt;}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Any ideas?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jan 2018 11:05:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/leveloffset-not-working-for-arc-extrusion-roof/m-p/7674709#M53402</guid>
      <dc:creator>newbieng</dc:creator>
      <dc:date>2018-01-09T11:05:27Z</dc:date>
    </item>
    <item>
      <title>Re: LevelOffset not working for Arc extrusion Roof</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/leveloffset-not-working-for-arc-extrusion-roof/m-p/7677820#M53403</link>
      <description>&lt;P&gt;Work it out manually in the user interface first.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Observe the results using RevitLookup.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jan 2018 07:46:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/leveloffset-not-working-for-arc-extrusion-roof/m-p/7677820#M53403</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2018-01-10T07:46:35Z</dc:date>
    </item>
    <item>
      <title>Re: LevelOffset not working for Arc extrusion Roof</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/leveloffset-not-working-for-arc-extrusion-roof/m-p/7681949#M53404</link>
      <description>&lt;P&gt;You are creating geometry and then in the same transaction make a change to it. In the past such a workflow caused problems, that could be solved by separating the creation and modification into 2 transactions. I would suggest you do the same, and see if that resolves your problem.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jan 2018 12:09:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/leveloffset-not-working-for-arc-extrusion-roof/m-p/7681949#M53404</guid>
      <dc:creator>FAIR59</dc:creator>
      <dc:date>2018-01-11T12:09:20Z</dc:date>
    </item>
  </channel>
</rss>

