<?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: Could I resize the dimensions of doors/windows by Revit API? in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/could-i-resize-the-dimensions-of-doors-windows-by-revit-api/m-p/12373659#M8659</link>
    <description>&lt;P&gt;Sounds to me as if what you are looking for is the &lt;U&gt;Duplicate&lt;/U&gt; method on the family type:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;A href="https://www.revitapidocs.com/2024/b0e7d5d5-f33a-8ff2-b471-78a213f06ef5.htm" target="_blank"&gt;https://www.revitapidocs.com/2024/b0e7d5d5-f33a-8ff2-b471-78a213f06ef5.htm&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here are some examples of using it:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;A href="http://thebuildingcoder.typepad.com/blog/2008/11/creating-a-new-family-symbol.html" target="_blank"&gt;Creating a new Family Symbol&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="http://thebuildingcoder.typepad.com/blog/2009/02/inserting-a-column.html" target="_blank"&gt;Inserting a Column&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="http://thebuildingcoder.typepad.com/blog/2009/04/revit-api-cases-1.html" target="_blank"&gt;Revit API Cases 1&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="http://thebuildingcoder.typepad.com/blog/2011/02/system-family-creation.html" target="_blank"&gt;System Family Creation&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="http://thebuildingcoder.typepad.com/blog/2011/09/transfer-project-standards.html" target="_blank"&gt;Transfer Project Standards&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="http://thebuildingcoder.typepad.com/blog/2011/10/set-new-pipe-type-properties.html" target="_blank"&gt;Set New Pipe Type Properties&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="http://thebuildingcoder.typepad.com/blog/2012/12/extra-transaction-or-regeneration-required.html" target="_blank"&gt;Extra Transaction or Regeneration Required&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="http://thebuildingcoder.typepad.com/blog/2013/07/family-api-create-type-select-and-modify-instances.html" target="_blank"&gt;Family API – Create Type, Select and Modify Instances&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="http://thebuildingcoder.typepad.com/blog/2013/09/creating-an-offset-wall.html" target="_blank"&gt;Creating an Offset Wall&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="http://thebuildingcoder.typepad.com/blog/2015/05/transferring-a-wall-type.html" target="_blank"&gt;Transferring a Wall Type&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="http://thebuildingcoder.typepad.com/blog/2018/02/changing-text-colour.html" target="_blank"&gt;Changing Text Colour&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="https://thebuildingcoder.typepad.com/blog/2021/04/sneak-peek-automatic-column-arc-angle-career.html" target="_blank"&gt;Sneak Peek, Automatic Column, Arc Angle, Career&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="https://thebuildingcoder.typepad.com/blog/2023/06/sustainability-lookup-sub-elements-and-wall-types.html" target="_blank"&gt;Sustainability, Lookup, Sub-Elements and Wall Types&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 13 Nov 2023 12:21:38 GMT</pubDate>
    <dc:creator>jeremy_tammik</dc:creator>
    <dc:date>2023-11-13T12:21:38Z</dc:date>
    <item>
      <title>Could I resize the dimensions of doors/windows by Revit API?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/could-i-resize-the-dimensions-of-doors-windows-by-revit-api/m-p/12373399#M8658</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am wondering could I resize the dimensions of the host Family Instances (e.g. windows and doors) after they are created? The following is a case of creating a door onto a wall.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The first step I did was to collect the door Family Instances by filters:&lt;/P&gt;&lt;PRE&gt;&lt;A href="https://www.revitapidocs.com/2024/0a0a3793-5fce-283d-4953-a137f5593db9.htm" target="_blank" rel="noopener"&gt;IEnumerable &amp;lt;FamilySymbol&amp;gt; symbols =&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://www.revitapidocs.com/2024/0a0a3793-5fce-283d-4953-a137f5593db9.htm" target="_blank" rel="noopener"&gt;new FilteredElementCollector(doc).OfCategory(BuiltInCategory.OST_Doors);&lt;/A&gt;&lt;/PRE&gt;&lt;P&gt;Then, create the door instance by&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;doc.Create.NewFamilyInstance&lt;BR /&gt;(&lt;A href="https://www.revitapidocs.com/2024/c2fd995c-95c0-58fb-f5de-f3246cbc5600.htm" target="_blank" rel="noopener"&gt;XYZ&lt;/A&gt; &lt;SPAN class=""&gt;location&lt;/SPAN&gt;,&lt;A href="https://www.revitapidocs.com/2024/a1acaed0-6a62-4c1d-94f5-4e27ce0923d3.htm" target="_blank" rel="noopener"&gt;FamilySymbol&lt;/A&gt; &lt;SPAN class=""&gt;symbol&lt;/SPAN&gt;, &lt;A href="https://www.revitapidocs.com/2024/eb16114f-69ea-f4de-0d0d-f7388b105a16.htm" target="_blank" rel="noopener"&gt;Element&lt;/A&gt; &lt;SPAN class=""&gt;host&lt;/SPAN&gt;, &lt;A href="https://www.revitapidocs.com/2024/577e5d4e-a558-118c-9dea-3b810b061775.htm" target="_blank" rel="noopener"&gt;Level&lt;/A&gt; &lt;SPAN class=""&gt;level&lt;/SPAN&gt;, &lt;A href="https://www.revitapidocs.com/2024/0a0a3793-5fce-283d-4953-a137f5593db9.htm" target="_blank" rel="noopener"&gt;StructuralType)&lt;/A&gt;&lt;/PRE&gt;&lt;P&gt;There are several different dimensions of the doors symbols in "&lt;A href="https://www.revitapidocs.com/2024/0a0a3793-5fce-283d-4953-a137f5593db9.htm" target="_blank" rel="noopener"&gt;IEnumerable &amp;lt;FamilySymbol&amp;gt; symbols"&lt;/A&gt;, and the dimensions of the door created are depended on which one of "FamilySymbol symbol" you choose as the input argument.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, there are limited amounts of dimensions in the &lt;A href="https://www.revitapidocs.com/2024/0a0a3793-5fce-283d-4953-a137f5593db9.htm" target="_blank" rel="noopener"&gt;IEnumerable &amp;lt;FamilySymbol&amp;gt; symbols&lt;/A&gt;. If sometimes I want to customize the dimensions, such as creating a door with the dimensions of 850X1900mm. How can I sort it out? As well as how can I change the dimensions of other host Family Instances and elements such as windows, walls and railings.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In user interface, customizing the dimensions of the door (and other elements) can be easily done in 4 steps as the screenshot attached:&lt;/P&gt;&lt;P&gt;1. Select the door&lt;/P&gt;&lt;P&gt;2. Click "edit type" button on the properties panel&lt;/P&gt;&lt;P&gt;3. Change the dimensions as you wish&lt;/P&gt;&lt;P&gt;4. Click apply or OK.&amp;nbsp;&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-inline" image-alt="2.jpg" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1292213i9123AF82105FDB23/image-size/medium?v=v2&amp;amp;px=400" role="button" title="2.jpg" alt="2.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Any information would be appreciated!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Best,&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Nov 2023 09:56:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/could-i-resize-the-dimensions-of-doors-windows-by-revit-api/m-p/12373399#M8658</guid>
      <dc:creator>u578850b</dc:creator>
      <dc:date>2023-11-13T09:56:35Z</dc:date>
    </item>
    <item>
      <title>Re: Could I resize the dimensions of doors/windows by Revit API?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/could-i-resize-the-dimensions-of-doors-windows-by-revit-api/m-p/12373659#M8659</link>
      <description>&lt;P&gt;Sounds to me as if what you are looking for is the &lt;U&gt;Duplicate&lt;/U&gt; method on the family type:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;A href="https://www.revitapidocs.com/2024/b0e7d5d5-f33a-8ff2-b471-78a213f06ef5.htm" target="_blank"&gt;https://www.revitapidocs.com/2024/b0e7d5d5-f33a-8ff2-b471-78a213f06ef5.htm&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here are some examples of using it:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;A href="http://thebuildingcoder.typepad.com/blog/2008/11/creating-a-new-family-symbol.html" target="_blank"&gt;Creating a new Family Symbol&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="http://thebuildingcoder.typepad.com/blog/2009/02/inserting-a-column.html" target="_blank"&gt;Inserting a Column&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="http://thebuildingcoder.typepad.com/blog/2009/04/revit-api-cases-1.html" target="_blank"&gt;Revit API Cases 1&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="http://thebuildingcoder.typepad.com/blog/2011/02/system-family-creation.html" target="_blank"&gt;System Family Creation&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="http://thebuildingcoder.typepad.com/blog/2011/09/transfer-project-standards.html" target="_blank"&gt;Transfer Project Standards&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="http://thebuildingcoder.typepad.com/blog/2011/10/set-new-pipe-type-properties.html" target="_blank"&gt;Set New Pipe Type Properties&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="http://thebuildingcoder.typepad.com/blog/2012/12/extra-transaction-or-regeneration-required.html" target="_blank"&gt;Extra Transaction or Regeneration Required&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="http://thebuildingcoder.typepad.com/blog/2013/07/family-api-create-type-select-and-modify-instances.html" target="_blank"&gt;Family API – Create Type, Select and Modify Instances&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="http://thebuildingcoder.typepad.com/blog/2013/09/creating-an-offset-wall.html" target="_blank"&gt;Creating an Offset Wall&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="http://thebuildingcoder.typepad.com/blog/2015/05/transferring-a-wall-type.html" target="_blank"&gt;Transferring a Wall Type&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="http://thebuildingcoder.typepad.com/blog/2018/02/changing-text-colour.html" target="_blank"&gt;Changing Text Colour&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="https://thebuildingcoder.typepad.com/blog/2021/04/sneak-peek-automatic-column-arc-angle-career.html" target="_blank"&gt;Sneak Peek, Automatic Column, Arc Angle, Career&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="https://thebuildingcoder.typepad.com/blog/2023/06/sustainability-lookup-sub-elements-and-wall-types.html" target="_blank"&gt;Sustainability, Lookup, Sub-Elements and Wall Types&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Nov 2023 12:21:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/could-i-resize-the-dimensions-of-doors-windows-by-revit-api/m-p/12373659#M8659</guid>
      <dc:creator>jeremy_tammik</dc:creator>
      <dc:date>2023-11-13T12:21:38Z</dc:date>
    </item>
    <item>
      <title>Re: Could I resize the dimensions of doors/windows by Revit API?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/could-i-resize-the-dimensions-of-doors-windows-by-revit-api/m-p/12375476#M8660</link>
      <description>&lt;P&gt;Thank you Jeremy.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've looked through the links, but it seems... they are not the things what I am looking for.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let me explain my question more specifically:&lt;/P&gt;&lt;P&gt;In the user interface, I can create a window onto a wall, and then I can change the dimension in two ways:&lt;/P&gt;&lt;P&gt;1. Click the window and then choosing one of the six different dimensions of "Window_Sgl_Plain" on the drop-down selection list on properties panel as "method 1" attached. But in this method, the window can only be resized into one of the six default dimensions.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="method 1 - Copy.png" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1292544i2DFF2C5A3C4ED18C/image-size/large?v=v2&amp;amp;px=999" role="button" title="method 1 - Copy.png" alt="method 1 - Copy.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;2. If there is no a dimension I want to use in the method 1, I can click "Edit" button on the properties panel, and input the value of length and width as you wish as "method 2" attached.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="method 2.jpg" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1292543iEA12434127BFD210/image-size/large?v=v2&amp;amp;px=999" role="button" title="method 2.jpg" alt="method 2.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In Revit API, I can only change the size of window in method 1, using the six existing dimensions collected in the API collector. But if I want to use a different dimension out of the existing six default dimensions, such as 850x1900mm which is not existed in the drop-down list,&amp;nbsp;how can I achieve this in Revit API?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Roger&lt;/P&gt;</description>
      <pubDate>Tue, 14 Nov 2023 06:10:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/could-i-resize-the-dimensions-of-doors-windows-by-revit-api/m-p/12375476#M8660</guid>
      <dc:creator>u578850b</dc:creator>
      <dc:date>2023-11-14T06:10:34Z</dc:date>
    </item>
    <item>
      <title>Re: Could I resize the dimensions of doors/windows by Revit API?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/could-i-resize-the-dimensions-of-doors-windows-by-revit-api/m-p/12375712#M8661</link>
      <description>&lt;P&gt;You can programmatically select one of the family symbols in the document, call Duplicate on that to create a new family symbol, modify its dimensions (defined by family parameters) to suit your needs, and insert an instance of your new symbol.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is a partially related discussion going on right now, on how to handle the situation if a family has no symbols defined (I do not think this is the case in the situation you describe, but it illuminates some aspects that may help understand the process):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;A href="https://forums.autodesk.com/t5/revit-api-forum/create-the-first-symbol-of-a-family/td-p/12375239" target="_blank"&gt;https://forums.autodesk.com/t5/revit-api-forum/create-the-first-symbol-of-a-family/td-p/12375239&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Nov 2023 08:37:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/could-i-resize-the-dimensions-of-doors-windows-by-revit-api/m-p/12375712#M8661</guid>
      <dc:creator>jeremy_tammik</dc:creator>
      <dc:date>2023-11-14T08:37:29Z</dc:date>
    </item>
  </channel>
</rss>

