<?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: Slicing a solid with a planar surface in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/slicing-a-solid-with-a-planar-surface/m-p/9674114#M18805</link>
    <description>&lt;P&gt;Here're two examples of testing commands.&lt;/P&gt;
&lt;P&gt;Both prompt the user to select a solid and a surface.&lt;/P&gt;
&lt;P&gt;TEST1 slices the solid with the selected surface and dispose of the 'negative half' solid.&lt;/P&gt;
&lt;P&gt;TEST2 slices the solid with the selected surface and keep both solids (i.e. add the newly created one instead of disposing it)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE class="lia-code-sample language-csharp"&gt;&lt;CODE&gt;[CommandMethod("TEST1")]
public static void Test1()
{
    var doc = Application.DocumentManager.MdiActiveDocument;
    var db = doc.Database;
    var ed = doc.Editor;

    var options = new PromptEntityOptions("\nSelect solid: ");
    options.SetRejectMessage("\nInvalid selection.");
    options.AddAllowedClass(typeof(Solid3d), true);
    var result = ed.GetEntity(options);
    if (result.Status != PromptStatus.OK) 
        return;
    var solidId = result.ObjectId;

    options.Message = "\nSelect surface: ";
    options.RemoveAllowedClass(typeof(Solid3d));
    options.AddAllowedClass(typeof(AcDb.Surface), false);
    result = ed.GetEntity(options);
    if (result.Status != PromptStatus.OK)
        return;
    var surfaceId = result.ObjectId;

    using (var tr = db.TransactionManager.StartTransaction())
    {
        var solid = (Solid3d)tr.GetObject(solidId, OpenMode.ForWrite);
        var surface = (AcDb.Surface)tr.GetObject(surfaceId, OpenMode.ForRead);
        solid.Slice(surface, true).Dispose();
        tr.Commit();
    }
}

