Copy command - use last insertion point as base point for displacement

Copy command - use last insertion point as base point for displacement

clough360
Observer Observer
626 Views
0 Replies
Message 1 of 1

Copy command - use last insertion point as base point for displacement

clough360
Observer
Observer

With autocad architecture 2014 we used the following .NET code to send commands to allow the user to copy the last inserted item to locations they clicked. The symbol would then insert a copy at the location they clicked:

 

 

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()

 

 

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.

Since the last selection point can be anywhere, the displacement can be anything!

 

Is there a way to get the old 2014 behaviour back so that it is relative to the symbol being copied?

 

The command window looks like this:

 

_.Copy
Select objects: L 1 found
Select objects:
Specify base point or [Displacement/Multiple] <Displacement>: Multiple
Specify base point or [Displacement] <Displacement>: @
Specify second point or [Array] <use first point as displacement>:
Specify second point or [Array] <use first point as displacement>:

 

0 Likes
627 Views
0 Replies
Replies (0)