<?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: Clip in navisworks in Navisworks API Forum</title>
    <link>https://forums.autodesk.com/t5/navisworks-api-forum/clip-in-navisworks/m-p/11163222#M1992</link>
    <description>&lt;P&gt;If you are referring to section boxes / clipping boxes, it is possible to set a clipping box based on Json values&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;string minCorner = string.Format("{0},{1},{2}", BBoxMinPt.X.ToString(), BBoxMinPt.Y.ToString(), BBoxMinPt.Z.ToString());
string maxCorner = string.Format("{0},{1},{2}", BBoxMaxPt.X.ToString(), BBoxMaxPt.Y.ToString(), BBoxMaxPt.Z.ToString());
 
// apply the section box.
                string ClippingBox =
                    "{\"Type\":\"ClipPlaneSet\",\"Version\":1,\"OrientedBox\":{\"Type\":\"OrientedBox3D\",\"Version\":1,\"Box\":[["
                    + minCorner
                    + "],["
                    + maxCorner
                    + "]],\"Rotation\":[0,0,0]},\"Enabled\":true}";

                // apply clipping to current view.
                ActiveView.TrySetClippingPlanes(ClippingBox);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It can also be achieved through COMApi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kevin&lt;/P&gt;</description>
    <pubDate>Thu, 12 May 2022 00:38:36 GMT</pubDate>
    <dc:creator>kevin_fielding</dc:creator>
    <dc:date>2022-05-12T00:38:36Z</dc:date>
    <item>
      <title>Clip in navisworks</title>
      <link>https://forums.autodesk.com/t5/navisworks-api-forum/clip-in-navisworks/m-p/11148326#M1990</link>
      <description>&lt;P&gt;I want to create a clip box in navisworks using the API, I have the upper X, Y, Z and lower X, Y, Z coordinates however I am unsure if this is possible and if there is a function in the API to do this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Simon&lt;/P&gt;</description>
      <pubDate>Wed, 04 May 2022 20:55:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-api-forum/clip-in-navisworks/m-p/11148326#M1990</guid>
      <dc:creator>ticodi</dc:creator>
      <dc:date>2022-05-04T20:55:52Z</dc:date>
    </item>
    <item>
      <title>Re: Clip in navisworks</title>
      <link>https://forums.autodesk.com/t5/navisworks-api-forum/clip-in-navisworks/m-p/11161284#M1991</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1062540"&gt;@ticodi&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't think Navisworks has anything in the public .NET API to do this I'm afraid.&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2022 09:01:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-api-forum/clip-in-navisworks/m-p/11161284#M1991</guid>
      <dc:creator>naveen.kumar.t</dc:creator>
      <dc:date>2022-05-11T09:01:15Z</dc:date>
    </item>
    <item>
      <title>Re: Clip in navisworks</title>
      <link>https://forums.autodesk.com/t5/navisworks-api-forum/clip-in-navisworks/m-p/11163222#M1992</link>
      <description>&lt;P&gt;If you are referring to section boxes / clipping boxes, it is possible to set a clipping box based on Json values&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;string minCorner = string.Format("{0},{1},{2}", BBoxMinPt.X.ToString(), BBoxMinPt.Y.ToString(), BBoxMinPt.Z.ToString());
string maxCorner = string.Format("{0},{1},{2}", BBoxMaxPt.X.ToString(), BBoxMaxPt.Y.ToString(), BBoxMaxPt.Z.ToString());
 
// apply the section box.
                string ClippingBox =
                    "{\"Type\":\"ClipPlaneSet\",\"Version\":1,\"OrientedBox\":{\"Type\":\"OrientedBox3D\",\"Version\":1,\"Box\":[["
                    + minCorner
                    + "],["
                    + maxCorner
                    + "]],\"Rotation\":[0,0,0]},\"Enabled\":true}";

                // apply clipping to current view.
                ActiveView.TrySetClippingPlanes(ClippingBox);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It can also be achieved through COMApi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kevin&lt;/P&gt;</description>
      <pubDate>Thu, 12 May 2022 00:38:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-api-forum/clip-in-navisworks/m-p/11163222#M1992</guid>
      <dc:creator>kevin_fielding</dc:creator>
      <dc:date>2022-05-12T00:38:36Z</dc:date>
    </item>
    <item>
      <title>Re: Clip in navisworks</title>
      <link>https://forums.autodesk.com/t5/navisworks-api-forum/clip-in-navisworks/m-p/11163616#M1993</link>
      <description>&lt;P&gt;Xiaodong Liang wrote this article about clipping (clipping is called sectioning in Navisworks):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://adndevblog.typepad.com/aec/2012/08/create-sectioning-plane.html" target="_blank" rel="noopener"&gt;https://adndevblog.typepad.com/aec/2012/08/create-sectioning-plane.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;br&lt;/P&gt;&lt;P&gt;Ulrik&lt;/P&gt;</description>
      <pubDate>Thu, 12 May 2022 06:05:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-api-forum/clip-in-navisworks/m-p/11163616#M1993</guid>
      <dc:creator>ulski1</dc:creator>
      <dc:date>2022-05-12T06:05:52Z</dc:date>
    </item>
    <item>
      <title>Re: Clip in navisworks</title>
      <link>https://forums.autodesk.com/t5/navisworks-api-forum/clip-in-navisworks/m-p/11322368#M1994</link>
      <description>&lt;P&gt;kevin&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&lt;SPAN&gt;It can also be achieved through COMApi&lt;BR /&gt;Do you know how to define box by COMApi?&lt;BR /&gt;I succeeded to clip box using .Net API.&lt;BR /&gt;But I'm developing ActiveX apps which Only COMApi is available.&lt;BR /&gt;After setting clipbox by .Net,&amp;nbsp;State.CurrentView.ClippingPlanes return count 1 collection.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jul 2022 02:45:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-api-forum/clip-in-navisworks/m-p/11322368#M1994</guid>
      <dc:creator>tetsuya_miwa</dc:creator>
      <dc:date>2022-07-27T02:45:05Z</dc:date>
    </item>
  </channel>
</rss>

