<?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: Association of blocks and lines in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/association-of-blocks-and-lines/m-p/12263675#M7209</link>
    <description>&lt;P&gt;I meant that the blocks remain at the point where they are &lt;EM&gt;inserted&lt;/EM&gt; unless&amp;nbsp; manually selected and moved.&lt;/P&gt;&lt;P&gt;It looks something like this, when I move the line:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="kartheekv_0-1695627495147.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1271104iAC6F286F7A40412E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="kartheekv_0-1695627495147.png" alt="kartheekv_0-1695627495147.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I want the blocks and lines to move together just by selecting the line and moving them instead of selecting all the entities by a crossing window to move them. I want to know if this is possible in anyway.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Mon, 25 Sep 2023 07:42:27 GMT</pubDate>
    <dc:creator>Devin_11</dc:creator>
    <dc:date>2023-09-25T07:42:27Z</dc:date>
    <item>
      <title>Association of blocks and lines</title>
      <link>https://forums.autodesk.com/t5/net-forum/association-of-blocks-and-lines/m-p/12263383#M7207</link>
      <description>&lt;P&gt;I am working on creating a pipeline, where a block represents a pump or reservoir which has defined attributes and a line or polyline represents a pipeline. Which looks like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="kartheekv_0-1695614882197.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1271070i8FC515F6ABB4AF28/image-size/medium?v=v2&amp;amp;px=400" role="button" title="kartheekv_0-1695614882197.png" alt="kartheekv_0-1695614882197.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;When I try to move/stretch the line, the blocks won't move with the line because the blocks are associated with the insertion point. Is there someway to move the block together?&lt;/P&gt;&lt;P&gt;P.S. : This is a sample network, the actual pipe networks are much complicated and it is not possible to manually create a crossing window and stretching/moving them without disturbing the whole network.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any inputs will be appreciated. Thank You!&lt;/P&gt;</description>
      <pubDate>Mon, 25 Sep 2023 04:11:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/association-of-blocks-and-lines/m-p/12263383#M7207</guid>
      <dc:creator>Devin_11</dc:creator>
      <dc:date>2023-09-25T04:11:43Z</dc:date>
    </item>
    <item>
      <title>Re: Association of blocks and lines</title>
      <link>https://forums.autodesk.com/t5/net-forum/association-of-blocks-and-lines/m-p/12263560#M7208</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; . . .&amp;nbsp;&lt;EM&gt;the blocks won't move with the line because the blocks are associated with the insertion point.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How are the blocks associated&amp;nbsp;with the insertion point ??&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You may need to re-state your question and provide more information.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;/P&gt;</description>
      <pubDate>Mon, 25 Sep 2023 06:33:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/association-of-blocks-and-lines/m-p/12263560#M7208</guid>
      <dc:creator>kerry_w_brown</dc:creator>
      <dc:date>2023-09-25T06:33:20Z</dc:date>
    </item>
    <item>
      <title>Re: Association of blocks and lines</title>
      <link>https://forums.autodesk.com/t5/net-forum/association-of-blocks-and-lines/m-p/12263675#M7209</link>
      <description>&lt;P&gt;I meant that the blocks remain at the point where they are &lt;EM&gt;inserted&lt;/EM&gt; unless&amp;nbsp; manually selected and moved.&lt;/P&gt;&lt;P&gt;It looks something like this, when I move the line:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="kartheekv_0-1695627495147.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1271104iAC6F286F7A40412E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="kartheekv_0-1695627495147.png" alt="kartheekv_0-1695627495147.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I want the blocks and lines to move together just by selecting the line and moving them instead of selecting all the entities by a crossing window to move them. I want to know if this is possible in anyway.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 25 Sep 2023 07:42:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/association-of-blocks-and-lines/m-p/12263675#M7209</guid>
      <dc:creator>Devin_11</dc:creator>
      <dc:date>2023-09-25T07:42:27Z</dc:date>
    </item>
    <item>
      <title>Re: Association of blocks and lines</title>
      <link>https://forums.autodesk.com/t5/net-forum/association-of-blocks-and-lines/m-p/12263841#M7210</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;What about using a &lt;A href="https://help.autodesk.com/view/OARX/2023/ENU/?guid=OARX-ManagedRefGuide-Autodesk_AutoCAD_DatabaseServices_Group" target="_blank" rel="noopener"&gt;Group&lt;/A&gt;?&lt;/P&gt;</description>
      <pubDate>Mon, 25 Sep 2023 09:15:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/association-of-blocks-and-lines/m-p/12263841#M7210</guid>
      <dc:creator>_gile</dc:creator>
      <dc:date>2023-09-25T09:15:01Z</dc:date>
    </item>
    <item>
      <title>Re: Association of blocks and lines</title>
      <link>https://forums.autodesk.com/t5/net-forum/association-of-blocks-and-lines/m-p/12264700#M7211</link>
      <description>&lt;P&gt;When you say "move or stretch", I assume you mean the pipe, as single Polyline, could be moved as whole, or one of its vertex is dragged/stretched.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There could be different ways to get things done. The simplest way would be simply handle Database.ObjectModified event in conjunction with Document.CommandWillStart/Ended/Cancelled (when user drag, the command in the CommandEnded event's argument is "GRIP-STRETCH"): in the ObjectModified event handler, you test whether the said pipe polyline is changed or not and set a flag (or save its ObjectId) in class level; when a command finishes, test if the changed flag or pipe ObjectId is set. If yes, go ahead to move all the pump blocks to the locations they should be.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The drawback of this simple/easy coding task is that while user drags the pipe polyline, the blocks will not go with the dragged "ghost polyline" and user only see the block position change after the drag is done, thus not so much user-friendly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The other advanced method would be using Overrule, probably a combination of ObjectOverrule/TransformOverrule/GripOverrule and a Jig opertaion. I can imagine that a custom GripOverule would make a user-friendly drag grip, similar to the ones you often see with C3D Aecc objects: when the pipe polyline is selected, the custom drag grip shows. When user drag it, a special Jig runs that make the polyline and blocks all moves as ghost images. Well, it is easy to say, but the coding of it would be a bit of challenging, or very challenging, depending on your skill level.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Sep 2023 14:44:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/association-of-blocks-and-lines/m-p/12264700#M7211</guid>
      <dc:creator>norman.yuan</dc:creator>
      <dc:date>2023-09-25T14:44:01Z</dc:date>
    </item>
    <item>
      <title>Re: Association of blocks and lines</title>
      <link>https://forums.autodesk.com/t5/net-forum/association-of-blocks-and-lines/m-p/12266296#M7212</link>
      <description>Hi,&lt;BR /&gt;Thank you for the response.&lt;BR /&gt;Grouping creates a problem when stretch is used and it is kind of a hassle to group and ungroup when we want to move an individual polyline when it is surrounded by 100s of polylines, all of which are joined together in a network.</description>
      <pubDate>Tue, 26 Sep 2023 05:52:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/association-of-blocks-and-lines/m-p/12266296#M7212</guid>
      <dc:creator>Devin_11</dc:creator>
      <dc:date>2023-09-26T05:52:47Z</dc:date>
    </item>
    <item>
      <title>Re: Association of blocks and lines</title>
      <link>https://forums.autodesk.com/t5/net-forum/association-of-blocks-and-lines/m-p/12266297#M7213</link>
      <description>Thank you for the reply. I will give it a shot.</description>
      <pubDate>Tue, 26 Sep 2023 05:53:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/association-of-blocks-and-lines/m-p/12266297#M7213</guid>
      <dc:creator>Devin_11</dc:creator>
      <dc:date>2023-09-26T05:53:29Z</dc:date>
    </item>
  </channel>
</rss>

