<?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: Set active work plane in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/set-active-work-plane/m-p/4402139#M79679</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hi Ning,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes, you can. Saikat's code create a sketch plane from scratch. You can also call SketchPlane.Create(Reference refPlanar) to create a sketch plane using an existing planar plane.&lt;/P&gt;
&lt;PRE space="preserve"&gt;&lt;SPAN class="keyword"&gt;public&lt;/SPAN&gt; &lt;SPAN class="keyword"&gt;static&lt;/SPAN&gt; &lt;A href="https://forums.autodesk.com/t5/forums/replypage/board-id/160/message-id/ba104029-d175-7e75-caef-667a4281f4af.htm" target="_blank"&gt;SketchPlane&lt;/A&gt; &lt;SPAN class="identifier"&gt;Create&lt;/SPAN&gt;(
	&lt;A href="https://forums.autodesk.com/t5/forums/replypage/board-id/160/message-id/db03274b-a107-aa32-9034-f3e0df4bb1ec.htm" target="_blank"&gt;Document&lt;/A&gt; &lt;SPAN class="parameter"&gt;document&lt;/SPAN&gt;,
	&lt;A href="https://forums.autodesk.com/t5/forums/replypage/board-id/160/message-id/d28155ae-817b-1f31-9c3f-c9c6a28acc0d.htm" target="_blank"&gt;Reference&lt;/A&gt; &lt;SPAN class="parameter"&gt;planarFaceReference&lt;/SPAN&gt;
)&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;______________________________________________________________&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0174df"&gt;If my post answers your question, please click the &lt;STRONG&gt;"Accept as Solution"&lt;/STRONG&gt; button. This helps everyone find answers more quickly!&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 06 Sep 2013 02:42:24 GMT</pubDate>
    <dc:creator>Joe.Ye</dc:creator>
    <dc:date>2013-09-06T02:42:24Z</dc:date>
    <item>
      <title>Set active work plane</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/set-active-work-plane/m-p/3818199#M79674</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;is it possibility to set active work plane for some view ?&lt;/P&gt;&lt;P&gt;There are ..ActiveView.ShowActiveWorkPlane() and&lt;/P&gt;&lt;P&gt;HideActiveWorkPlane() but how to set active plane ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for advance.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Mar 2013 09:31:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/set-active-work-plane/m-p/3818199#M79674</guid>
      <dc:creator>Adamchuk_Nicolay</dc:creator>
      <dc:date>2013-03-29T09:31:03Z</dc:date>
    </item>
    <item>
      <title>Re: Set active work plane</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/set-active-work-plane/m-p/3820218#M79676</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The following code shows how to creata a new SketchPlane and assign it as the active workplane.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV style="font-family: Courier New; background: white; color: black; font-size: 8pt;"&gt;
