<?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 Update Dynamic block hatch in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/update-dynamic-block-hatch/m-p/8681308#M23081</link>
    <description>&lt;P&gt;I use this &lt;A href="https://forums.autodesk.com/t5/net/jig-mirror-entity/m-p/8664123#M61849" target="_blank" rel="noopener"&gt;solution&lt;/A&gt;&amp;nbsp;(by &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/109424"&gt;@_gile&lt;/a&gt;&amp;nbsp;)to edit dynamic block stretch via two points from the user. and&amp;nbsp;that dynamic block has a hatch that also needs to stretch.&lt;/P&gt;
&lt;P&gt;but the issue is that hatch not update properly. as the next image.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="test.JPG" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/617969i1B3537E2DCC46A72/image-size/large?v=v2&amp;amp;px=999" role="button" title="test.JPG" alt="test.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;but when I open that block in block editor and Zoom Extents. close block editor and save it looks fine and work well.&lt;/P&gt;
&lt;P&gt;the dynamic block attached.&lt;/P&gt;</description>
    <pubDate>Mon, 25 Mar 2019 12:53:14 GMT</pubDate>
    <dc:creator>CAD-Geek</dc:creator>
    <dc:date>2019-03-25T12:53:14Z</dc:date>
    <item>
      <title>Update Dynamic block hatch</title>
      <link>https://forums.autodesk.com/t5/net-forum/update-dynamic-block-hatch/m-p/8681308#M23081</link>
      <description>&lt;P&gt;I use this &lt;A href="https://forums.autodesk.com/t5/net/jig-mirror-entity/m-p/8664123#M61849" target="_blank" rel="noopener"&gt;solution&lt;/A&gt;&amp;nbsp;(by &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/109424"&gt;@_gile&lt;/a&gt;&amp;nbsp;)to edit dynamic block stretch via two points from the user. and&amp;nbsp;that dynamic block has a hatch that also needs to stretch.&lt;/P&gt;
&lt;P&gt;but the issue is that hatch not update properly. as the next image.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="test.JPG" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/617969i1B3537E2DCC46A72/image-size/large?v=v2&amp;amp;px=999" role="button" title="test.JPG" alt="test.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;but when I open that block in block editor and Zoom Extents. close block editor and save it looks fine and work well.&lt;/P&gt;
&lt;P&gt;the dynamic block attached.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Mar 2019 12:53:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/update-dynamic-block-hatch/m-p/8681308#M23081</guid>
      <dc:creator>CAD-Geek</dc:creator>
      <dc:date>2019-03-25T12:53:14Z</dc:date>
    </item>
    <item>
      <title>Re: Update Dynamic block hatch</title>
      <link>https://forums.autodesk.com/t5/net-forum/update-dynamic-block-hatch/m-p/8681722#M23082</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Simply try to remove the hatch from the stretch action selection (the associativity of the hatch is enough to make it dynamic).&lt;/P&gt;</description>
      <pubDate>Mon, 25 Mar 2019 15:13:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/update-dynamic-block-hatch/m-p/8681722#M23082</guid>
      <dc:creator>_gile</dc:creator>
      <dc:date>2019-03-25T15:13:16Z</dc:date>
    </item>
    <item>
      <title>Re: Update Dynamic block hatch</title>
      <link>https://forums.autodesk.com/t5/net-forum/update-dynamic-block-hatch/m-p/9957966#M23083</link>
      <description>&lt;P&gt;Sorry to resume an old topic, but I've been struggling with this problem since many years now... never got a final solution... sometimes the xhatch need to excluded, sometime needs to be included in the strech action.&lt;/P&gt;&lt;P&gt;Sometime the block instances need a strong action to rebuild the hatch correctly (like editing, doing nothing and saving the block), sometimes it's enough to get the dynamic grip, move it around and get back to the original position...&lt;/P&gt;&lt;P&gt;Is there something I can do programmatically to force a xhatch rebuild after I created the blockreference and assigned the correct values to the dynamic parameters?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is what I tried, without success:&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;BlockTableRecord btr = tr.GetObject((br.BlockTableRecord), OpenMode.ForWrite, false) as BlockTableRecord;
if (btr != null)
{
    foreach (ObjectId o in btr)
    {
        DBObject dbo = tr.GetObject(o, OpenMode.ForRead, false);
        if (!dbo.IsErased &amp;amp;&amp;amp; (dbo is Hatch))
        {
            Hatch hh = dbo as Hatch;
            hh.UpgradeOpen();
            hh.EvaluateHatch(false);
        }
    }
}&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 23 Dec 2020 10:26:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/update-dynamic-block-hatch/m-p/9957966#M23083</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-12-23T10:26:16Z</dc:date>
    </item>
    <item>
      <title>Re: Update Dynamic block hatch</title>
      <link>https://forums.autodesk.com/t5/net-forum/update-dynamic-block-hatch/m-p/10029736#M23084</link>
      <description>&lt;P&gt;Not sure if it's ok that it's ok that I'm bumping these posts but&amp;nbsp;they are all facing the same issue.&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/net/dynamic-block-with-associative-hatch/td-p/10023207" target="_blank"&gt;https://forums.autodesk.com/t5/net/dynamic-block-with-associative-hatch/td-p/10023207&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jan 2021 19:13:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/update-dynamic-block-hatch/m-p/10029736#M23084</guid>
      <dc:creator>SRSDS</dc:creator>
      <dc:date>2021-01-25T19:13:44Z</dc:date>
    </item>
    <item>
      <title>Re: Update Dynamic block hatch</title>
      <link>https://forums.autodesk.com/t5/net-forum/update-dynamic-block-hatch/m-p/13330830#M23085</link>
      <description>&lt;P&gt;Best I've found is to recreate the hatch:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;static void ReCreateHatch(BlockReference blockReference)
{
    var blockTableRecord = (BlockTableRecord)blockReference.BlockTableRecord.GetObject(OpenMode.ForWrite)!;
    foreach (ObjectId id in blockTableRecord)
    {
        var hatch = id.GetObject(OpenMode.ForRead) as Hatch;
        if (hatch == null || !hatch.Associative) continue;
        var newHatch = new Hatch();
        blockTableRecord.AppendEntity(newHatch);
        blockTableRecord.Database!.TransactionManager!.AddNewlyCreatedDBObject(newHatch, add: true);
        newHatch.SetPropertiesFrom(hatch);
        newHatch.SetHatchPattern(HatchPatternType.PreDefined, hatch.PatternName!);
        ObjectIdCollection ids = hatch.GetAssociatedObjectIds()!;
        newHatch.AppendLoop(HatchLoopTypes.Outermost, ids);
        newHatch.EvaluateHatch(underEstimateNumLines: true);
        hatch.UpgradeOpen();
        hatch.Erase();
    }
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Feb 2025 19:33:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/update-dynamic-block-hatch/m-p/13330830#M23085</guid>
      <dc:creator>FRFR1426</dc:creator>
      <dc:date>2025-02-20T19:33:17Z</dc:date>
    </item>
  </channel>
</rss>

