<?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 model Line with C# in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-create-a-model-line-with-c/m-p/11537833#M15690</link>
    <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Trial error.PNG" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1137305iB17B80206548B300/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Trial error.PNG" alt="Trial error.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Trial error2.PNG" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1137304i3E8CE6DDDC51B314/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Trial error2.PNG" alt="Trial error2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;  Hi Kumar it didn't work, maybe I did something wrong in my script ? Do you know what's the problem?&lt;BR /&gt;THanks&lt;/P&gt;</description>
    <pubDate>Tue, 08 Nov 2022 08:21:19 GMT</pubDate>
    <dc:creator>ahmadkhalaf7892</dc:creator>
    <dc:date>2022-11-08T08:21:19Z</dc:date>
    <item>
      <title>How to Create a model Line with C#</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-create-a-model-line-with-c/m-p/11537748#M15688</link>
      <description>&lt;P&gt;Hi Guys, I am a total beginner in C# and Revit API my first task is to draw a model Line in Revit with an elevation for example&amp;nbsp;&lt;BR /&gt;Start point XYZ(0,0,0) End Point XYZ(0,0,10);&lt;BR /&gt;Any Idea how I can achieve it?&lt;BR /&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2022 07:33:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-create-a-model-line-with-c/m-p/11537748#M15688</guid>
      <dc:creator>ahmadkhalaf7892</dc:creator>
      <dc:date>2022-11-08T07:33:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to Create a model Line with C#</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-create-a-model-line-with-c/m-p/11537814#M15689</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/11451450"&gt;@ahmadkhalaf7892&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please try using this below code&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;XYZ startPt = new XYZ(0, 0, 0);
XYZ endPt = new XYZ(0, 0, 10);
Curve curve = Line.CreateBound(startPt,endPt);
Plane plane = Plane.CreateByNormalAndOrigin(new XYZ(0,1,0), new XYZ(0, 0, 0));
SketchPlane sketchPlane = SketchPlane.Create(doc,plane);
doc.Create.NewModelCurve(curve, sketchPlane);&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 08 Nov 2022 08:12:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-create-a-model-line-with-c/m-p/11537814#M15689</guid>
      <dc:creator>naveen.kumar.t</dc:creator>
      <dc:date>2022-11-08T08:12:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to Create a model Line with C#</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-create-a-model-line-with-c/m-p/11537833#M15690</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Trial error.PNG" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1137305iB17B80206548B300/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Trial error.PNG" alt="Trial error.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Trial error2.PNG" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1137304i3E8CE6DDDC51B314/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Trial error2.PNG" alt="Trial error2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;  Hi Kumar it didn't work, maybe I did something wrong in my script ? Do you know what's the problem?&lt;BR /&gt;THanks&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2022 08:21:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-create-a-model-line-with-c/m-p/11537833#M15690</guid>
      <dc:creator>ahmadkhalaf7892</dc:creator>
      <dc:date>2022-11-08T08:21:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to Create a model Line with C#</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-create-a-model-line-with-c/m-p/11537852#M15691</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/11451450"&gt;@ahmadkhalaf7892&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you are adding/modifying/deleting an element in the Revit project via Revit API, then, your code should be inside the transaction.&lt;/P&gt;
&lt;LI-CODE lang="csharp"&gt;Transaction transaction1 = new Transaction(doc);
transaction1.Start("Create Model Line");
XYZ startPt = new XYZ(0, 0, 0);
XYZ endPt = new XYZ(0, 0, 10);
Curve curve = Line.CreateBound(startPt, endPt);
Plane plane = Plane.CreateByNormalAndOrigin(new XYZ(0,1,0),new XYZ(0, 0, 0));
SketchPlane sketchPlane = SketchPlane.Create(doc, plane);
doc.Create.NewModelCurve(curve, sketchPlane);
transaction1.Commit();&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 08 Nov 2022 08:29:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-create-a-model-line-with-c/m-p/11537852#M15691</guid>
      <dc:creator>naveen.kumar.t</dc:creator>
      <dc:date>2022-11-08T08:29:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to Create a model Line with C#</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-create-a-model-line-with-c/m-p/11537871#M15692</link>
      <description>Forgive me for asking but I am a total beginner I started two days ago and only want a line to be drawn inside Revit, I am not aiming to edit an element for now.&lt;BR /&gt;Can you please show me a capture or anything that shows where the code should be .</description>
      <pubDate>Tue, 08 Nov 2022 08:34:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-create-a-model-line-with-c/m-p/11537871#M15692</guid>
      <dc:creator>ahmadkhalaf7892</dc:creator>
      <dc:date>2022-11-08T08:34:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to Create a model Line with C#</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-create-a-model-line-with-c/m-p/11537940#M15693</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Forum.png" style="width: 709px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1137327i1F469DACB732B315/image-dimensions/709x319?v=v2" width="709" height="319" role="button" title="Forum.png" alt="Forum.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2022 09:07:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-create-a-model-line-with-c/m-p/11537940#M15693</guid>
      <dc:creator>naveen.kumar.t</dc:creator>
      <dc:date>2022-11-08T09:07:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to Create a model Line with C#</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-create-a-model-line-with-c/m-p/11537943#M15694</link>
      <description>Thank you my dear</description>
      <pubDate>Tue, 08 Nov 2022 09:09:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-create-a-model-line-with-c/m-p/11537943#M15694</guid>
      <dc:creator>ahmadkhalaf7892</dc:creator>
      <dc:date>2022-11-08T09:09:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to Create a model Line with C#</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-create-a-model-line-with-c/m-p/11537950#M15695</link>
      <description>&lt;P&gt;I would suggest you go through this MyFirstPlugin Page first. This will help you to understand the basics of Revit Plugin Development.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;A href="https://knowledge.autodesk.com/search-result/caas/simplecontent/content/my-first-revit-plug-overview.html" target="_blank" rel="noopener"&gt;https://knowledge.autodesk.com/search-result/caas/simplecontent/content/my-first-revit-plug-overview.html&lt;/A&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2022 09:14:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-create-a-model-line-with-c/m-p/11537950#M15695</guid>
      <dc:creator>naveen.kumar.t</dc:creator>
      <dc:date>2022-11-08T09:14:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to Create a model Line with C#</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-create-a-model-line-with-c/m-p/11538031#M15696</link>
      <description>Will do Thank you again</description>
      <pubDate>Tue, 08 Nov 2022 10:08:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-create-a-model-line-with-c/m-p/11538031#M15696</guid>
      <dc:creator>ahmadkhalaf7892</dc:creator>
      <dc:date>2022-11-08T10:08:39Z</dc:date>
    </item>
  </channel>
</rss>

