<?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 [Revit API] How to add Symbolic lines into shaft openning? in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/revit-api-how-to-add-symbolic-lines-into-shaft-openning/m-p/10801430#M22006</link>
    <description>&lt;P&gt;hello everyone!!&lt;/P&gt;&lt;P&gt;I have the code below to create the shaft opening . but I don't know how to add symbolic lines .&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;            uiapp = commandData.Application;
            uidoc = uiapp.ActiveUIDocument;
            doc = uidoc.Document;
            var filter = new FilteredElementCollector(doc).OfClass(typeof(Level)).OfCategory(BuiltInCategory.OST_Levels).Cast&amp;lt;Level&amp;gt;().ToList();
            CurveArray curveArray = new CurveArray();
            Line l1 = Line.CreateBound(XYZ.Zero, new XYZ(1,0,0));
            Line l2 = Line.CreateBound(new XYZ(1, 0, 0), new XYZ(1, 1, 0));
            Line l3 = Line.CreateBound(new XYZ(1, 1, 0), new XYZ(0, 1, 0));
            Line l4 = Line.CreateBound(new XYZ(0, 1, 0), XYZ.Zero);
            curveArray.Append(l1);
            curveArray.Append(l2);
            curveArray.Append(l3);
            curveArray.Append(l4);
 
            using (Transaction tr= new Transaction(doc))
            {
                tr.Start("strat");
                Opening opening = doc.Create.NewOpening(filter[0], filter[1], curveArray);
                tr.Commit();
            }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Picture(description)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="huynguyen96str_0-1638669016298.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/997306iB04FB7067726C3DD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="huynguyen96str_0-1638669016298.png" alt="huynguyen96str_0-1638669016298.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope someone can guide me on this!!&lt;BR /&gt;Thanks all!!&lt;/P&gt;</description>
    <pubDate>Sun, 05 Dec 2021 01:51:05 GMT</pubDate>
    <dc:creator>huynguyen96str</dc:creator>
    <dc:date>2021-12-05T01:51:05Z</dc:date>
    <item>
      <title>[Revit API] How to add Symbolic lines into shaft openning?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/revit-api-how-to-add-symbolic-lines-into-shaft-openning/m-p/10801430#M22006</link>
      <description>&lt;P&gt;hello everyone!!&lt;/P&gt;&lt;P&gt;I have the code below to create the shaft opening . but I don't know how to add symbolic lines .&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;            uiapp = commandData.Application;
            uidoc = uiapp.ActiveUIDocument;
            doc = uidoc.Document;
            var filter = new FilteredElementCollector(doc).OfClass(typeof(Level)).OfCategory(BuiltInCategory.OST_Levels).Cast&amp;lt;Level&amp;gt;().ToList();
            CurveArray curveArray = new CurveArray();
            Line l1 = Line.CreateBound(XYZ.Zero, new XYZ(1,0,0));
            Line l2 = Line.CreateBound(new XYZ(1, 0, 0), new XYZ(1, 1, 0));
            Line l3 = Line.CreateBound(new XYZ(1, 1, 0), new XYZ(0, 1, 0));
            Line l4 = Line.CreateBound(new XYZ(0, 1, 0), XYZ.Zero);
            curveArray.Append(l1);
            curveArray.Append(l2);
            curveArray.Append(l3);
            curveArray.Append(l4);
 
            using (Transaction tr= new Transaction(doc))
            {
                tr.Start("strat");
                Opening opening = doc.Create.NewOpening(filter[0], filter[1], curveArray);
                tr.Commit();
            }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Picture(description)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="huynguyen96str_0-1638669016298.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/997306iB04FB7067726C3DD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="huynguyen96str_0-1638669016298.png" alt="huynguyen96str_0-1638669016298.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope someone can guide me on this!!&lt;BR /&gt;Thanks all!!&lt;/P&gt;</description>
      <pubDate>Sun, 05 Dec 2021 01:51:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/revit-api-how-to-add-symbolic-lines-into-shaft-openning/m-p/10801430#M22006</guid>
      <dc:creator>huynguyen96str</dc:creator>
      <dc:date>2021-12-05T01:51:05Z</dc:date>
    </item>
    <item>
      <title>Re: [Revit API] How to add Symbolic lines into shaft openning?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/revit-api-how-to-add-symbolic-lines-into-shaft-openning/m-p/10802083#M22007</link>
      <description>&lt;P&gt;Is a symbolic line a detail line? Can detail lines exist only in detail views, or plan views, or where? Have you researched how to achieve this manually through the end user interface? In general, the best way to approach a Revit API programming task is to determine the optimal workflow and best practices manually in the UI first, before addressing the programming steps. Here are some articles from The Building Coder that will certainly help:&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/2009/09/detail-lines.html" target="_blank"&gt;Detail Lines&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="http://thebuildingcoder.typepad.com/blog/2010/01/model-and-detail-curve-colour.html" target="_blank"&gt;Model and Detail Curve Colour&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="http://thebuildingcoder.typepad.com/blog/2010/02/detail-curve-on-level.html" target="_blank"&gt;Detail Curve on Level&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="http://thebuildingcoder.typepad.com/blog/2010/05/detail-curve-must-be-in-plane.html" target="_blank"&gt;Detail Curve Must be in Plane&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="http://thebuildingcoder.typepad.com/blog/2010/05/detail-curve-must-indeed-lie-in-plane.html" target="_blank"&gt;Detail Curve Must Indeed lie in Plane&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="http://thebuildingcoder.typepad.com/blog/2013/01/set-detail-curve-visibility.html" target="_blank"&gt;Set Detail Curve Visibility&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="http://thebuildingcoder.typepad.com/blog/2013/02/whats-new-in-the-revit-2010-api.html" target="_blank"&gt;What's New in the Revit 2010 API:&amp;nbsp;Detail Curves use sketch plane of their view&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="http://thebuildingcoder.typepad.com/blog/2013/03/whats-new-in-the-revit-2013-api.html" target="_blank"&gt;What's New in the Revit 2013 API:&amp;nbsp;Detailing and Annotations&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="http://thebuildingcoder.typepad.com/blog/2013/04/whats-new-in-the-revit-2014-api.html" target="_blank"&gt;What's New in the Revit 2014 API:&amp;nbsp;Detail elements&amp;nbsp;&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 05 Dec 2021 16:02:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/revit-api-how-to-add-symbolic-lines-into-shaft-openning/m-p/10802083#M22007</guid>
      <dc:creator>jeremy_tammik</dc:creator>
      <dc:date>2021-12-05T16:02:31Z</dc:date>
    </item>
    <item>
      <title>Re: [Revit API] How to add Symbolic lines into shaft openning?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/revit-api-how-to-add-symbolic-lines-into-shaft-openning/m-p/10805417#M22008</link>
      <description>&lt;P&gt;Thank you very much, I will study them again&lt;/P&gt;</description>
      <pubDate>Tue, 07 Dec 2021 06:22:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/revit-api-how-to-add-symbolic-lines-into-shaft-openning/m-p/10805417#M22008</guid>
      <dc:creator>huynguyen96str</dc:creator>
      <dc:date>2021-12-07T06:22:12Z</dc:date>
    </item>
  </channel>
</rss>