[CommandMethod("TEST2")]
public static void Test2()
{
    var doc = Application.DocumentManager.MdiActiveDocument;
    var db = doc.Database;
    var ed = doc.Editor;

    var options = new PromptEntityOptions("\nSelect solid: ");
    options.SetRejectMessage("\nInvalid selection.");
    options.AddAllowedClass(typeof(Solid3d), true);
    var result = ed.GetEntity(options);
    if (result.Status != PromptStatus.OK)
        return;
    var solidId = result.ObjectId;

    options.Message = "\nSelect surface: ";
    options.RemoveAllowedClass(typeof(Solid3d));
    options.AddAllowedClass(typeof(AcDb.Surface), false);
    result = ed.GetEntity(options);
    if (result.Status != PromptStatus.OK)
        return;
    var surfaceId = result.ObjectId;

    using (var tr = db.TransactionManager.StartTransaction())
    {
        var solid = (Solid3d)tr.GetObject(solidId, OpenMode.ForWrite);
        var surface = (AcDb.Surface)tr.GetObject(surfaceId, OpenMode.ForRead);
        var curSpace = (BlockTableRecord)tr.GetObject(db.CurrentSpaceId, OpenMode.ForWrite);
        var solid2 = solid.Slice(surface, true);
        curSpace.AppendEntity(solid2);
        tr.AddNewlyCreatedDBObject(solid2, true);
        tr.Commit();
    }
}&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV class="iframe-container" style="position: relative; height: 0; margin: 0; padding-bottom: 96.875%;"&gt;&lt;IFRAME width="640" height="620" style="position: absolute; left: 0; top: 0; width: 100%; height: 100%;" src="https://screencast.autodesk.com/Embed/Timeline/54a55e47-f855-4c11-95fb-b9e315bf9b98" frameborder="0" allowfullscreen="true" webkitallowfullscreen="true" scrolling="no"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="a70594b0-9118-4825-9089-8396773b09a5" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/a70594b0-9118-4825-9089-8396773b09a5" width="640" height="650" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="6b27e31d-c46a-4d66-9adb-b70dd9a67b78" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/6b27e31d-c46a-4d66-9adb-b70dd9a67b78" width="640" height="620" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="fa5eafc3-b7c9-48da-9241-edbc06e33f0e" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/fa5eafc3-b7c9-48da-9241-edbc06e33f0e" width="640" height="620" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="2795359b-2a44-4431-ba6e-59f0a704e9a0" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/2795359b-2a44-4431-ba6e-59f0a704e9a0" width="640" height="650" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="660be201-586b-4621-938b-1246eaeafc51" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/660be201-586b-4621-938b-1246eaeafc51" width="640" height="620" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="3ce94081-da32-445e-9e13-0f72d9cc642b" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/3ce94081-da32-445e-9e13-0f72d9cc642b" width="640" height="620" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="ef75c120-d34a-4bf1-8a30-8ec52fb5613e" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/ef75c120-d34a-4bf1-8a30-8ec52fb5613e" width="640" height="650" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="3a914974-e850-445f-9318-6facde5c9ecb" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/3a914974-e850-445f-9318-6facde5c9ecb" width="640" height="620" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="fcb71945-dec5-4eae-b539-36d0b27084ed" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/fcb71945-dec5-4eae-b539-36d0b27084ed" width="640" height="620" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="25017818-ec84-4dbd-b6a8-5711d2f17f85" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/25017818-ec84-4dbd-b6a8-5711d2f17f85" width="640" height="620" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="59c9c150-a36b-468a-8baf-9f11a429ff14" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/59c9c150-a36b-468a-8baf-9f11a429ff14" width="640" height="620" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="cd862c32-76eb-408d-a9f3-2dbbf730893a" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/cd862c32-76eb-408d-a9f3-2dbbf730893a" width="640" height="620" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="80bae978-b261-49af-88ab-cac1b4861d36" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/80bae978-b261-49af-88ab-cac1b4861d36" width="640" height="680" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="bedaccf1-cdef-4b55-9444-d1845fa13e4c" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/bedaccf1-cdef-4b55-9444-d1845fa13e4c" width="640" height="680" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="9235c917-2d05-4d19-bcd0-3b05ac1043ea" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/9235c917-2d05-4d19-bcd0-3b05ac1043ea" width="640" height="620" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="b2660fc5-6afe-44fe-86a9-f5d8322ff718" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/b2660fc5-6afe-44fe-86a9-f5d8322ff718" width="640" height="620" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="1492b164-54f2-4d03-9cc0-24f9b960b80d" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/1492b164-54f2-4d03-9cc0-24f9b960b80d" width="640" height="650" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="7c5d868d-0c45-48a4-98e9-12fe27129a87" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/7c5d868d-0c45-48a4-98e9-12fe27129a87" width="640" height="650" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="a86e6108-ff20-42cc-b6f1-054f6989c0ee" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/a86e6108-ff20-42cc-b6f1-054f6989c0ee" width="640" height="650" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="1d15e9f5-0179-4096-97ce-a26174d12699" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/1d15e9f5-0179-4096-97ce-a26174d12699" width="640" height="650" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="8ef1ddae-d535-45a0-baf4-25d33051cdee" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/8ef1ddae-d535-45a0-baf4-25d33051cdee" width="640" height="650" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="9f91941f-c123-475c-8737-599251845c77" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/9f91941f-c123-475c-8737-599251845c77" width="640" height="680" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="35434793-fc65-4677-8590-6cd5cc89bfaf" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/35434793-fc65-4677-8590-6cd5cc89bfaf" width="640" height="650" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="607fa170-a69d-4929-add9-8d79b8f9a3ff" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/607fa170-a69d-4929-add9-8d79b8f9a3ff" width="640" height="620" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="364e331f-28ef-4161-ada5-9a78e93db200" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/364e331f-28ef-4161-ada5-9a78e93db200" width="640" height="680" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="5e8e9372-f14f-49de-899a-fb97cdfff433" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/5e8e9372-f14f-49de-899a-fb97cdfff433" width="640" height="620" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="f09bce6f-91e2-4fb3-9d2a-f5321136476e" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/f09bce6f-91e2-4fb3-9d2a-f5321136476e" width="640" height="650" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="1282857e-e572-4bac-90bf-c47887753515" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/1282857e-e572-4bac-90bf-c47887753515" width="640" height="650" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="b81661b1-1f09-40bb-8b80-659e90319a06" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/b81661b1-1f09-40bb-8b80-659e90319a06" width="640" height="650" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="5f0ad2e7-3c15-49e5-afea-f50849ec3d7a" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/5f0ad2e7-3c15-49e5-afea-f50849ec3d7a" width="640" height="680" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="2b85b476-d054-4455-b090-3988c6997ecf" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/2b85b476-d054-4455-b090-3988c6997ecf" width="640" height="650" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="83cd684f-4c86-443f-bf3b-fea03616643b" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/83cd684f-4c86-443f-bf3b-fea03616643b" width="640" height="650" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="2608bbb1-1efd-4901-a6f4-a53a0bb8008c" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/2608bbb1-1efd-4901-a6f4-a53a0bb8008c" width="640" height="620" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="bb11696f-f567-46a8-89a0-0c82fe00840d" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/bb11696f-f567-46a8-89a0-0c82fe00840d" width="640" height="650" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="3e985dff-aa76-49b3-b010-497b4c3531a8" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/3e985dff-aa76-49b3-b010-497b4c3531a8" width="640" height="680" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="a8b114c2-de15-45e3-a8e2-1e65205d3941" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/a8b114c2-de15-45e3-a8e2-1e65205d3941" width="640" height="650" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="764e2eda-b29e-4403-b6b6-a7eacc2f0efb" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/764e2eda-b29e-4403-b6b6-a7eacc2f0efb" width="640" height="680" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="f6a86b2f-7014-48c5-a60d-a9bc1fbe317e" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/f6a86b2f-7014-48c5-a60d-a9bc1fbe317e" width="640" height="710" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="5dc7c27c-a718-43c2-a9bf-ca5cdd2fdde5" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/5dc7c27c-a718-43c2-a9bf-ca5cdd2fdde5" width="640" height="710" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="dfa47d1b-3476-41ef-9012-36ab572844fa" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/dfa47d1b-3476-41ef-9012-36ab572844fa" width="640" height="650" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="a8802fdf-f8c6-43ef-ad98-24ee0946f990" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/a8802fdf-f8c6-43ef-ad98-24ee0946f990" width="640" height="620" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="7964c7b2-af23-49bc-941b-b44c72e886e8" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/7964c7b2-af23-49bc-941b-b44c72e886e8" width="640" height="650" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="847c40d0-7d18-4f6b-861e-f4926675f2ac" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/847c40d0-7d18-4f6b-861e-f4926675f2ac" width="640" height="680" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="23c8dadc-de63-44ce-b6be-9407bef60c19" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/23c8dadc-de63-44ce-b6be-9407bef60c19" width="640" height="590" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="4afe8dd2-5f86-4c3b-9382-d340bd513215" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/4afe8dd2-5f86-4c3b-9382-d340bd513215" width="640" height="650" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="eec893e4-9eaa-4ee5-a54f-cb55b3ece94c" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/eec893e4-9eaa-4ee5-a54f-cb55b3ece94c" width="640" height="650" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="23afe57b-bbe0-4353-b98a-f695ebcef8cb" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/23afe57b-bbe0-4353-b98a-f695ebcef8cb" width="640" height="620" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="9bd62f8f-2a83-49f9-a555-e0fa9c61f1dc" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/9bd62f8f-2a83-49f9-a555-e0fa9c61f1dc" width="640" height="620" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="f9020665-de30-4b5d-8791-a735546f4f52" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/f9020665-de30-4b5d-8791-a735546f4f52" width="640" height="680" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="7fc2979c-16ab-438c-aec2-865f379c8439" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/7fc2979c-16ab-438c-aec2-865f379c8439" width="640" height="680" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="585d3c18-9717-47a4-a18e-8194089505c0" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/585d3c18-9717-47a4-a18e-8194089505c0" width="640" height="650" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="6d823911-aa38-4c6e-8999-34cb4ea4a7cc" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/6d823911-aa38-4c6e-8999-34cb4ea4a7cc" width="640" height="680" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="b0035077-c40a-470c-ac36-202120970919" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/b0035077-c40a-470c-ac36-202120970919" width="640" height="650" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="f38f3d35-98ed-4e22-bebc-6a7ee8abc241" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/f38f3d35-98ed-4e22-bebc-6a7ee8abc241" width="640" height="590" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="570036fa-0633-47c9-98a9-c99d9354f925" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/570036fa-0633-47c9-98a9-c99d9354f925" width="640" height="620" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="1e56c93b-351e-44ac-acef-1f6b6c1ee3ef" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/1e56c93b-351e-44ac-acef-1f6b6c1ee3ef" width="640" height="650" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="e7638def-e6fc-4028-9629-2dd43d6b95d7" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/e7638def-e6fc-4028-9629-2dd43d6b95d7" width="640" height="710" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="baa6ca6c-4744-495e-9bc4-84e81f27c3cc" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/baa6ca6c-4744-495e-9bc4-84e81f27c3cc" width="640" height="620" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="efba7a66-667d-45db-8c58-354f76bc44bf" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/efba7a66-667d-45db-8c58-354f76bc44bf" width="640" height="620" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="4bb423c4-81de-4537-beba-f76cdbf6c72b" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/4bb423c4-81de-4537-beba-f76cdbf6c72b" width="640" height="680" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="4a0b8d02-0c41-40d7-ab6b-51f2b36208a2" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/4a0b8d02-0c41-40d7-ab6b-51f2b36208a2" width="640" height="620" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="aca531c9-064a-4557-b1d7-99670d9797fb" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/aca531c9-064a-4557-b1d7-99670d9797fb" width="640" height="620" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="d831056a-548c-4f45-8d90-b9b18d295baa" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/d831056a-548c-4f45-8d90-b9b18d295baa" width="640" height="680" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="4dc3a0f8-453e-4569-af6c-462bf9524d26" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/4dc3a0f8-453e-4569-af6c-462bf9524d26" width="640" height="710" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="6b5e55f5-ca75-46d0-8e53-6d27a986d6db" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/6b5e55f5-ca75-46d0-8e53-6d27a986d6db" width="640" height="620" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="11ad0db3-35bd-4700-8d8d-13c4c03083a2" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/11ad0db3-35bd-4700-8d8d-13c4c03083a2" width="640" height="620" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="06b46d6a-40b0-4916-a656-2825d1b6ddc4" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/06b46d6a-40b0-4916-a656-2825d1b6ddc4" width="640" height="620" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="2c71b800-90c2-497b-8342-220d24fb0c99" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/2c71b800-90c2-497b-8342-220d24fb0c99" width="640" height="620" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="08dc985c-b786-454a-8966-3a43493c012d" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/08dc985c-b786-454a-8966-3a43493c012d" width="640" height="620" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="d10aa2a9-285f-47c4-b7b8-fb4810cc809d" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/d10aa2a9-285f-47c4-b7b8-fb4810cc809d" width="640" height="620" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="d347fed6-1f93-4cf8-958c-5ec9158d196a" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/d347fed6-1f93-4cf8-958c-5ec9158d196a" width="640" height="620" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="1d45c8d5-a4a9-402d-9cae-8aba72de329b" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/1d45c8d5-a4a9-402d-9cae-8aba72de329b" width="640" height="620" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="b6ba8d47-4998-4765-b4ea-8bfa6acfe6cc" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/b6ba8d47-4998-4765-b4ea-8bfa6acfe6cc" width="640" height="620" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="b40500d5-efcf-4617-90b3-9bc878c79639" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/b40500d5-efcf-4617-90b3-9bc878c79639" width="640" height="620" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="bac4e3e6-75a8-4952-b1f2-40ff899982bf" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/bac4e3e6-75a8-4952-b1f2-40ff899982bf" width="640" height="620" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;</description>
    <pubDate>Wed, 05 Aug 2020 11:31:24 GMT</pubDate>
    <dc:creator>_gile</dc:creator>
    <dc:date>2020-08-05T11:31:24Z</dc:date>
    <item>
      <title>Slicing a solid with a planar surface</title>
      <link>https://forums.autodesk.com/t5/net-forum/slicing-a-solid-with-a-planar-surface/m-p/9672360#M18796</link>
      <description>&lt;P&gt;The slice function only works with a plane or a surface.&lt;/P&gt;&lt;P&gt;But now I'm trying to slice a solid with a planar surface, and unfortunately I'm having no succes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;According to the AutoCAD help, the function needs a plane or a surface as input. It's also possible to enter an optional boolean value to keep the negative half of the sliced solid. Although my Visual Studio gives me an error if I omit the boolean value.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I got it working with a plane I defined, but this plane slices the solid in some unwanted places.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;Dim newSolid = sol.Slice(plane, True)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I tried to draw a planar surface which is exactly the crossection of the solid. (a circle for instance).&lt;/P&gt;&lt;P&gt;The slice function does not work with a planar surface, so I used:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;srf.CopyFrom(plnsrf)
