<?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: Insert dynamic block with hatch in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/insert-dynamic-block-with-hatch/m-p/9924634#M17783</link>
    <description>&lt;P&gt;Well, when manually dragging the grip, the hatch changes correctly, but if you change the dynamic property in Properties window, the hatch would behave as you described. However, when setting the property with code, I could not reproduce the behavior. I tried with your block and a block I created that is similar to yours. Here is the code I used for test:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE class="lia-code-sample language-general"&gt;&lt;CODE&gt;        [CommandMethod("SetBlkHatch")]
        public static void SetDynHatchInBlock()
        {
            var dwg = CadApp.DocumentManager.MdiActiveDocument;
            var ed = dwg.Editor;
            var res = ed.GetEntity("\nSelect hatched block:");
            if (res.Status== PromptStatus.OK)
            {
                while(true)
                {
                    if (!SetDynProp(ed, res.ObjectId))
                    {
                        break;
                    }
                    var opt = new PromptKeywordOptions("\nDo it again?");
                    opt.Keywords.Add("Yes");
                    opt.Keywords.Add("No");
                    opt.Keywords.Default = "Yes";
                    var kres = ed.GetKeywords(opt);
                    if (kres.Status== PromptStatus.OK)
                    {

                    }
                    else
                    {
                        break;
                    }
                }
            }
        }

        private static bool SetDynProp(Editor ed, ObjectId blkId)
        {
            var opt = new PromptDoubleOptions("\nEnter value (1.0 to 10.0):");
            opt.AllowZero = false;
            opt.AllowNegative = false;
            opt.AllowArbitraryInput = false;

            var res = ed.GetDouble(opt);
            if (res.Status== PromptStatus.OK)
            {
                using (var tran = blkId.Database.TransactionManager.StartTransaction())
                {
                    var blk = (BlockReference)tran.GetObject(blkId, OpenMode.ForWrite);

                    foreach (DynamicBlockReferenceProperty prop in
                            blk.DynamicBlockReferencePropertyCollection)
                    {
                        if (prop.PropertyName.ToUpper() == "DISTANCE1")
                        {
                            prop.Value = res.Value;
                            break;
                        }
                    }

                    tran.Commit();
                }

                return true;
            }
            else
            {
                return false;
            }
        }&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is the video clip showing the test runs:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV class="iframe-container" style="position: relative; height: 0; margin: 0; padding-bottom: 106.25%;"&gt;&lt;IFRAME width="640" height="680" style="position: absolute; left: 0; top: 0; width: 100%; height: 100%;" src="https://screencast.autodesk.com/Embed/Timeline/304a6fcb-420d-40e4-bdc9-9e95475b5a98" frameborder="0" allowfullscreen="true" webkitallowfullscreen="true" scrolling="no"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV class="myscreencast-iframe iframe-container active-myscreencast"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV id="c21a4cae-514d-4aa0-a84b-d4ee21414359" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME width="640" height="650" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" data-src="https://screencast.autodesk.com/Embed/Timeline/c21a4cae-514d-4aa0-a84b-d4ee21414359"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="c82f9b20-ebb5-4cc8-a231-c7cc630573f5" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME width="640" height="680" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" data-src="https://screencast.autodesk.com/Embed/Timeline/c82f9b20-ebb5-4cc8-a231-c7cc630573f5"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="56b3d1f5-4352-45ce-bcad-633aaafe5700" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME width="640" height="650" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" data-src="https://screencast.autodesk.com/Embed/Timeline/56b3d1f5-4352-45ce-bcad-633aaafe5700"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="27542ff4-d357-4d75-9275-a9ce77af9ec7" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME width="640" height="650" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" data-src="https://screencast.autodesk.com/Embed/Timeline/27542ff4-d357-4d75-9275-a9ce77af9ec7"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="53476c94-2cb6-4e15-88a8-bc402033c2a2" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME width="640" height="620" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" data-src="https://screencast.autodesk.com/Embed/Timeline/53476c94-2cb6-4e15-88a8-bc402033c2a2"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="32b28b51-944b-4a67-8d23-aa402aabf154" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME width="640" height="620" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" data-src="https://screencast.autodesk.com/Embed/Timeline/32b28b51-944b-4a67-8d23-aa402aabf154"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="31a3b77b-2605-4964-a93e-550fdaebc3ee" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME width="640" height="620" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" data-src="https://screencast.autodesk.com/Embed/Timeline/31a3b77b-2605-4964-a93e-550fdaebc3ee"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="31769b36-4d11-41ab-b2e8-3cc2d055e7ec" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME width="640" height="710" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" data-src="https://screencast.autodesk.com/Embed/Timeline/31769b36-4d11-41ab-b2e8-3cc2d055e7ec"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="551f7cd3-3b19-43e9-9ecc-1919eec085ca" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME width="640" height="680" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" data-src="https://screencast.autodesk.com/Embed/Timeline/551f7cd3-3b19-43e9-9ecc-1919eec085ca"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="593b985f-3b05-4f75-bca7-e989f95b0513" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME width="640" height="620" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" data-src="https://screencast.autodesk.com/Embed/Timeline/593b985f-3b05-4f75-bca7-e989f95b0513"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="058a151f-12fd-4374-b8ef-c22cda6d0ba5" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME width="640" height="650" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" data-src="https://screencast.autodesk.com/Embed/Timeline/058a151f-12fd-4374-b8ef-c22cda6d0ba5"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="dc56311b-e6b0-415e-9e09-907434f5c813" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME width="640" height="620" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" data-src="https://screencast.autodesk.com/Embed/Timeline/dc56311b-e6b0-415e-9e09-907434f5c813"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="0f53a9ae-05f8-4a30-a518-60ca2f2a2bb4" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME width="640" height="650" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" data-src="https://screencast.autodesk.com/Embed/Timeline/0f53a9ae-05f8-4a30-a518-60ca2f2a2bb4"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="12de9a5f-bee4-4913-9e4a-cb26526cbc06" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME width="640" height="680" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" data-src="https://screencast.autodesk.com/Embed/Timeline/12de9a5f-bee4-4913-9e4a-cb26526cbc06"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="25f90c13-dead-41a9-bdd0-5c9aa241d4ea" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME width="640" height="620" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" data-src="https://screencast.autodesk.com/Embed/Timeline/25f90c13-dead-41a9-bdd0-5c9aa241d4ea"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="8139cb90-adc5-4813-9154-dfb1a668c76e" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME width="640" height="650" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" data-src="https://screencast.autodesk.com/Embed/Timeline/8139cb90-adc5-4813-9154-dfb1a668c76e"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="138aa0e0-b1f2-4e91-8392-2a7ee44ff769" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME width="640" height="650" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" data-src="https://screencast.autodesk.com/Embed/Timeline/138aa0e0-b1f2-4e91-8392-2a7ee44ff769"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="aa3027c7-0fa2-48f6-8f07-4eab76f36d24" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME width="640" height="680" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" data-src="https://screencast.autodesk.com/Embed/Timeline/aa3027c7-0fa2-48f6-8f07-4eab76f36d24"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="6fb7ce24-fa07-4567-a13a-013ff6a07844" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME width="640" height="710" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" data-src="https://screencast.autodesk.com/Embed/Timeline/6fb7ce24-fa07-4567-a13a-013ff6a07844"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="b1c2b204-d4c3-4a45-a3d3-35bdfbb8d905" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME width="640" height="620" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" data-src="https://screencast.autodesk.com/Embed/Timeline/b1c2b204-d4c3-4a45-a3d3-35bdfbb8d905"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="95274e66-6ff1-4310-aa0e-3064d6ae8dfe" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME width="640" height="650" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" data-src="https://screencast.autodesk.com/Embed/Timeline/95274e66-6ff1-4310-aa0e-3064d6ae8dfe"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="7bcefadd-6bd1-4c07-94a2-71c03e71d8db" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME width="640" height="680" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" data-src="https://screencast.autodesk.com/Embed/Timeline/7bcefadd-6bd1-4c07-94a2-71c03e71d8db"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="8c995628-93d1-42a8-919f-2f56790ad59e" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME width="640" height="620" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" data-src="https://screencast.autodesk.com/Embed/Timeline/8c995628-93d1-42a8-919f-2f56790ad59e"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="fdfe7fe3-264a-4e0a-ac5e-e0a143c34b32" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME width="640" height="710" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" data-src="https://screencast.autodesk.com/Embed/Timeline/fdfe7fe3-264a-4e0a-ac5e-e0a143c34b32"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="2c0c2d96-f9d8-40e4-bce7-193ac05192a3" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME width="640" height="650" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" data-src="https://screencast.autodesk.com/Embed/Timeline/2c0c2d96-f9d8-40e4-bce7-193ac05192a3"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="835605ed-b87e-4e00-9072-718e95221454" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME width="640" height="650" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" data-src="https://screencast.autodesk.com/Embed/Timeline/835605ed-b87e-4e00-9072-718e95221454"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="f7e38816-5609-4a6b-b9a7-07ae8e5db6ff" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME width="640" height="650" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" data-src="https://screencast.autodesk.com/Embed/Timeline/f7e38816-5609-4a6b-b9a7-07ae8e5db6ff"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="7bf6c199-c86c-4950-9974-8ac92d1d5bdf" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME width="640" height="680" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" data-src="https://screencast.autodesk.com/Embed/Timeline/7bf6c199-c86c-4950-9974-8ac92d1d5bdf"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="172dd7c7-982a-4067-b85c-9375d2e0d29d" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME width="640" height="650" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" data-src="https://screencast.autodesk.com/Embed/Timeline/172dd7c7-982a-4067-b85c-9375d2e0d29d"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="dc200d1b-780c-4f44-9b2d-4f8c1d6772eb" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME width="640" height="710" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" data-src="https://screencast.autodesk.com/Embed/Timeline/dc200d1b-780c-4f44-9b2d-4f8c1d6772eb"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="cd03713c-e6a4-4602-a7d2-25fdef51ac58" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME width="640" height="710" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" data-src="https://screencast.autodesk.com/Embed/Timeline/cd03713c-e6a4-4602-a7d2-25fdef51ac58"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="79c13653-e085-44d4-bfbb-272f1df76a6f" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME width="640" height="650" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" data-src="https://screencast.autodesk.com/Embed/Timeline/79c13653-e085-44d4-bfbb-272f1df76a6f"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="6f1c8983-48fb-454f-8262-99b69e38d7b9" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME width="640" height="680" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" data-src="https://screencast.autodesk.com/Embed/Timeline/6f1c8983-48fb-454f-8262-99b69e38d7b9"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="e05c9446-00eb-48ba-9066-c0fbf01fd4d2" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME width="640" height="650" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" data-src="https://screencast.autodesk.com/Embed/Timeline/e05c9446-00eb-48ba-9066-c0fbf01fd4d2"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="c62988c4-573b-412a-8ecf-e3507f5c872c" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME width="640" height="680" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" data-src="https://screencast.autodesk.com/Embed/Timeline/c62988c4-573b-412a-8ecf-e3507f5c872c"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="83e37fdd-5485-4508-b061-322f4ee62908" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME width="640" height="650" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" data-src="https://screencast.autodesk.com/Embed/Timeline/83e37fdd-5485-4508-b061-322f4ee62908"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;</description>
    <pubDate>Tue, 08 Dec 2020 19:46:08 GMT</pubDate>
    <dc:creator>norman.yuan</dc:creator>
    <dc:date>2020-12-08T19:46:08Z</dc:date>
    <item>
      <title>Insert dynamic block with hatch</title>
      <link>https://forums.autodesk.com/t5/net-forum/insert-dynamic-block-with-hatch/m-p/9923684#M17782</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am stuck with a dynamic block with hatch.&lt;/P&gt;&lt;P&gt;If I insert it manually and I change the length parameter named 'Distance1', I got the proper behaviour. Hatch follow the boundary.&lt;/P&gt;&lt;P&gt;However, if I insert it by code and I change the length parameter, hatch doesn't follow boundaries.&lt;/P&gt;&lt;P&gt;Here is the result:&lt;/P&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="BlockPN_AfterInsertion.PNG" style="width: 527px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/853522i971FD60E239FF296/image-size/large?v=v2&amp;amp;px=999" role="button" title="BlockPN_AfterInsertion.PNG" alt="BlockPN_AfterInsertion.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have attached the block.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I did follow the hint (remove the hatch from the stretch action selection) described in&lt;/P&gt;&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/net/update-dynamic-block-hatch/m-p/8681308" target="_blank"&gt;https://forums.autodesk.com/t5/net/update-dynamic-block-hatch/m-p/8681308&lt;/A&gt;&lt;/P&gt;&lt;P&gt;but then I have another weird behaviour. Hatch doesn't follow boundary neither the block itself when I change manually the length.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Between the code and the way to create the block, I am lost.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the code to insert block:&lt;/P&gt;&lt;P&gt;'fichier' is the path of the block&lt;/P&gt;&lt;P&gt;'infobloc' is some comment to add&lt;/P&gt;&lt;P&gt;'point' is the position of the block&lt;/P&gt;&lt;P&gt;'onglet' is the name of the layout to insert block (BlockTableRecord.ModelSpace)&lt;/P&gt;&lt;P&gt;'calque' is the name of the layer where to add the block&lt;/P&gt;&lt;LI-CODE lang="general"&gt; public static ObjectId InsertionSideDataBase(string fichier, string infobloc, Point2d point, string onglet, Database database, string calque)
        {
            if (File.Exists(fichier))
            {
                ObjectId blkid;
                ObjectId returnID = ObjectId.Null;

                using (Database bdb = new Database(false, true))
                {
                    using (Transaction tr = database.TransactionManager.StartTransaction())
                    {
                        bdb.ReadDwgFile(fichier, System.IO.FileShare.Read, true, "");
                        if (infobloc == null)
                            blkid = database.Insert(string.Format("{0}", System.IO.Path.GetFileNameWithoutExtension(fichier)), bdb, true);
                        else
                            blkid = database.Insert(string.Format("{0} {1}", System.IO.Path.GetFileNameWithoutExtension(fichier), infobloc), bdb, true);

                        BlockTableRecord acBlkTblRec;
                        acBlkTblRec = tr.GetObject(blkid, OpenMode.ForRead) as BlockTableRecord;

                        BlockReference acBlkRef = new BlockReference(TransformPoint2d_3d(point, 0), blkid);

                        // Open the Block table record for read
                        BlockTable acBlkTbl;
                        acBlkTbl = tr.GetObject(database.BlockTableId, OpenMode.ForRead) as BlockTable;

                        // Open the Block table record Model space for write
                        BlockTableRecord acBlkTblRec1;
                        acBlkTblRec1 = tr.GetObject(acBlkTbl[onglet], OpenMode.ForWrite) as BlockTableRecord;

                        using (acBlkRef)
                        {
                            //BlockTableRecord accurspaceblktblrecord = tr.GetObject(db.CurrentSpaceId, OpenMode.ForWrite) as BlockTableRecord;
                            returnID = acBlkTblRec1.AppendEntity(acBlkRef);
                            tr.AddNewlyCreatedDBObject(acBlkRef, true);

                            acBlkRef.Layer = calque;

                            if (acBlkTblRec.HasAttributeDefinitions)
                            {
                                // Add attributes from the block table record
                                foreach (ObjectId objID in acBlkTblRec)
                                {
                                    DBObject dbObj = tr.GetObject(objID, OpenMode.ForRead) as DBObject;

                                    if (dbObj is AttributeDefinition)
                                    {
                                        AttributeDefinition acAtt = dbObj as AttributeDefinition;

                                        if (!acAtt.Constant)
                                        {
                                            using (AttributeReference acAttRef = new AttributeReference())
                                            {
                                                acAttRef.SetAttributeFromBlock(acAtt, acBlkRef.BlockTransform);
                                                acAttRef.Position = acAtt.Position.TransformBy(acBlkRef.BlockTransform);
                                                acBlkRef.AttributeCollection.AppendAttribute(acAttRef);
                                                tr.AddNewlyCreatedDBObject(acAttRef, true);
                                            }
                                        }
                                    }
                                }
                            }
                        }
                        tr.Commit();
                    }
                }
                return returnID;
            }
            else
            {
                string message = String.Format("Le fichier {0} n'existe pas", fichier);
                throw new ArgumentException(message);
            }
        }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;here is the code to modify the length parametre:&lt;/P&gt;&lt;P&gt;'iD_Dessin' is the ObjectId of the bloc I want to change&lt;/P&gt;&lt;P&gt;'parameter' is the name of the parameter to update (Distance1 in my case)&lt;/P&gt;&lt;P&gt;'valeur' is the new value&lt;/P&gt;&lt;LI-CODE lang="general"&gt; public static void EcrireParametreSideDataBase(ObjectId iD_Dessin, string parametre, object valeur)
        {
            using (Transaction acTrans = iD_Dessin.Database.TransactionManager.StartTransaction())
            {
                Entity acEnt = acTrans.GetObject(iD_Dessin, OpenMode.ForWrite) as Entity;

                if (acEnt != null)
                {
                    BlockReference br = acEnt as BlockReference;
                    if (br != null)
                    {
                        foreach (DynamicBlockReferenceProperty dbrp in br.DynamicBlockReferencePropertyCollection)
                        {
                            if (dbrp.PropertyName == parametre)
                            {
                                dbrp.Value = valeur;
                            }
                        }
                    }
                }
                acTrans.Commit();
            }
        }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here there something special to manage hatch in dynamic block?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance for your help&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kevin&lt;/P&gt;</description>
      <pubDate>Tue, 08 Dec 2020 14:18:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/insert-dynamic-block-with-hatch/m-p/9923684#M17782</guid>
      <dc:creator>KZambaux</dc:creator>
      <dc:date>2020-12-08T14:18:31Z</dc:date>
    </item>
    <item>
      <title>Re: Insert dynamic block with hatch</title>
      <link>https://forums.autodesk.com/t5/net-forum/insert-dynamic-block-with-hatch/m-p/9924634#M17783</link>
      <description>&lt;P&gt;Well, when manually dragging the grip, the hatch changes correctly, but if you change the dynamic property in Properties window, the hatch would behave as you described. However, when setting the property with code, I could not reproduce the behavior. I tried with your block and a block I created that is similar to yours. Here is the code I used for test:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE class="lia-code-sample language-general"&gt;&lt;CODE&gt;        [CommandMethod("SetBlkHatch")]
        public static void SetDynHatchInBlock()
        {
            var dwg = CadApp.DocumentManager.MdiActiveDocument;
            var ed = dwg.Editor;
            var res = ed.GetEntity("\nSelect hatched block:");
            if (res.Status== PromptStatus.OK)
            {
                while(true)
                {
                    if (!SetDynProp(ed, res.ObjectId))
                    {
                        break;
                    }
                    var opt = new PromptKeywordOptions("\nDo it again?");
                    opt.Keywords.Add("Yes");
                    opt.Keywords.Add("No");
                    opt.Keywords.Default = "Yes";
                    var kres = ed.GetKeywords(opt);
                    if (kres.Status== PromptStatus.OK)
                    {

                    }
                    else
                    {
                        break;
                    }
                }
            }
        }

        private static bool SetDynProp(Editor ed, ObjectId blkId)
        {
            var opt = new PromptDoubleOptions("\nEnter value (1.0 to 10.0):");
            opt.AllowZero = false;
            opt.AllowNegative = false;
            opt.AllowArbitraryInput = false;

            var res = ed.GetDouble(opt);
            if (res.Status== PromptStatus.OK)
            {
                using (var tran = blkId.Database.TransactionManager.StartTransaction())
                {
                    var blk = (BlockReference)tran.GetObject(blkId, OpenMode.ForWrite);

                    foreach (DynamicBlockReferenceProperty prop in
                            blk.DynamicBlockReferencePropertyCollection)
                    {
                        if (prop.PropertyName.ToUpper() == "DISTANCE1")
                        {
                            prop.Value = res.Value;
                            break;
                        }
                    }

                    tran.Commit();
                }

                return true;
            }
            else
            {
                return false;
            }
        }&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is the video clip showing the test runs:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV class="iframe-container" style="position: relative; height: 0; margin: 0; padding-bottom: 106.25%;"&gt;&lt;IFRAME width="640" height="680" style="position: absolute; left: 0; top: 0; width: 100%; height: 100%;" src="https://screencast.autodesk.com/Embed/Timeline/304a6fcb-420d-40e4-bdc9-9e95475b5a98" frameborder="0" allowfullscreen="true" webkitallowfullscreen="true" scrolling="no"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV class="myscreencast-iframe iframe-container active-myscreencast"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV id="c21a4cae-514d-4aa0-a84b-d4ee21414359" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME width="640" height="650" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" data-src="https://screencast.autodesk.com/Embed/Timeline/c21a4cae-514d-4aa0-a84b-d4ee21414359"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="c82f9b20-ebb5-4cc8-a231-c7cc630573f5" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME width="640" height="680" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" data-src="https://screencast.autodesk.com/Embed/Timeline/c82f9b20-ebb5-4cc8-a231-c7cc630573f5"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="56b3d1f5-4352-45ce-bcad-633aaafe5700" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME width="640" height="650" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" data-src="https://screencast.autodesk.com/Embed/Timeline/56b3d1f5-4352-45ce-bcad-633aaafe5700"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="27542ff4-d357-4d75-9275-a9ce77af9ec7" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME width="640" height="650" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" data-src="https://screencast.autodesk.com/Embed/Timeline/27542ff4-d357-4d75-9275-a9ce77af9ec7"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="53476c94-2cb6-4e15-88a8-bc402033c2a2" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME width="640" height="620" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" data-src="https://screencast.autodesk.com/Embed/Timeline/53476c94-2cb6-4e15-88a8-bc402033c2a2"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="32b28b51-944b-4a67-8d23-aa402aabf154" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME width="640" height="620" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" data-src="https://screencast.autodesk.com/Embed/Timeline/32b28b51-944b-4a67-8d23-aa402aabf154"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="31a3b77b-2605-4964-a93e-550fdaebc3ee" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME width="640" height="620" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" data-src="https://screencast.autodesk.com/Embed/Timeline/31a3b77b-2605-4964-a93e-550fdaebc3ee"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="31769b36-4d11-41ab-b2e8-3cc2d055e7ec" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME width="640" height="710" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" data-src="https://screencast.autodesk.com/Embed/Timeline/31769b36-4d11-41ab-b2e8-3cc2d055e7ec"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="551f7cd3-3b19-43e9-9ecc-1919eec085ca" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME width="640" height="680" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" data-src="https://screencast.autodesk.com/Embed/Timeline/551f7cd3-3b19-43e9-9ecc-1919eec085ca"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="593b985f-3b05-4f75-bca7-e989f95b0513" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME width="640" height="620" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" data-src="https://screencast.autodesk.com/Embed/Timeline/593b985f-3b05-4f75-bca7-e989f95b0513"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="058a151f-12fd-4374-b8ef-c22cda6d0ba5" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME width="640" height="650" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" data-src="https://screencast.autodesk.com/Embed/Timeline/058a151f-12fd-4374-b8ef-c22cda6d0ba5"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="dc56311b-e6b0-415e-9e09-907434f5c813" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME width="640" height="620" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" data-src="https://screencast.autodesk.com/Embed/Timeline/dc56311b-e6b0-415e-9e09-907434f5c813"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="0f53a9ae-05f8-4a30-a518-60ca2f2a2bb4" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME width="640" height="650" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" data-src="https://screencast.autodesk.com/Embed/Timeline/0f53a9ae-05f8-4a30-a518-60ca2f2a2bb4"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="12de9a5f-bee4-4913-9e4a-cb26526cbc06" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME width="640" height="680" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" data-src="https://screencast.autodesk.com/Embed/Timeline/12de9a5f-bee4-4913-9e4a-cb26526cbc06"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="25f90c13-dead-41a9-bdd0-5c9aa241d4ea" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME width="640" height="620" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" data-src="https://screencast.autodesk.com/Embed/Timeline/25f90c13-dead-41a9-bdd0-5c9aa241d4ea"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="8139cb90-adc5-4813-9154-dfb1a668c76e" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME width="640" height="650" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" data-src="https://screencast.autodesk.com/Embed/Timeline/8139cb90-adc5-4813-9154-dfb1a668c76e"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="138aa0e0-b1f2-4e91-8392-2a7ee44ff769" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME width="640" height="650" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" data-src="https://screencast.autodesk.com/Embed/Timeline/138aa0e0-b1f2-4e91-8392-2a7ee44ff769"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="aa3027c7-0fa2-48f6-8f07-4eab76f36d24" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME width="640" height="680" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" data-src="https://screencast.autodesk.com/Embed/Timeline/aa3027c7-0fa2-48f6-8f07-4eab76f36d24"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="6fb7ce24-fa07-4567-a13a-013ff6a07844" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME width="640" height="710" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" data-src="https://screencast.autodesk.com/Embed/Timeline/6fb7ce24-fa07-4567-a13a-013ff6a07844"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="b1c2b204-d4c3-4a45-a3d3-35bdfbb8d905" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME width="640" height="620" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" data-src="https://screencast.autodesk.com/Embed/Timeline/b1c2b204-d4c3-4a45-a3d3-35bdfbb8d905"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="95274e66-6ff1-4310-aa0e-3064d6ae8dfe" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME width="640" height="650" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" data-src="https://screencast.autodesk.com/Embed/Timeline/95274e66-6ff1-4310-aa0e-3064d6ae8dfe"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="7bcefadd-6bd1-4c07-94a2-71c03e71d8db" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME width="640" height="680" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" data-src="https://screencast.autodesk.com/Embed/Timeline/7bcefadd-6bd1-4c07-94a2-71c03e71d8db"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="8c995628-93d1-42a8-919f-2f56790ad59e" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME width="640" height="620" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" data-src="https://screencast.autodesk.com/Embed/Timeline/8c995628-93d1-42a8-919f-2f56790ad59e"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="fdfe7fe3-264a-4e0a-ac5e-e0a143c34b32" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME width="640" height="710" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" data-src="https://screencast.autodesk.com/Embed/Timeline/fdfe7fe3-264a-4e0a-ac5e-e0a143c34b32"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="2c0c2d96-f9d8-40e4-bce7-193ac05192a3" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME width="640" height="650" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" data-src="https://screencast.autodesk.com/Embed/Timeline/2c0c2d96-f9d8-40e4-bce7-193ac05192a3"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="835605ed-b87e-4e00-9072-718e95221454" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME width="640" height="650" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" data-src="https://screencast.autodesk.com/Embed/Timeline/835605ed-b87e-4e00-9072-718e95221454"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="f7e38816-5609-4a6b-b9a7-07ae8e5db6ff" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME width="640" height="650" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" data-src="https://screencast.autodesk.com/Embed/Timeline/f7e38816-5609-4a6b-b9a7-07ae8e5db6ff"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="7bf6c199-c86c-4950-9974-8ac92d1d5bdf" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME width="640" height="680" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" data-src="https://screencast.autodesk.com/Embed/Timeline/7bf6c199-c86c-4950-9974-8ac92d1d5bdf"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="172dd7c7-982a-4067-b85c-9375d2e0d29d" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME width="640" height="650" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" data-src="https://screencast.autodesk.com/Embed/Timeline/172dd7c7-982a-4067-b85c-9375d2e0d29d"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="dc200d1b-780c-4f44-9b2d-4f8c1d6772eb" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME width="640" height="710" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" data-src="https://screencast.autodesk.com/Embed/Timeline/dc200d1b-780c-4f44-9b2d-4f8c1d6772eb"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="cd03713c-e6a4-4602-a7d2-25fdef51ac58" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME width="640" height="710" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" data-src="https://screencast.autodesk.com/Embed/Timeline/cd03713c-e6a4-4602-a7d2-25fdef51ac58"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="79c13653-e085-44d4-bfbb-272f1df76a6f" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME width="640" height="650" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" data-src="https://screencast.autodesk.com/Embed/Timeline/79c13653-e085-44d4-bfbb-272f1df76a6f"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="6f1c8983-48fb-454f-8262-99b69e38d7b9" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME width="640" height="680" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" data-src="https://screencast.autodesk.com/Embed/Timeline/6f1c8983-48fb-454f-8262-99b69e38d7b9"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="e05c9446-00eb-48ba-9066-c0fbf01fd4d2" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME width="640" height="650" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" data-src="https://screencast.autodesk.com/Embed/Timeline/e05c9446-00eb-48ba-9066-c0fbf01fd4d2"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="c62988c4-573b-412a-8ecf-e3507f5c872c" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME width="640" height="680" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" data-src="https://screencast.autodesk.com/Embed/Timeline/c62988c4-573b-412a-8ecf-e3507f5c872c"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="83e37fdd-5485-4508-b061-322f4ee62908" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME width="640" height="650" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" data-src="https://screencast.autodesk.com/Embed/Timeline/83e37fdd-5485-4508-b061-322f4ee62908"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 08 Dec 2020 19:46:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/insert-dynamic-block-with-hatch/m-p/9924634#M17783</guid>
      <dc:creator>norman.yuan</dc:creator>
      <dc:date>2020-12-08T19:46:08Z</dc:date>
    </item>
    <item>
      <title>Re: Insert dynamic block with hatch</title>
      <link>https://forums.autodesk.com/t5/net-forum/insert-dynamic-block-with-hatch/m-p/9926163#M17784</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thanks for your time and anwser.&lt;/P&gt;&lt;P&gt;I run some tests:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;I insert my block manually, then I use your code. The behaviour is OK.&lt;/LI&gt;&lt;LI&gt;I insert my block by code in side-database. Then I open the dwg file. And then I use your code. Behaviour is OK&lt;/LI&gt;&lt;LI&gt;But when I insert my block by code in side-database, then I change the length, the behaviour is still not OK&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I guess I must forget something when I insert block. But I don't know what.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyway, instead of using a hatch, we may go for a polyline with an appropriate thickness. It is easier to deal with polyline than hatch.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If someone find a solution about it, I will glad to hear it.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Dec 2020 10:05:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/insert-dynamic-block-with-hatch/m-p/9926163#M17784</guid>
      <dc:creator>KZambaux</dc:creator>
      <dc:date>2020-12-09T10:05:15Z</dc:date>
    </item>
    <item>
      <title>Re: Insert dynamic block with hatch</title>
      <link>https://forums.autodesk.com/t5/net-forum/insert-dynamic-block-with-hatch/m-p/10393115#M17785</link>
      <description>&lt;P&gt;Hi maybe it's been a while now, but i had&amp;nbsp; the same problem as you, and check your block. In the end, the problem occurs if the hatch you use is associative, it cannot be part of the stretch selection.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jun 2021 22:34:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/insert-dynamic-block-with-hatch/m-p/10393115#M17785</guid>
      <dc:creator>light_dark_24</dc:creator>
      <dc:date>2021-06-15T22:34:44Z</dc:date>
    </item>
    <item>
      <title>Re: Insert dynamic block with hatch</title>
      <link>https://forums.autodesk.com/t5/net-forum/insert-dynamic-block-with-hatch/m-p/10407123#M17786</link>
      <description>&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;I read that the hatch must be associative....&lt;/P&gt;&lt;P&gt;Anyway, can you post your block and code? I may give a try with it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jun 2021 08:27:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/insert-dynamic-block-with-hatch/m-p/10407123#M17786</guid>
      <dc:creator>KZambaux</dc:creator>
      <dc:date>2021-06-21T08:27:15Z</dc:date>
    </item>
  </channel>
</rss>