&lt;P style="margin: 0px;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV style="font-family: Courier New; background: white; color: black; font-size: 8pt;"&gt;
&lt;P style="margin: 0px;"&gt;&lt;SPAN style="line-height: 140%;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="line-height: 140%; color: #2b91af;"&gt;UIApplication&lt;/SPAN&gt;&lt;SPAN style="line-height: 140%;"&gt; uiApp = commandData.Application;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0px;"&gt;&lt;SPAN style="line-height: 140%;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="line-height: 140%; color: #2b91af;"&gt;UIDocument&lt;/SPAN&gt;&lt;SPAN style="line-height: 140%;"&gt; uiDoc = uiApp.ActiveUIDocument;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0px;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0px;"&gt;&lt;SPAN style="line-height: 140%;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="line-height: 140%; color: green;"&gt;// Setting workplane&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0px;"&gt;&lt;SPAN style="line-height: 140%;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="line-height: 140%; color: blue;"&gt;using&lt;/SPAN&gt;&lt;SPAN style="line-height: 140%;"&gt; (&lt;/SPAN&gt;&lt;SPAN style="line-height: 140%; color: #2b91af;"&gt;Transaction&lt;/SPAN&gt;&lt;SPAN style="line-height: 140%;"&gt; transaction = &lt;/SPAN&gt;&lt;SPAN style="line-height: 140%; color: blue;"&gt;new&lt;/SPAN&gt;&lt;SPAN style="line-height: 140%; color: #2b91af;"&gt;Transaction&lt;/SPAN&gt;&lt;SPAN style="line-height: 140%;"&gt;(uiDoc.Document, &lt;/SPAN&gt;&lt;SPAN style="line-height: 140%; color: #a31515;"&gt;"tt"&lt;/SPAN&gt;&lt;SPAN style="line-height: 140%;"&gt;))&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0px;"&gt;&lt;SPAN style="line-height: 140%;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0px;"&gt;&lt;SPAN style="line-height: 140%;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; transaction.Start();&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0px;"&gt;&lt;SPAN style="line-height: 140%;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="line-height: 140%; color: #2b91af;"&gt;Plane&lt;/SPAN&gt;&lt;SPAN style="line-height: 140%;"&gt; plane = &lt;/SPAN&gt;&lt;SPAN style="line-height: 140%; color: blue;"&gt;new&lt;/SPAN&gt;&lt;SPAN style="line-height: 140%; color: #2b91af;"&gt;Plane&lt;/SPAN&gt;&lt;SPAN style="line-height: 140%;"&gt;(uiDoc.ActiveView.ViewDirection, uiDoc.ActiveView.Origin);&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0px;"&gt;&lt;SPAN style="line-height: 140%;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="line-height: 140%; color: #2b91af;"&gt;SketchPlane&lt;/SPAN&gt;&lt;SPAN style="line-height: 140%;"&gt; sp = uiDoc.Document.Create.NewSketchPlane(plane);&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0px;"&gt;&lt;SPAN style="line-height: 140%;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; uiDoc.ActiveView.SketchPlane = sp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0px;"&gt;&lt;SPAN style="line-height: 140%;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; uiDoc.ActiveView.ShowActiveWorkPlane();&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0px;"&gt;&lt;SPAN style="line-height: 140%;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; transaction.Commit();&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0px;"&gt;&lt;SPAN style="line-height: 140%;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/SPAN&gt;&lt;/P&gt;
&lt;/DIV&gt;
&lt;P style="margin: 0px;"&gt;&lt;SPAN style="line-height: 140%;"&gt;&lt;!--EndFragment--&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0px;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0px;"&gt;I hope this helps.&lt;/P&gt;
&lt;P style="margin: 0px;"&gt;cheers&lt;/P&gt;
&lt;P style="margin: 0px;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Mon, 01 Apr 2013 22:07:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/set-active-work-plane/m-p/3820218#M79676</guid>
      <dc:creator>saikat</dc:creator>
      <dc:date>2013-04-01T22:07:23Z</dc:date>
    </item>
    <item>
      <title>Re: Set active work plane</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/set-active-work-plane/m-p/3820657#M79677</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Dear Saikat!&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Thank you for advance.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Try to use it.&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Apr 2013 13:37:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/set-active-work-plane/m-p/3820657#M79677</guid>
      <dc:creator>Adamchuk_Nicolay</dc:creator>
      <dc:date>2013-04-02T13:37:11Z</dc:date>
    </item>
    <item>
      <title>Re: Set active work plane</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/set-active-work-plane/m-p/4367105#M79678</link>
      <description>any idea how to set workplane from existing planes of the view?</description>
      <pubDate>Thu, 15 Aug 2013 04:55:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/set-active-work-plane/m-p/4367105#M79678</guid>
      <dc:creator>Ning_Zhou</dc:creator>
      <dc:date>2013-08-15T04:55:49Z</dc:date>
    </item>
    <item>
      <title>Re: Set active work plane</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/set-active-work-plane/m-p/4402139#M79679</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hi Ning,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes, you can. Saikat's code create a sketch plane from scratch. You can also call SketchPlane.Create(Reference refPlanar) to create a sketch plane using an existing planar plane.&lt;/P&gt;