srf = TryCast(srf, Autodesk.AutoCAD.DatabaseServices.Surface)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This converts the planar surface to a normal surface. (Added to the database and checked objecttype. This conversion is working)&lt;/P&gt;&lt;P&gt;But now the slice function crashes AutoCAD and I can't figure out why.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using the normal slice command in AutoCAD enables me to choose a planar object (surface or even region) to slice the solid.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone know what I'm doing wrong?&lt;/P&gt;</description>
      <pubDate>Tue, 04 Aug 2020 15:23:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/slicing-a-solid-with-a-planar-surface/m-p/9672360#M18796</guid>
      <dc:creator>R.Gerritsen4967</dc:creator>
      <dc:date>2020-08-04T15:23:06Z</dc:date>
    </item>
    <item>
      <title>Re: Slicing a solid with a planar surface</title>
      <link>https://forums.autodesk.com/t5/net-forum/slicing-a-solid-with-a-planar-surface/m-p/9672515#M18797</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You did not show relevant code to illustrate your issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;here's an example of slicing a solid (cylinder) with a Plane.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="csharp"&gt;        [CommandMethod("TEST")]
        public static void Test()
        {
            var doc = Application.DocumentManager.MdiActiveDocument;
            var db = doc.Database;
            using (var tr = db.TransactionManager.StartTransaction())
            {
                using (var solid = new Solid3d())
                {
                    var model = (BlockTableRecord)tr.GetObject(
                        SymbolUtilityServices.GetBlockModelSpaceId(db), OpenMode.ForWrite);
                    solid.CreateFrustum(10.0, 2.0, 2.0, 2.0);
                    model.AppendEntity(solid);
                    tr.AddNewlyCreatedDBObject(solid, true);
                    var plane = new Plane(Point3d.Origin, new Vector3d(1.0, 0.0, -1.0));
                    solid.Slice(plane);
                }
                tr.Commit();
            }
        }&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Aug 2020 16:33:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/slicing-a-solid-with-a-planar-surface/m-p/9672515#M18797</guid>
      <dc:creator>_gile</dc:creator>
      <dc:date>2020-08-04T16:33:57Z</dc:date>
    </item>
    <item>
      <title>Re: Slicing a solid with a planar surface</title>
      <link>https://forums.autodesk.com/t5/net-forum/slicing-a-solid-with-a-planar-surface/m-p/9673696#M18798</link>
      <description>&lt;P&gt;Hi &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/109424"&gt;@_gile&lt;/a&gt; ,&lt;/P&gt;&lt;P&gt;Thanks for your answer.&lt;/P&gt;&lt;P&gt;I did not post much code because it works OK when I use a plane to slice the solid. So I know that part of the code is good. By the way I'm using an example you posted somewhere on the forum 'SliceaBox'.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My problem is that I want to slice the solid with a (planar) surface.&lt;/P&gt;&lt;P&gt;I can generate the planar surface, convert it to a surface and add them both to the drawing to check if they are the way I want them to be. This all works OK.If I just use the AutoCAD slice command and use the newly generated surface, everything works out fine. Even if I explode the surface and use the region for slicing it is like I want it to be.&lt;/P&gt;&lt;P&gt;But when I want to use the surface instead of the plane to slice the solid with the .net method, AutoCAD crashes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I must be doing something wrong. And unfortunately I can't find examples online of slicing with a surface.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Aug 2020 06:59:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/slicing-a-solid-with-a-planar-surface/m-p/9673696#M18798</guid>
      <dc:creator>R.Gerritsen4967</dc:creator>
      <dc:date>2020-08-05T06:59:14Z</dc:date>
    </item>
    <item>
      <title>Re: Slicing a solid with a planar surface</title>
      <link>https://forums.autodesk.com/t5/net-forum/slicing-a-solid-with-a-planar-surface/m-p/9673786#M18799</link>
      <description>&lt;P&gt;OK, you're right, it seems ther's a bug with the Solid3d.Slice(Autodesk.AutoCAD.DatabaseServices.Surface surface) method.&lt;/P&gt;
