<?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 Copy command - use last insertion point as base point for displacement in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/copy-command-use-last-insertion-point-as-base-point-for/m-p/5819979#M38618</link>
    <description>&lt;P&gt;With autocad architecture 2014 we used the following .NET code to send commands to allow the user to copy&amp;nbsp;the last inserted item to locations they clicked. The symbol would then insert a copy at the location they clicked:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;commandList = New ResultBuffer
commandList.Add(New TypedValue(5005, "_.Copy"))
commandList.Add(New TypedValue(5005, "L")) ' select last object
commandList.Add(New TypedValue(5005, " "))
commandList.Add(New TypedValue(5005, "Multiple"))
commandList.Add(New TypedValue(5005, "@"))
editor.Command(commandList)
commandList.Dispose()&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;with 2016, however, the basepoint for the insertion of the copies is no longer the last location they inserted the original symbol, it is the last location they selected something using the mouse. This has the effect that a displacement is added to the copy, so that the copied symbol is not added where they click, but with an offset from their last selection point.&lt;/P&gt;&lt;P&gt;Since the last selection point can be anywhere, the&amp;nbsp;displacement can be anything!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to get the old 2014 behaviour back so that it is relative to the&amp;nbsp;symbol being copied?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The command window looks like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;_.Copy
Select objects: L 1 found
Select objects:
Specify base point or [Displacement/Multiple] &amp;lt;Displacement&amp;gt;: Multiple
Specify base point or [Displacement] &amp;lt;Displacement&amp;gt;: @
Specify second point or [Array] &amp;lt;use first point as displacement&amp;gt;:
Specify second point or [Array] &amp;lt;use first point as displacement&amp;gt;:&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 16 Sep 2015 17:34:25 GMT</pubDate>
    <dc:creator>clough360</dc:creator>
    <dc:date>2015-09-16T17:34:25Z</dc:date>
    <item>
      <title>Copy command - use last insertion point as base point for displacement</title>
      <link>https://forums.autodesk.com/t5/net-forum/copy-command-use-last-insertion-point-as-base-point-for/m-p/5819979#M38618</link>
      <description>&lt;P&gt;With autocad architecture 2014 we used the following .NET code to send commands to allow the user to copy&amp;nbsp;the last inserted item to locations they clicked. The symbol would then insert a copy at the location they clicked:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;commandList = New ResultBuffer
commandList.Add(New TypedValue(5005, "_.Copy"))
commandList.Add(New TypedValue(5005, "L")) ' select last object
commandList.Add(New TypedValue(5005, " "))
commandList.Add(New TypedValue(5005, "Multiple"))
commandList.Add(New TypedValue(5005, "@"))
editor.Command(commandList)
commandList.Dispose()&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;with 2016, however, the basepoint for the insertion of the copies is no longer the last location they inserted the original symbol, it is the last location they selected something using the mouse. This has the effect that a displacement is added to the copy, so that the copied symbol is not added where they click, but with an offset from their last selection point.&lt;/P&gt;&lt;P&gt;Since the last selection point can be anywhere, the&amp;nbsp;displacement can be anything!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to get the old 2014 behaviour back so that it is relative to the&amp;nbsp;symbol being copied?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The command window looks like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;_.Copy
Select objects: L 1 found
Select objects:
Specify base point or [Displacement/Multiple] &amp;lt;Displacement&amp;gt;: Multiple
Specify base point or [Displacement] &amp;lt;Displacement&amp;gt;: @
Specify second point or [Array] &amp;lt;use first point as displacement&amp;gt;:
Specify second point or [Array] &amp;lt;use first point as displacement&amp;gt;:&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Sep 2015 17:34:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/copy-command-use-last-insertion-point-as-base-point-for/m-p/5819979#M38618</guid>
      <dc:creator>clough360</dc:creator>
      <dc:date>2015-09-16T17:34:25Z</dc:date>
    </item>
  </channel>
</rss>