&lt;PRE space="preserve"&gt;&lt;SPAN class="keyword"&gt;public&lt;/SPAN&gt; &lt;SPAN class="keyword"&gt;static&lt;/SPAN&gt; &lt;A href="https://forums.autodesk.com/t5/forums/replypage/board-id/160/message-id/ba104029-d175-7e75-caef-667a4281f4af.htm" target="_blank"&gt;SketchPlane&lt;/A&gt; &lt;SPAN class="identifier"&gt;Create&lt;/SPAN&gt;(
	&lt;A href="https://forums.autodesk.com/t5/forums/replypage/board-id/160/message-id/db03274b-a107-aa32-9034-f3e0df4bb1ec.htm" target="_blank"&gt;Document&lt;/A&gt; &lt;SPAN class="parameter"&gt;document&lt;/SPAN&gt;,
	&lt;A href="https://forums.autodesk.com/t5/forums/replypage/board-id/160/message-id/d28155ae-817b-1f31-9c3f-c9c6a28acc0d.htm" target="_blank"&gt;Reference&lt;/A&gt; &lt;SPAN class="parameter"&gt;planarFaceReference&lt;/SPAN&gt;
)&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;______________________________________________________________&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0174df"&gt;If my post answers your question, please click the &lt;STRONG&gt;"Accept as Solution"&lt;/STRONG&gt; button. This helps everyone find answers more quickly!&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Sep 2013 02:42:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/set-active-work-plane/m-p/4402139#M79679</guid>
      <dc:creator>Joe.Ye</dc:creator>
      <dc:date>2013-09-06T02:42:24Z</dc:date>
    </item>
    <item>
      <title>Re: Set active work plane</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/set-active-work-plane/m-p/4402179#M79680</link>
      <description>&lt;P&gt;thanks Joe, what i mean is how to set workplane fron existing list, see attached JPG.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Sep 2013 03:41:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/set-active-work-plane/m-p/4402179#M79680</guid>
      <dc:creator>Ning_Zhou</dc:creator>
      <dc:date>2013-09-06T03:41:24Z</dc:date>
    </item>
    <item>
      <title>Re: Set active work plane</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/set-active-work-plane/m-p/4403249#M79681</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hi Ning,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sorry for the misunderstanding.&lt;/P&gt;
&lt;P&gt;You can get the SketchPlane from the existing document. SketchPlane instances are store in Revit document. Just follow the element filtering way to get your target sketch plane.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Sep 2013 10:37:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/set-active-work-plane/m-p/4403249#M79681</guid>
      <dc:creator>Joe.Ye</dc:creator>
      <dc:date>2013-09-06T10:37:52Z</dc:date>
    </item>
    <item>
      <title>Re: Set active work plane</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/set-active-work-plane/m-p/4403503#M79682</link>
      <description>right, thanks Joe &amp;amp; have great weekend!</description>
      <pubDate>Fri, 06 Sep 2013 10:46:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/set-active-work-plane/m-p/4403503#M79682</guid>
      <dc:creator>Ning_Zhou</dc:creator>
      <dc:date>2013-09-06T10:46:14Z</dc:date>
    </item>
    <item>
      <title>Re: Set active work plane</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/set-active-work-plane/m-p/10502794#M79683</link>
      <description>&lt;P&gt;I know this is an older post. Can the solution to this be applied with Dynamo in the Code Block or Python? I not too familiar with python, but I think this route would help me achieve what I am trying to in Dynamo and get the work plane set before placing elements. Not sure what my input and output need to be set at.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jul 2021 15:46:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/set-active-work-plane/m-p/10502794#M79683</guid>
      <dc:creator>Jason_Miller6</dc:creator>
      <dc:date>2021-07-28T15:46:48Z</dc:date>
    </item>
    <item>
      <title>Re: Set active work plane</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/set-active-work-plane/m-p/10504000#M79684</link>
      <description>&lt;P&gt;zero touch is the way to go if not doable in Python&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jul 2021 01:31:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/set-active-work-plane/m-p/10504000#M79684</guid>
      <dc:creator>zhounnin</dc:creator>
      <dc:date>2021-07-29T01:31:24Z</dc:date>
    </item>
    <item>
      <title>Re: Set active work plane</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/set-active-work-plane/m-p/10696219#M79685</link>
      <description>&lt;P&gt;The method for the creation of the Plane has changed, in case anyone needs this i'll leave a code snippet:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;using(Transaction t = new Transaction(doc, "Creating sketchplane"))
                    {
                        t.Start();
                        Plane plane = Plane.CreateByNormalAndOrigin(doc.ActiveView.ViewDirection, doc.ActiveView.Origin);
                        SketchPlane sp = SketchPlane.Create(doc, plane);
                        doc.ActiveView.SketchPlane = sp;
                        t.Commit();
                    }&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 18 Oct 2021 16:15:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/set-active-work-plane/m-p/10696219#M79685</guid>
      <dc:creator>paolomod3nese</dc:creator>
      <dc:date>2021-10-18T16:15:33Z</dc:date>
    </item>
  </channel>
</rss>