&lt;P&gt;So, you can either use the Surface.GetPlane() method.&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;public static void Test()
{
    var doc = Application.DocumentManager.MdiActiveDocument;
    var db = doc.Database;
    using (var tr = db.TransactionManager.StartTransaction())
    using (var solid = new Solid3d())
    {
        var model = (BlockTableRecord)tr.GetObject(
            SymbolUtilityServices.GetBlockModelSpaceId(db), OpenMode.ForWrite);
        solid.CreateFrustum(10.0, 2.0, 2.0, 2.0);
        model.AppendEntity(solid);
        tr.AddNewlyCreatedDBObject(solid, true);

        using (var circle = new Circle(Point3d.Origin, new Vector3d(1.0, 0.0, -1.0), 3.0))
        {
            var curves = new DBObjectCollection();
            curves.Add(circle);
            var regions = Region.CreateFromCurves(curves);
            using (var region = (Region)regions[0])
            {
                var surface = new PlaneSurface();
                surface.CreateFromRegion(region);
                model.AppendEntity(surface);
                tr.AddNewlyCreatedDBObject(surface, true);

                solid.Slice(surface.GetPlane());
            }
        }
        tr.Commit();
    }
}&lt;/LI-CODE&gt;
&lt;P&gt;or the overload with the negativeHalfToo argument&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;public static void Test()
{
    var doc = Application.DocumentManager.MdiActiveDocument;
    var db = doc.Database;
    using (var tr = db.TransactionManager.StartTransaction())
    using (var solid = new Solid3d())
    {
        var model = (BlockTableRecord)tr.GetObject(
            SymbolUtilityServices.GetBlockModelSpaceId(db), OpenMode.ForWrite);
        solid.CreateFrustum(10.0, 2.0, 2.0, 2.0);
        model.AppendEntity(solid);
        tr.AddNewlyCreatedDBObject(solid, true);

        using (var circle = new Circle(Point3d.Origin, new Vector3d(1.0, 0.0, -1.0), 3.0))
        {
            var curves = new DBObjectCollection();
            curves.Add(circle);
            var regions = Region.CreateFromCurves(curves);
            using (var region = (Region)regions[0])
            {
                var surface = new PlaneSurface();
                surface.CreateFromRegion(region);
                model.AppendEntity(surface);
                tr.AddNewlyCreatedDBObject(surface, true);

                var solid2 = solid.Slice(surface, true);
                model.AppendEntity(solid2);
                tr.AddNewlyCreatedDBObject(solid2, true);
            }
        }
        tr.Commit();
    }
}&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 05 Aug 2020 08:07:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/slicing-a-solid-with-a-planar-surface/m-p/9673786#M18799</guid>
      <dc:creator>_gile</dc:creator>
      <dc:date>2020-08-05T08:07:45Z</dc:date>
    </item>
    <item>
      <title>Re: Slicing a solid with a planar surface</title>
      <link>https://forums.autodesk.com/t5/net-forum/slicing-a-solid-with-a-planar-surface/m-p/9673913#M18800</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/109424"&gt;@_gile&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for checking this!&lt;/P&gt;&lt;P&gt;Unfortunately I can't use your solution with the Surface.GetPlane(), because the plane slices the solid in more places.&lt;/P&gt;&lt;P&gt;I need it to slice at jut one place.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For instance a pipe with a more than 90° bend in it. If I want to slice the pipe at the start and end of the bend, I can't use the plane because this will slice the pipe in other places.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Time for another approach. Now I sweep the pipe/other structure along a polyline, so I will try to explode the polyline and do a sweep for every part. So a new challenge arises: fixing the sweep in way of the corners (mitre angles) in the polyline...&lt;/P&gt;</description>
      <pubDate>Wed, 05 Aug 2020 09:11:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/slicing-a-solid-with-a-planar-surface/m-p/9673913#M18800</guid>
      <dc:creator>R.Gerritsen4967</dc:creator>
      <dc:date>2020-08-05T09:11:33Z</dc:date>
    </item>
    <item>
      <title>Re: Slicing a solid with a planar surface</title>
      <link>https://forums.autodesk.com/t5/net-forum/slicing-a-solid-with-a-planar-surface/m-p/9673951#M18801</link>
      <description>&lt;P&gt;So, a workaround should be calling the overloaded with the negativeHalfToo&amp;nbsp; argument and immediately dispose of the newly created solid.&lt;/P&gt;
&lt;LI-CODE lang="csharp"&gt;solid.Slice(surface, true).Dispose();&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 05 Aug 2020 09:32:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/slicing-a-solid-with-a-planar-surface/m-p/9673951#M18801</guid>
      <dc:creator>_gile</dc:creator>
      <dc:date>2020-08-05T09:32:33Z</dc:date>
    </item>
    <item>
      <title>Re: Slicing a solid with a planar surface</title>
      <link>https://forums.autodesk.com/t5/net-forum/slicing-a-solid-with-a-planar-surface/m-p/9674002#M18802</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/109424"&gt;@_gile&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;I'm not sure what you mean. Because when the plane slices the solid at more than one point there are already more than 2 resulting solids from the slice. If I dispose some of them it leaves me with a solid with gaps...&lt;/P&gt;</description>
      <pubDate>Wed, 05 Aug 2020 09:56:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/slicing-a-solid-with-a-planar-surface/m-p/9674002#M18802</guid>
      <dc:creator>R.Gerritsen4967</dc:creator>
      <dc:date>2020-08-05T09:56:32Z</dc:date>
    </item>
    <item>
      <title>Re: Slicing a solid with a planar surface</title>
      <link>https://forums.autodesk.com/t5/net-forum/slicing-a-solid-with-a-planar-surface/m-p/9674026#M18803</link>
      <description>&lt;P&gt;I meant using the plane surface object itself (not its plane) with the Slice(Autodesk.AutoCAD.DatabaseSevices.Surface surface, bool negativeHalfToo) overload which does not crash AutoCAD and dispose of the 'negative half solid'.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Aug 2020 10:16:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/slicing-a-solid-with-a-planar-surface/m-p/9674026#M18803</guid>
      <dc:creator>_gile</dc:creator>
      <dc:date>2020-08-05T10:16:23Z</dc:date>
    </item>
    <item>
      <title>Re: Slicing a solid with a planar surface</title>
      <link>https://forums.autodesk.com/t5/net-forum/slicing-a-solid-with-a-planar-surface/m-p/9674047#M18804</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/109424"&gt;@_gile&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately this also crashes AutoCAD. Just using the surface crashes AutoCAD. Using the plane of the surface works but is not a solution for me.&lt;/P&gt;&lt;P&gt;Omitting the boolean value gives me a visual studio error:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="afbeelding.png" style="width: 910px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/803547i36CB07ECA37BBC20/image-size/large?v=v2&amp;amp;px=999" role="button" title="afbeelding.png" alt="afbeelding.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using AutoCAD 2020 and Visual studio 2017. DLL is compiled for .Net framework 4.7.&lt;/P&gt;&lt;P&gt;Referencefiles are ObjectARX2020 versions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is my vb.net code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;   &amp;lt;CommandMethod("slicetest", CommandFlags.Modal)&amp;gt; Public Shared Sub SliceTest()
        Dim doc As Document = Autodesk.AutoCAD.ApplicationServices.Application.DocumentManager.MdiActiveDocument
        Dim ed As Editor = doc.Editor
        Dim db As Database = doc.Database

        Using trx As Transaction = db.TransactionManager.StartTransaction()
            Dim btr As BlockTableRecord = TryCast(trx.GetObject(db.CurrentSpaceId, OpenMode.ForWrite), BlockTableRecord)
            Dim peo As New PromptEntityOptions(vbLf &amp;amp; "Select polyline: ")
            peo.SetRejectMessage(vbLf &amp;amp; "Select POLYLINE!!!")
            peo.AddAllowedClass(GetType(Autodesk.AutoCAD.DatabaseServices.Polyline), True)
            Dim per As PromptEntityResult = ed.GetEntity(peo)
            If per.Status &amp;lt;&amp;gt; PromptStatus.OK Then Return
            Dim plPath As Autodesk.AutoCAD.DatabaseServices.Polyline = TryCast(per.ObjectId.GetObject(OpenMode.ForWrite), Autodesk.AutoCAD.DatabaseServices.Polyline)

            Dim Dia As Double = 100
            Dim circ As New Circle(plPath.StartPoint, New Vector3d(0, 0, 1), Dia / 2)
            Dim sol As New Solid3d With {
                .RecordHistory = True
            }
            Dim sob As New SweepOptionsBuilder With {
                .Align = SweepOptionsAlignOption.AlignSweepEntityToPath
            }

            sol.CreateSweptSolid(circ, plPath, sob.ToSweepOptions())
            btr.AppendEntity(sol)
            trx.AddNewlyCreatedDBObject(sol, True)

            Dim solids = New List(Of Solid3d) From {
                sol
            }

            For i As Integer = 1 To plPath.NumberOfVertices - 2

                Dim tempList = New List(Of Solid3d)()
                Dim vec As New Vector3d
                Dim plnsrf As New PlaneSurface
                Dim srf As New Autodesk.AutoCAD.DatabaseServices.Surface

                If plPath.GetSegmentType(i) = SegmentType.Arc Then
                    vec = plPath.GetPointAtParameter(i).GetVectorTo(plPath.GetPointAtParameter(i - 1))

                    Dim acDBObjColl As New DBObjectCollection()
                    acDBObjColl.Add(New Circle(plPath.GetPointAtParameter(i), vec, (Dia / 2)))
                    Dim circleregion As New DBObjectCollection()
                    circleregion = Region.CreateFromCurves(acDBObjColl)
                    plnsrf.CreateFromRegion(circleregion(0))
                    srf.CopyFrom(plnsrf)
                    srf = TryCast(srf, Autodesk.AutoCAD.DatabaseServices.Surface)
                    btr.AppendEntity(srf)
                    trx.AddNewlyCreatedDBObject(srf, True)

                End If

                If plPath.GetSegmentType(i - 1) = SegmentType.Arc Then
                    vec = plPath.GetPointAtParameter(i).GetVectorTo(plPath.GetPointAtParameter(i + 1))

                    Dim acDBObjColl As New DBObjectCollection()
                    acDBObjColl.Add(New Circle(plPath.GetPointAtParameter(i), vec, (Dia / 2)))
                    Dim circleregion As New DBObjectCollection()
                    circleregion = Region.CreateFromCurves(acDBObjColl)
                    plnsrf.CreateFromRegion(circleregion(0))
                    srf.CopyFrom(plnsrf)
                    srf = TryCast(srf, Autodesk.AutoCAD.DatabaseServices.Surface)
                    btr.AppendEntity(srf)
                    trx.AddNewlyCreatedDBObject(srf, True)

                End If

                For Each sol In solids
                    Try
                        'Dim newSolid = sol.Slice(srf, True) 'Slicing with surface crashes AutoCAD
                        'sol.Slice(srf, True).Dispose() 'Slicing with surface crashes AutoCAD

                        Dim newSolid = sol.Slice(srf.GetPlane, True) 'Slicing with plane works, but no solution to my problem
                        'sol.Slice(srf.GetPlane, True).Dispose()

                        btr.AppendEntity(newSolid)
                        trx.AddNewlyCreatedDBObject(newSolid, True)
                        tempList.Add(newSolid)
                    Catch
                        ed.WriteMessage(vbLf &amp;amp; "Failed to slice.")
                    End Try
                Next

                solids.AddRange(tempList)
            Next
            trx.Commit()
        End Using
    End Sub&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the last part (The for next loop) I have commented out some of the options to play around.&lt;/P&gt;&lt;P&gt;This code makes a solid pipe with (diameter 100). At this stage I only want to deal with arcsegments in the polyline.&lt;/P&gt;&lt;P&gt;See below for a screenshot of a polyline I'm using.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="afbeelding.png" style="width: 991px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/803544i30296D8BB8AA9A95/image-size/large?v=v2&amp;amp;px=999" role="button" title="afbeelding.png" alt="afbeelding.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Aug 2020 10:38:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/slicing-a-solid-with-a-planar-surface/m-p/9674047#M18804</guid>
      <dc:creator>R.Gerritsen4967</dc:creator>
      <dc:date>2020-08-05T10:38:27Z</dc:date>
    </item>
    <item>
      <title>Re: Slicing a solid with a planar surface</title>
      <link>https://forums.autodesk.com/t5/net-forum/slicing-a-solid-with-a-planar-surface/m-p/9674114#M18805</link>
      <description>&lt;P&gt;Here're two examples of testing commands.&lt;/P&gt;
