<?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: Error: circular chain of reference when creating opening on a floor in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/error-circular-chain-of-reference-when-creating-opening-on-a/m-p/7684184#M53376</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dear Mr.Tammik&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for replying, now the problem is solved by regenerating and I can make opening like that&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Wishes&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-right" image-alt="TIMOpening.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/448726iCB25853AFF32B7EE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="TIMOpening.png" alt="TIMOpening.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 12 Jan 2018 01:17:54 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-01-12T01:17:54Z</dc:date>
    <item>
      <title>Error: circular chain of reference when creating opening on a floor</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/error-circular-chain-of-reference-when-creating-opening-on-a/m-p/7681213#M53374</link>
      <description>&lt;P&gt;Unable to create opening on a created floor, posted error "circular chain of reference"&lt;/P&gt;&lt;P&gt;Problem is floor can be create while not the opening, here are the codes:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CurveArray curveArray = new CurveArray();&lt;BR /&gt;curveArray.Append(Line.CreateBound(new XYZ(-50, 50, 3000/304.8), new XYZ(50, 50, 3000 / 304.8)));&lt;BR /&gt;curveArray.Append(Line.CreateBound(new XYZ(50, 50, 3000 / 304.8), new XYZ(50, -50, 3000 / 304.8)));&lt;BR /&gt;curveArray.Append(Line.CreateBound(new XYZ(50, -50, 3000 / 304.8), new XYZ(-50, -50, 3000 / 304.8)));&lt;BR /&gt;curveArray.Append(Line.CreateBound(new XYZ(-50, -50, 3000 / 304.8), new XYZ(-50, 50, 3000 / 304.8)));&lt;/P&gt;&lt;P&gt;CurveArray curveArray1 = new CurveArray();&lt;BR /&gt;curveArray1.Append(Line.CreateBound(new XYZ(10, 30, 3000 / 304.8), new XYZ(30, 30, 3000 / 304.8)));&lt;BR /&gt;curveArray1.Append(Line.CreateBound(new XYZ(30, 30, 3000 / 304.8), new XYZ(20, 10, 3000 / 304.8)));&lt;BR /&gt;curveArray1.Append(Line.CreateBound(new XYZ(20, 10, 3000 / 304.8), new XYZ(10, 30, 3000 / 304.8)));&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ElementId levelid = new ElementId(2787);&lt;BR /&gt;Level level = doc.GetElement(levelid) as Level;&lt;/P&gt;&lt;P&gt;FloorType floorType = floorTypeFilter(doc, "常规 - 300mm");&lt;BR /&gt;Floor newFloor = doc.Create.NewFloor(curveArray,floorType , level, false);&lt;BR /&gt;Element NewFloor = newFloor as Element;&lt;BR /&gt;Opening opening = doc.Create.NewOpening(newFloor, curveArray1, false);&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jan 2018 06:56:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/error-circular-chain-of-reference-when-creating-opening-on-a/m-p/7681213#M53374</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-11T06:56:55Z</dc:date>
    </item>
    <item>
      <title>Re: Error: circular chain of reference when creating opening on a floor</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/error-circular-chain-of-reference-when-creating-opening-on-a/m-p/7681715#M53375</link>
      <description>&lt;P&gt;Try to regenerate the model after creating the floor and before creating the opening.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If that does not help, try to commit the transaction after&amp;nbsp;&lt;SPAN&gt;after creating the floor and create the opening in a new separate transaction.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If using two or more transactions, you can group them.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Read all about&amp;nbsp;the need to regenerate here:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="http://thebuildingcoder.typepad.com/blog/about-the-author.html#5.33" target="_blank"&gt;http://thebuildingcoder.typepad.com/blog/about-the-author.html#5.33&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Jeremy&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jan 2018 10:31:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/error-circular-chain-of-reference-when-creating-opening-on-a/m-p/7681715#M53375</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2018-01-11T10:31:26Z</dc:date>
    </item>
    <item>
      <title>Re: Error: circular chain of reference when creating opening on a floor</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/error-circular-chain-of-reference-when-creating-opening-on-a/m-p/7684184#M53376</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dear Mr.Tammik&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for replying, now the problem is solved by regenerating and I can make opening like that&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Wishes&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-right" image-alt="TIMOpening.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/448726iCB25853AFF32B7EE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="TIMOpening.png" alt="TIMOpening.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jan 2018 01:17:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/error-circular-chain-of-reference-when-creating-opening-on-a/m-p/7684184#M53376</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-12T01:17:54Z</dc:date>
    </item>
  </channel>
</rss>

