<?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: Setting wall foundation extension ends in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/setting-wall-foundation-extension-ends/m-p/12105943#M10851</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4987019"&gt;@GaryOrrMBI&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your answer.&lt;/P&gt;&lt;P&gt;It sound so tricky to carry out something so simple. In any case I will give it a try soon.&lt;/P&gt;&lt;P&gt;There are lot of weird things for me in this procedure, but one of the strangest is the fact that extension is defined in the wall foundation type and not in the wall foundation instance, so that means for me, that I need to create as many types as different extensions I have. It is like I need to define as many family symbols as different beam's lengths I have in my model ..... cool.... (I know that extension does not fix my problem)&lt;/P&gt;&lt;P&gt;Thank you once again.&lt;/P&gt;</description>
    <pubDate>Mon, 17 Jul 2023 05:59:10 GMT</pubDate>
    <dc:creator>jorge.bslu</dc:creator>
    <dc:date>2023-07-17T05:59:10Z</dc:date>
    <item>
      <title>Setting wall foundation extension ends</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/setting-wall-foundation-extension-ends/m-p/12092863#M10848</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I need to export to Revit a wall foundation that has extensions at both ends (A and B in the following picture).&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jorgebslu_0-1689055929609.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1238840i4A08A8D25FC34B09/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jorgebslu_0-1689055929609.png" alt="jorgebslu_0-1689055929609.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Is there any way to set both extension ends ?&lt;/P&gt;&lt;P&gt;I was thinking about setting length and then move the foundation, but Length parameter is a read-only parameter.&lt;/P&gt;&lt;P&gt;With the default method:&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;public static WallFoundation Create(
	Document document,
	ElementId typeId,
	ElementId wallId)&lt;/LI-CODE&gt;&lt;P&gt;&lt;A href="https://www.revitapidocs.com/2024/d5c7ab19-d10f-36e9-6aa2-581a28a55cb5.htm" target="_blank"&gt;https://www.revitapidocs.com/2024/d5c7ab19-d10f-36e9-6aa2-581a28a55cb5.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I get the following result, but I do not know to modify the created WallFoundation to get the actual length including A and B.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jorgebslu_1-1689056135100.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1238842i3DAD727A49ED65A4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jorgebslu_1-1689056135100.png" alt="jorgebslu_1-1689056135100.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think that the following parameter in the WallFoundationType does not help (specially when A != B):&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jorgebslu_2-1689056464401.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1238844i7277BB5A6E7CCBEF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jorgebslu_2-1689056464401.png" alt="jorgebslu_2-1689056464401.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jul 2023 06:25:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/setting-wall-foundation-extension-ends/m-p/12092863#M10848</guid>
      <dc:creator>jorge.bslu</dc:creator>
      <dc:date>2023-07-11T06:25:25Z</dc:date>
    </item>
    <item>
      <title>Re: Setting wall foundation extension ends</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/setting-wall-foundation-extension-ends/m-p/12093389#M10849</link>
      <description>&lt;P&gt;I have tried to c&lt;SPAN&gt;reate reference planes at the actual end positions and then, I tied to align nearest faces of wallfoundation solid to them. But I got the annoying exception:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"The two references are not geometrically aligned so the Alignment cannot be created."&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;when calling&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;doc.Create.NewAlignment(structPlanView, refPlaneRef, faceRef);&lt;/LI-CODE&gt;&lt;P&gt;regardless the end&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jorgebslu_0-1689072593314.png" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1238929iED090BEDF996EA12/image-size/large?v=v2&amp;amp;px=999" role="button" title="jorgebslu_0-1689072593314.png" alt="jorgebslu_0-1689072593314.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;What confuses me is that I am able to apply these 2 alignments through the Revit's UI with the exported wall+wallFound+refPlanes&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jorgebslu_1-1689072722538.png" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1238933i20161ABA66F84A7A/image-size/large?v=v2&amp;amp;px=999" role="button" title="jorgebslu_1-1689072722538.png" alt="jorgebslu_1-1689072722538.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jul 2023 11:00:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/setting-wall-foundation-extension-ends/m-p/12093389#M10849</guid>
      <dc:creator>jorge.bslu</dc:creator>
      <dc:date>2023-07-11T11:00:52Z</dc:date>
    </item>
    <item>
      <title>Re: Setting wall foundation extension ends</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/setting-wall-foundation-extension-ends/m-p/12103980#M10850</link>
      <description>&lt;P&gt;A couple of things up front.&lt;/P&gt;&lt;P&gt;1) The default extension in the type is just that... a default extension value applied when you create a wall foundation using that type. After it has been created that value no longer applies except as in regards to the following item:&lt;/P&gt;&lt;P&gt;2) The offset distance from the end of the wall to the end of the foundation is not exposed in the API. It may not even be stored with the foundation element at all. If you look at the properties of the wall foundation in the UI or via the API there is no "offset at start" or "offset at end" type of parameter or property. The best that I can determine is that reactors (based on the host wall being modified) handle any and all modifications to the wall foundation based upon maintaining any difference between the end points of the wall and the endpoints of the wall foundation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So... to modify the offset:&lt;/P&gt;&lt;P&gt;Get the Location&amp;nbsp; Property of the wall foundation (wall.Location), cast that to a LocationCurve, Get the Curve Property from that, which isn't as complicated as it sounds ( &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/824630"&gt;@jeremy_tammik&lt;/a&gt; just posted a quick and concise way of acquiring those points, in this post:&amp;nbsp;&lt;A href="https://forums.autodesk.com/t5/revit-api-forum/revit-wall-length-parameter/td-p/12097642" target="_blank" rel="noopener"&gt;https://forums.autodesk.com/t5/revit-api-forum/revit-wall-length-parameter/td-p/12097642&lt;/A&gt;&amp;nbsp; )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then Modify the start and/or endpoints by determining the desired new points (I can't provide you with any examples of that at this point, but you'll need to determine a vector from the existing points to compute the new points from).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Once you have completed modifying the end points using this simple method to define them (I hope that you can hear the sarcasm in that statement &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; ) The reactors mentioned above will maintain the difference between the associated wall's end points and the Wall Foundation's end points.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can't begin to speculate on why your attempts to extend the foundation to those reference planes failed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-G&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 15 Jul 2023 16:11:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/setting-wall-foundation-extension-ends/m-p/12103980#M10850</guid>
      <dc:creator>GaryOrrMBI</dc:creator>
      <dc:date>2023-07-15T16:11:07Z</dc:date>
    </item>
    <item>
      <title>Re: Setting wall foundation extension ends</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/setting-wall-foundation-extension-ends/m-p/12105943#M10851</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4987019"&gt;@GaryOrrMBI&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your answer.&lt;/P&gt;&lt;P&gt;It sound so tricky to carry out something so simple. In any case I will give it a try soon.&lt;/P&gt;&lt;P&gt;There are lot of weird things for me in this procedure, but one of the strangest is the fact that extension is defined in the wall foundation type and not in the wall foundation instance, so that means for me, that I need to create as many types as different extensions I have. It is like I need to define as many family symbols as different beam's lengths I have in my model ..... cool.... (I know that extension does not fix my problem)&lt;/P&gt;&lt;P&gt;Thank you once again.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jul 2023 05:59:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/setting-wall-foundation-extension-ends/m-p/12105943#M10851</guid>
      <dc:creator>jorge.bslu</dc:creator>
      <dc:date>2023-07-17T05:59:10Z</dc:date>
    </item>
  </channel>
</rss>