&lt;P&gt;Both prompt the user to select a solid and a surface.&lt;/P&gt;
&lt;P&gt;TEST1 slices the solid with the selected surface and dispose of the 'negative half' solid.&lt;/P&gt;
&lt;P&gt;TEST2 slices the solid with the selected surface and keep both solids (i.e. add the newly created one instead of disposing it)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE class="lia-code-sample language-csharp"&gt;&lt;CODE&gt;[CommandMethod("TEST1")]
public static void Test1()
{
    var doc = Application.DocumentManager.MdiActiveDocument;
    var db = doc.Database;
    var ed = doc.Editor;

    var options = new PromptEntityOptions("\nSelect solid: ");
    options.SetRejectMessage("\nInvalid selection.");
    options.AddAllowedClass(typeof(Solid3d), true);
    var result = ed.GetEntity(options);
    if (result.Status != PromptStatus.OK) 
        return;
    var solidId = result.ObjectId;

    options.Message = "\nSelect surface: ";
    options.RemoveAllowedClass(typeof(Solid3d));
    options.AddAllowedClass(typeof(AcDb.Surface), false);
    result = ed.GetEntity(options);
    if (result.Status != PromptStatus.OK)
        return;
    var surfaceId = result.ObjectId;

    using (var tr = db.TransactionManager.StartTransaction())
    {
        var solid = (Solid3d)tr.GetObject(solidId, OpenMode.ForWrite);
        var surface = (AcDb.Surface)tr.GetObject(surfaceId, OpenMode.ForRead);
        solid.Slice(surface, true).Dispose();
        tr.Commit();
    }
}

