<?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: How to create a Slanted wall with Revit API? (python) in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-create-a-slanted-wall-with-revit-api-python/m-p/11170836#M19107</link>
    <description>&lt;P&gt;So I've found the way to use&amp;nbsp;&lt;SPAN&gt;BuiltInParameter.WALL_CROSS_SECTION:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;wall_cross = Wall.get_Parameter(BuiltInParameter.WALL_CROSS_SECTION)&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;wall_cross.Set(1)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;But Python gives me an error. This method "get_Parameter"&amp;nbsp; uses 2 arguments, but was given only one, so there is a question what kind is the second arg?&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 16 May 2022 04:52:50 GMT</pubDate>
    <dc:creator>franksglory2020</dc:creator>
    <dc:date>2022-05-16T04:52:50Z</dc:date>
    <item>
      <title>How to create a Slanted wall with Revit API? (python)</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-create-a-slanted-wall-with-revit-api-python/m-p/11166651#M19105</link>
      <description>&lt;P&gt;Im trying to develop script for myself in dynamo(Revit 2021), but I don't understand how can I create the slanted wall? According to this&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://thebuildingcoder.typepad.com/blog/2020/04/whats-new-in-the-revit-2021-api.html#4.1.9" target="_blank" rel="nofollow noopener noreferrer"&gt;blog of changes in revit 2021,&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;there are such parameters for creating inclined walls as BuiltInParameter.WALL_CROSS_SECTION. However, there are no examples of using them to existing parameters or classes. Therefore, I do not understand exactly where to use it at the stage of creating a line or wall and what should be the appeal?&lt;/P&gt;&lt;P&gt;The part of the code where the wall itself is created, in the end I tried to turn to the wall and change its orientation parameter to an inclined one, because there are no other appeals.&lt;/P&gt;&lt;PRE&gt;import sys
import clr
clr.AddReference('ProtoGeometry')
from Autodesk.DesignScript.Geometry import *

clr.AddReference('RevitServices')
import RevitServices
from RevitServices.Persistence import DocumentManager
from RevitServices.Transactions import TransactionManager
doc = DocumentManager.Instance.CurrentDBDocument

clr.AddReference('RevitAPI')
import Autodesk
from Autodesk.Revit.DB import *

clr.AddReference('RevitNodes')
import Revit
clr.ImportExtensions(Revit.Elements)
clr.ImportExtensions(Revit.GeometryConversion) 
# points for line
p_tp_1_1 =  XYZ(x_tp_1_1, y_tp1, levels.get_Parameter(BuiltInParameter.LEVEL_ELEV).AsDouble() + size_of_batten_1v_width)
p_tp_1_2 =  XYZ(x_tp_1_2, y_tp1, levels.get_Parameter(BuiltInParameter.LEVEL_ELEV).AsDouble() + size_of_batten_1v_width)
# Draw a line
wall_line_tp1 = Line.CreateBound(p_tp_1_1, p_tp_1_2)
# Create a Wall
wall_tp1 = Wall.Create(doc, wall_line_tp1, type.Id, levels.Id, h_tp_1, z_tp1, 0, 1)
wall_tp1.Orientation(BuiltInParameter.WALL_CROSS_SECTION(1))&lt;/PRE&gt;&lt;P&gt;All informations for points are getting from excel file.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I waiting for feedback. Also if you have С# or С++ cod - it count too, I'll try to&amp;nbsp;adapt it to python. Thanks for any help!&lt;/P&gt;</description>
      <pubDate>Fri, 13 May 2022 09:34:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-create-a-slanted-wall-with-revit-api-python/m-p/11166651#M19105</guid>
      <dc:creator>franksglory2020</dc:creator>
      <dc:date>2022-05-13T09:34:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a Slanted wall with Revit API? (python)</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-create-a-slanted-wall-with-revit-api-python/m-p/11166710#M19106</link>
      <description>&lt;P&gt;Here are some API samples and updates from The Building Coder that may be of use:&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/2011/03/the-facewall-class-and-slanted-walls.html" target="_blank"&gt;The FaceWall Class and Slanted Walls&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="http://thebuildingcoder.typepad.com/blog/2013/01/create-facewall-on-slanted-mass-face.html" target="_blank"&gt;Create FaceWall on Slanted Mass Face&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="https://thebuildingcoder.typepad.com/blog/2020/04/whats-new-in-the-revit-2021-api.html#4.1.9" target="_blank"&gt;What's New in the Revit 2021 API: 1.9. Slanted Walls&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="https://thebuildingcoder.typepad.com/blog/2021/04/whats-new-in-the-revit-2022-api.html#4.2.1.4" target="_blank"&gt;What's New in the Revit 2022 API: 2.1.4. Slanted and Tapered Walls&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 May 2022 10:10:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-create-a-slanted-wall-with-revit-api-python/m-p/11166710#M19106</guid>
      <dc:creator>jeremy_tammik</dc:creator>
      <dc:date>2022-05-13T10:10:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a Slanted wall with Revit API? (python)</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-create-a-slanted-wall-with-revit-api-python/m-p/11170836#M19107</link>
      <description>&lt;P&gt;So I've found the way to use&amp;nbsp;&lt;SPAN&gt;BuiltInParameter.WALL_CROSS_SECTION:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;wall_cross = Wall.get_Parameter(BuiltInParameter.WALL_CROSS_SECTION)&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;wall_cross.Set(1)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;But Python gives me an error. This method "get_Parameter"&amp;nbsp; uses 2 arguments, but was given only one, so there is a question what kind is the second arg?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 16 May 2022 04:52:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-create-a-slanted-wall-with-revit-api-python/m-p/11170836#M19107</guid>
      <dc:creator>franksglory2020</dc:creator>
      <dc:date>2022-05-16T04:52:50Z</dc:date>
    </item>
  </channel>
</rss>