[CommandMethod("TEST2")]
public static void Test2()
{
    var doc = Application.DocumentManager.MdiActiveDocument;
    var db = doc.Database;
    var ed = doc.Editor;

    var options = new PromptEntityOptions("\nSelect solid: ");
    options.SetRejectMessage("\nInvalid selection.");
    options.AddAllowedClass(typeof(Solid3d), true);
    var result = ed.GetEntity(options);
    if (result.Status != PromptStatus.OK)
        return;
    var solidId = result.ObjectId;

    options.Message = "\nSelect surface: ";
    options.RemoveAllowedClass(typeof(Solid3d));
    options.AddAllowedClass(typeof(AcDb.Surface), false);
    result = ed.GetEntity(options);
    if (result.Status != PromptStatus.OK)
        return;
    var surfaceId = result.ObjectId;

    using (var tr = db.TransactionManager.StartTransaction())
    {
        var solid = (Solid3d)tr.GetObject(solidId, OpenMode.ForWrite);
        var surface = (AcDb.Surface)tr.GetObject(surfaceId, OpenMode.ForRead);
        var curSpace = (BlockTableRecord)tr.GetObject(db.CurrentSpaceId, OpenMode.ForWrite);
        var solid2 = solid.Slice(surface, true);
        curSpace.AppendEntity(solid2);
        tr.AddNewlyCreatedDBObject(solid2, true);
        tr.Commit();
    }
}&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV class="iframe-container" style="position: relative; height: 0; margin: 0; padding-bottom: 96.875%;"&gt;&lt;IFRAME width="640" height="620" style="position: absolute; left: 0; top: 0; width: 100%; height: 100%;" src="https://screencast.autodesk.com/Embed/Timeline/54a55e47-f855-4c11-95fb-b9e315bf9b98" frameborder="0" allowfullscreen="true" webkitallowfullscreen="true" scrolling="no"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="a70594b0-9118-4825-9089-8396773b09a5" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/a70594b0-9118-4825-9089-8396773b09a5" width="640" height="650" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="6b27e31d-c46a-4d66-9adb-b70dd9a67b78" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/6b27e31d-c46a-4d66-9adb-b70dd9a67b78" width="640" height="620" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="fa5eafc3-b7c9-48da-9241-edbc06e33f0e" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/fa5eafc3-b7c9-48da-9241-edbc06e33f0e" width="640" height="620" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="2795359b-2a44-4431-ba6e-59f0a704e9a0" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/2795359b-2a44-4431-ba6e-59f0a704e9a0" width="640" height="650" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="660be201-586b-4621-938b-1246eaeafc51" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/660be201-586b-4621-938b-1246eaeafc51" width="640" height="620" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="3ce94081-da32-445e-9e13-0f72d9cc642b" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/3ce94081-da32-445e-9e13-0f72d9cc642b" width="640" height="620" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="ef75c120-d34a-4bf1-8a30-8ec52fb5613e" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/ef75c120-d34a-4bf1-8a30-8ec52fb5613e" width="640" height="650" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="3a914974-e850-445f-9318-6facde5c9ecb" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/3a914974-e850-445f-9318-6facde5c9ecb" width="640" height="620" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="fcb71945-dec5-4eae-b539-36d0b27084ed" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/fcb71945-dec5-4eae-b539-36d0b27084ed" width="640" height="620" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="25017818-ec84-4dbd-b6a8-5711d2f17f85" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/25017818-ec84-4dbd-b6a8-5711d2f17f85" width="640" height="620" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="59c9c150-a36b-468a-8baf-9f11a429ff14" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/59c9c150-a36b-468a-8baf-9f11a429ff14" width="640" height="620" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="cd862c32-76eb-408d-a9f3-2dbbf730893a" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/cd862c32-76eb-408d-a9f3-2dbbf730893a" width="640" height="620" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="80bae978-b261-49af-88ab-cac1b4861d36" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/80bae978-b261-49af-88ab-cac1b4861d36" width="640" height="680" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="bedaccf1-cdef-4b55-9444-d1845fa13e4c" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/bedaccf1-cdef-4b55-9444-d1845fa13e4c" width="640" height="680" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="9235c917-2d05-4d19-bcd0-3b05ac1043ea" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/9235c917-2d05-4d19-bcd0-3b05ac1043ea" width="640" height="620" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="b2660fc5-6afe-44fe-86a9-f5d8322ff718" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/b2660fc5-6afe-44fe-86a9-f5d8322ff718" width="640" height="620" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="1492b164-54f2-4d03-9cc0-24f9b960b80d" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/1492b164-54f2-4d03-9cc0-24f9b960b80d" width="640" height="650" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="7c5d868d-0c45-48a4-98e9-12fe27129a87" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/7c5d868d-0c45-48a4-98e9-12fe27129a87" width="640" height="650" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="a86e6108-ff20-42cc-b6f1-054f6989c0ee" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/a86e6108-ff20-42cc-b6f1-054f6989c0ee" width="640" height="650" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="1d15e9f5-0179-4096-97ce-a26174d12699" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/1d15e9f5-0179-4096-97ce-a26174d12699" width="640" height="650" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="8ef1ddae-d535-45a0-baf4-25d33051cdee" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/8ef1ddae-d535-45a0-baf4-25d33051cdee" width="640" height="650" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="9f91941f-c123-475c-8737-599251845c77" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/9f91941f-c123-475c-8737-599251845c77" width="640" height="680" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="35434793-fc65-4677-8590-6cd5cc89bfaf" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/35434793-fc65-4677-8590-6cd5cc89bfaf" width="640" height="650" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="607fa170-a69d-4929-add9-8d79b8f9a3ff" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/607fa170-a69d-4929-add9-8d79b8f9a3ff" width="640" height="620" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="364e331f-28ef-4161-ada5-9a78e93db200" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/364e331f-28ef-4161-ada5-9a78e93db200" width="640" height="680" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="5e8e9372-f14f-49de-899a-fb97cdfff433" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/5e8e9372-f14f-49de-899a-fb97cdfff433" width="640" height="620" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="f09bce6f-91e2-4fb3-9d2a-f5321136476e" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/f09bce6f-91e2-4fb3-9d2a-f5321136476e" width="640" height="650" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="1282857e-e572-4bac-90bf-c47887753515" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/1282857e-e572-4bac-90bf-c47887753515" width="640" height="650" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="b81661b1-1f09-40bb-8b80-659e90319a06" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/b81661b1-1f09-40bb-8b80-659e90319a06" width="640" height="650" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="5f0ad2e7-3c15-49e5-afea-f50849ec3d7a" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/5f0ad2e7-3c15-49e5-afea-f50849ec3d7a" width="640" height="680" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="2b85b476-d054-4455-b090-3988c6997ecf" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/2b85b476-d054-4455-b090-3988c6997ecf" width="640" height="650" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="83cd684f-4c86-443f-bf3b-fea03616643b" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/83cd684f-4c86-443f-bf3b-fea03616643b" width="640" height="650" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="2608bbb1-1efd-4901-a6f4-a53a0bb8008c" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/2608bbb1-1efd-4901-a6f4-a53a0bb8008c" width="640" height="620" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="bb11696f-f567-46a8-89a0-0c82fe00840d" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/bb11696f-f567-46a8-89a0-0c82fe00840d" width="640" height="650" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="3e985dff-aa76-49b3-b010-497b4c3531a8" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/3e985dff-aa76-49b3-b010-497b4c3531a8" width="640" height="680" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="a8b114c2-de15-45e3-a8e2-1e65205d3941" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/a8b114c2-de15-45e3-a8e2-1e65205d3941" width="640" height="650" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="764e2eda-b29e-4403-b6b6-a7eacc2f0efb" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/764e2eda-b29e-4403-b6b6-a7eacc2f0efb" width="640" height="680" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="f6a86b2f-7014-48c5-a60d-a9bc1fbe317e" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/f6a86b2f-7014-48c5-a60d-a9bc1fbe317e" width="640" height="710" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="5dc7c27c-a718-43c2-a9bf-ca5cdd2fdde5" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/5dc7c27c-a718-43c2-a9bf-ca5cdd2fdde5" width="640" height="710" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="dfa47d1b-3476-41ef-9012-36ab572844fa" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/dfa47d1b-3476-41ef-9012-36ab572844fa" width="640" height="650" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="a8802fdf-f8c6-43ef-ad98-24ee0946f990" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/a8802fdf-f8c6-43ef-ad98-24ee0946f990" width="640" height="620" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="7964c7b2-af23-49bc-941b-b44c72e886e8" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/7964c7b2-af23-49bc-941b-b44c72e886e8" width="640" height="650" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="847c40d0-7d18-4f6b-861e-f4926675f2ac" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/847c40d0-7d18-4f6b-861e-f4926675f2ac" width="640" height="680" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="23c8dadc-de63-44ce-b6be-9407bef60c19" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/23c8dadc-de63-44ce-b6be-9407bef60c19" width="640" height="590" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="4afe8dd2-5f86-4c3b-9382-d340bd513215" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/4afe8dd2-5f86-4c3b-9382-d340bd513215" width="640" height="650" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="eec893e4-9eaa-4ee5-a54f-cb55b3ece94c" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/eec893e4-9eaa-4ee5-a54f-cb55b3ece94c" width="640" height="650" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="23afe57b-bbe0-4353-b98a-f695ebcef8cb" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/23afe57b-bbe0-4353-b98a-f695ebcef8cb" width="640" height="620" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="9bd62f8f-2a83-49f9-a555-e0fa9c61f1dc" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/9bd62f8f-2a83-49f9-a555-e0fa9c61f1dc" width="640" height="620" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="f9020665-de30-4b5d-8791-a735546f4f52" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/f9020665-de30-4b5d-8791-a735546f4f52" width="640" height="680" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="7fc2979c-16ab-438c-aec2-865f379c8439" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/7fc2979c-16ab-438c-aec2-865f379c8439" width="640" height="680" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="585d3c18-9717-47a4-a18e-8194089505c0" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/585d3c18-9717-47a4-a18e-8194089505c0" width="640" height="650" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="6d823911-aa38-4c6e-8999-34cb4ea4a7cc" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/6d823911-aa38-4c6e-8999-34cb4ea4a7cc" width="640" height="680" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="b0035077-c40a-470c-ac36-202120970919" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/b0035077-c40a-470c-ac36-202120970919" width="640" height="650" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="f38f3d35-98ed-4e22-bebc-6a7ee8abc241" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/f38f3d35-98ed-4e22-bebc-6a7ee8abc241" width="640" height="590" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="570036fa-0633-47c9-98a9-c99d9354f925" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/570036fa-0633-47c9-98a9-c99d9354f925" width="640" height="620" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="1e56c93b-351e-44ac-acef-1f6b6c1ee3ef" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/1e56c93b-351e-44ac-acef-1f6b6c1ee3ef" width="640" height="650" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="e7638def-e6fc-4028-9629-2dd43d6b95d7" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/e7638def-e6fc-4028-9629-2dd43d6b95d7" width="640" height="710" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="baa6ca6c-4744-495e-9bc4-84e81f27c3cc" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/baa6ca6c-4744-495e-9bc4-84e81f27c3cc" width="640" height="620" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="efba7a66-667d-45db-8c58-354f76bc44bf" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/efba7a66-667d-45db-8c58-354f76bc44bf" width="640" height="620" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="4bb423c4-81de-4537-beba-f76cdbf6c72b" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/4bb423c4-81de-4537-beba-f76cdbf6c72b" width="640" height="680" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="4a0b8d02-0c41-40d7-ab6b-51f2b36208a2" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/4a0b8d02-0c41-40d7-ab6b-51f2b36208a2" width="640" height="620" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="aca531c9-064a-4557-b1d7-99670d9797fb" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/aca531c9-064a-4557-b1d7-99670d9797fb" width="640" height="620" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="d831056a-548c-4f45-8d90-b9b18d295baa" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/d831056a-548c-4f45-8d90-b9b18d295baa" width="640" height="680" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="4dc3a0f8-453e-4569-af6c-462bf9524d26" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/4dc3a0f8-453e-4569-af6c-462bf9524d26" width="640" height="710" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="6b5e55f5-ca75-46d0-8e53-6d27a986d6db" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/6b5e55f5-ca75-46d0-8e53-6d27a986d6db" width="640" height="620" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="11ad0db3-35bd-4700-8d8d-13c4c03083a2" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/11ad0db3-35bd-4700-8d8d-13c4c03083a2" width="640" height="620" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="06b46d6a-40b0-4916-a656-2825d1b6ddc4" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/06b46d6a-40b0-4916-a656-2825d1b6ddc4" width="640" height="620" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="2c71b800-90c2-497b-8342-220d24fb0c99" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/2c71b800-90c2-497b-8342-220d24fb0c99" width="640" height="620" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="08dc985c-b786-454a-8966-3a43493c012d" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/08dc985c-b786-454a-8966-3a43493c012d" width="640" height="620" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="d10aa2a9-285f-47c4-b7b8-fb4810cc809d" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/d10aa2a9-285f-47c4-b7b8-fb4810cc809d" width="640" height="620" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="d347fed6-1f93-4cf8-958c-5ec9158d196a" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/d347fed6-1f93-4cf8-958c-5ec9158d196a" width="640" height="620" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="1d45c8d5-a4a9-402d-9cae-8aba72de329b" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/1d45c8d5-a4a9-402d-9cae-8aba72de329b" width="640" height="620" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="b6ba8d47-4998-4765-b4ea-8bfa6acfe6cc" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/b6ba8d47-4998-4765-b4ea-8bfa6acfe6cc" width="640" height="620" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="b40500d5-efcf-4617-90b3-9bc878c79639" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/b40500d5-efcf-4617-90b3-9bc878c79639" width="640" height="620" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="bac4e3e6-75a8-4952-b1f2-40ff899982bf" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/bac4e3e6-75a8-4952-b1f2-40ff899982bf" width="640" height="620" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 05 Aug 2020 11:31:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/slicing-a-solid-with-a-planar-surface/m-p/9674114#M18805</guid>
      <dc:creator>_gile</dc:creator>
      <dc:date>2020-08-05T11:31:24Z</dc:date>
    </item>
    <item>
      <title>Re: Slicing a solid with a planar surface</title>
      <link>https://forums.autodesk.com/t5/net-forum/slicing-a-solid-with-a-planar-surface/m-p/9674224#M18806</link>
      <description>&lt;P&gt;Thanks&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/109424"&gt;@_gile&lt;/a&gt; for taking the time to make an example!&lt;/P&gt;&lt;P&gt;The test2 command does what I want. Even with the surfaces I created with my own routine.&lt;/P&gt;&lt;P&gt;So I will try to find out if I can incorporate your solution into mine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Aug 2020 12:20:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/slicing-a-solid-with-a-planar-surface/m-p/9674224#M18806</guid>
      <dc:creator>R.Gerritsen4967</dc:creator>
      <dc:date>2020-08-05T12:20:01Z</dc:date>
    </item>
    <item>
      <title>Re: Slicing a solid with a planar surface</title>
      <link>https://forums.autodesk.com/t5/net-forum/slicing-a-solid-with-a-planar-surface/m-p/10923726#M18807</link>
      <description>&lt;LI-CODE lang="csharp"&gt;		/// &amp;lt;summary&amp;gt;
		/// Slice solid with planer polygon (XY plane)
		/// (without the call to Sleep(), autocad crash)
		/// &amp;lt;/summary&amp;gt;
		[_AcTrx.CommandMethod( "TEST3" )]
		public static void Test3() {
			var doc = _AcApCore.Application.DocumentManager.MdiActiveDocument;
			var db = doc.Database;
			var ed = doc.Editor;
#if TEST_WITH_SLEEP
			var sleep = Math.Abs( db.Useri4 );
#endif

			var options = new _AcEd.PromptEntityOptions( "\nSelect solid: " );
			options.SetRejectMessage( "\nInvalid selection." );
			options.AddAllowedClass( typeof( _AcDb.Solid3d ), true );
			var result = ed.GetEntity( options );
			if( result.Status != _AcEd.PromptStatus.OK )
				return;
			var solidId = result.ObjectId;

			options.RemoveAllowedClass( typeof( _AcDb.Solid3d ) );

			options.Message = "\nSelect Polyline: ";
			options.AddAllowedClass( typeof( _AcDb.Polyline ), false );
			result = ed.GetEntity( options );
			if( result.Status != _AcEd.PromptStatus.OK )
				return;

			var polylineId = result.ObjectId;
			var textLayerId = GetLayer( "MyVertexLayer", db );

			using( var tr = db.TransactionManager.StartTransaction() ) {
				if( tr.GetObject( _AcDb.SymbolUtilityServices.GetBlockModelSpaceId( db ), _AcDb.OpenMode.ForWrite ) is _AcDb.BlockTableRecord ms ) {
					if( tr.GetObject( polylineId, _AcDb.OpenMode.ForRead ) is _AcDb.Polyline polyline ) {
						if( tr.GetObject( solidId, _AcDb.OpenMode.ForRead ) is _AcDb.Solid3d solid ) {
							try {
								var zMin = solid.MassProperties.Extents.MinPoint.Z - 10.0;
								var zMax = solid.MassProperties.Extents.MaxPoint.Z;
								var sweepSize = zMax - zMin + 10.0;
								var pointNumber = 0;

								//	create temporary polyline for creating the temporary vertical cutting surface
								var polylineTemp = polyline.Clone() as _AcDb.Polyline;
								if( polylineTemp != null ) {
									try {
										polylineTemp.Elevation = zMin;
										var vec = new _AcGe.Vector3d( 0.0, 0.0, sweepSize );
										var surface = new _AcDb.ExtrudedSurface();
										var swo = new _AcDb.SweepOptions();
										surface.CreateExtrudedSurface( polylineTemp, vec, swo );
										//var surfaceId = ms.AppendEntity( surface );
										//tr.AddNewlyCreatedDBObject( surface, true );
#if TEST_WITH_SLEEP
										Thread.Sleep( sleep );
#endif
										try {
											var solidDup = solid.Clone() as _AcDb.Solid3d;
											if( solidDup != null ) {
												ms.AppendEntity( solidDup );
												tr.AddNewlyCreatedDBObject( solidDup, true );
#if TEST_WITH_SLEEP
												Thread.Sleep( sleep );
#endif
												try {
													solidDup.Slice( surface );
#if TEST_WITH_SLEEP
													Thread.Sleep( sleep );
#endif
													if( !solidDup.IsNull &amp;amp;&amp;amp; solidDup.Area &amp;gt; 0.001 ) {
														solidDup.ColorIndex = 5;
														using( var brep = new Brep( solidDup ) ) {
															foreach( var vertex in brep.Vertices ) {
																var p = vertex.Point;
																pointNumber++;
																var txt = new _AcDb.DBText();
																txt.Position = p;
																txt.TextString = pointNumber.ToString();
																txt.LayerId = textLayerId;
																ms.AppendEntity( txt );
																tr.AddNewlyCreatedDBObject( txt, true );
															}
														}
													}
												} catch {
													solidDup.Erase();
												}
											}
										} catch( System.Exception ex2 ) {
											ed.WriteMessage( "\nex2: " + ex2.Message );
										}
									} catch( System.Exception ex3 ) {
										ed.WriteMessage( "\nex3: " + ex3.Message );
									}
								}
							} catch( System.Exception ex4 ) {
								ed.WriteMessage( "\nex4: " + ex4.Message );
							}
						}
					}
				}
				tr.Commit();
			}
		}


		public static _AcDb.ObjectId GetLayer( string layerName, _AcDb.Database db ) {
			_AcDb.ObjectId ltId;
			using( var tr = db.TransactionManager.StartTransaction() ) {
				var lt = (_AcDb.LayerTable)tr.GetObject( db.LayerTableId, _AcDb.OpenMode.ForRead );
				if( lt.Has( layerName ) ) {
					ltId = lt[layerName];
					if( tr.GetObject( ltId, _AcDb.OpenMode.ForRead ) is _AcDb.LayerTableRecord lyr &amp;amp;&amp;amp; (lyr.IsLocked || lyr.IsFrozen || lyr.IsOff) ) {
						lyr.UpgradeOpen();
						lyr.IsLocked = false;
						lyr.IsFrozen = false;
						lyr.IsOff = false;
						lyr.DowngradeOpen();
					}
				} else {
					var ltr = new _AcDb.LayerTableRecord { Name = layerName };
					lt.UpgradeOpen();
					ltId = lt.Add( ltr );
					tr.AddNewlyCreatedDBObject( ltr, true );
					lt.DowngradeOpen();
				}
				tr.Commit();
			}
			return ltId;
		}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2022-02-02 174853.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1019832i2FC1BC2D6E746BFD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2022-02-02 174853.png" alt="Screenshot 2022-02-02 174853.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Feb 2022 16:03:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/slicing-a-solid-with-a-planar-surface/m-p/10923726#M18807</guid>
      <dc:creator>Izhar_Azati</dc:creator>
      <dc:date>2022-02-02T16:03:22Z</dc:date>
    </item>
    <item>
      <title>Re: Slicing a solid with a planar surface</title>
      <link>https://forums.autodesk.com/t5/net-forum/slicing-a-solid-with-a-planar-surface/m-p/11912300#M18808</link>
      <description>&lt;P&gt;Hi, I had the same problem and this seems to fix it. I don't have any understanding of coding though, could you tell me how I can create this command in autocad, or what I have to google? I found something about lisp files and adding them via loading application under the Manage tab, but this seems to be a different language, and needs to be a different file? Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 21 Apr 2023 10:39:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/slicing-a-solid-with-a-planar-surface/m-p/11912300#M18808</guid>
      <dc:creator>izzycamerlinckx</dc:creator>
      <dc:date>2023-04-21T10:39:07Z</dc:date>
    </item>
    <item>
      <title>Re: Slicing a solid with a planar surface</title>
      <link>https://forums.autodesk.com/t5/net-forum/slicing-a-solid-with-a-planar-surface/m-p/11914895#M18809</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/13811420"&gt;@izzycamerlinckx&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the attached files you can find:&lt;BR /&gt;DWG file for test.&lt;BR /&gt;ZIP file of the code (C#).&lt;BR /&gt;ZIP file of DLL with function to cut SOLID by POLYLINE.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The DLL file must be copied to a directory that ACAD trusts, and from ACAD load it with the command: NETLOAD&lt;BR /&gt;To run the command, write &lt;STRONG&gt;CutByPolyline&lt;/STRONG&gt; or &lt;STRONG&gt;CBP&lt;/STRONG&gt; for short.&lt;/P&gt;&lt;P&gt;The cut is made perpendicular to the XY plane.&lt;BR /&gt;The original body does not change, a copy is created and it is cut, leaving only one side.&lt;BR /&gt;&lt;STRONG&gt;DLL files can be dangerous, always check with antivirus software!&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Test on AutoCAD &lt;STRONG&gt;2021&lt;/STRONG&gt;, &lt;STRONG&gt;2024&lt;/STRONG&gt;.&lt;/P&gt;</description>
      <pubDate>Sat, 22 Apr 2023 15:41:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/slicing-a-solid-with-a-planar-surface/m-p/11914895#M18809</guid>
      <dc:creator>Izhar_Azati</dc:creator>
      <dc:date>2023-04-22T15:41:43Z</dc:date>
    </item>
    <item>
      <title>Re: Slicing a solid with a planar surface</title>
      <link>https://forums.autodesk.com/t5/net-forum/slicing-a-solid-with-a-planar-surface/m-p/11915995#M18810</link>
      <description>&lt;P&gt;Second attempt for the files I wanted to attach&lt;/P&gt;</description>
      <pubDate>Sun, 23 Apr 2023 14:53:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/slicing-a-solid-with-a-planar-surface/m-p/11915995#M18810</guid>
      <dc:creator>Izhar_Azati</dc:creator>
      <dc:date>2023-04-23T14:53:29Z</dc:date>
    </item>
    <item>
      <title>Re: Slicing a solid with a planar surface</title>
      <link>https://forums.autodesk.com/t5/net-forum/slicing-a-solid-with-a-planar-surface/m-p/11927744#M18811</link>
      <description>&lt;P&gt;Thank you very much for the command and explaining how to load it!&lt;/P&gt;</description>
      <pubDate>Fri, 28 Apr 2023 07:51:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/slicing-a-solid-with-a-planar-surface/m-p/11927744#M18811</guid>
      <dc:creator>izzycamerlinckx</dc:creator>
      <dc:date>2023-04-28T07:51:38Z</dc:date>
    </item>
    <item>
      <title>Re: Slicing a solid with a planar surface</title>
      <link>https://forums.autodesk.com/t5/net-forum/slicing-a-solid-with-a-planar-surface/m-p/13053938#M18812</link>
      <description>&lt;P&gt;I had faced the above problem. If boolen == True, return a solid3D and vice as.&lt;BR /&gt;&lt;BR /&gt;Solid3d OutputSolid1 = null;&lt;BR /&gt;// Determine the side based on the dot product&lt;BR /&gt;if (dotProduct &amp;gt; 0)&lt;BR /&gt;{&lt;BR /&gt;solid.Slice(slicingPlane, false);&lt;BR /&gt;OutputSolid1 = solid;&lt;BR /&gt;}&lt;BR /&gt;else if (dotProduct &amp;lt; 0)&lt;BR /&gt;{&lt;BR /&gt;OutputSolid1 = solid.Slice(slicingPlane, true);&lt;BR /&gt;}&lt;BR /&gt;slicingPlane.Dispose();&lt;BR /&gt;return OutputSolid1;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Sep 2024 06:38:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/slicing-a-solid-with-a-planar-surface/m-p/13053938#M18812</guid>
      <dc:creator>doanphung</dc:creator>
      <dc:date>2024-09-30T06:38:25Z</dc:date>
    </item>
  </channel>
</rss>

